From 10f45cb47be77c2302fa786f1d32db6b378d70f7 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 6 May 2025 12:49:28 +0000 Subject: [PATCH] Bug 39842: Populate current location for SIP item with holdingbranch This patch simply adds the holdingbranch to the SIP item as current_location To test: 1 - Find an item and check it in at a different location than its homebranch 2 - perl misc/sip_cli_emulator.pl -a localhost -p 6001 -su term1 -sp term1 -l CPL -t CR -m item_information --item 39999000004151 3 - Note no AP field is returned 4 - Apply patch, restart all 5 - perl misc/sip_cli_emulator.pl -a localhost -p 6001 -su term1 -sp term1 -l CPL -t CR -m item_information --item 39999000004151 6 - You see the current holdingbranch in the AP field 7 - Return the item to its homebranch 8 - perl misc/sip_cli_emulator.pl -a localhost -p 6001 -su term1 -sp term1 -l CPL -t CR -m item_information --item 39999000004151 9 - Confirm home and holding branches are the same now --- C4/SIP/ILS/Item.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/SIP/ILS/Item.pm b/C4/SIP/ILS/Item.pm index 6392e3c6b82..4aadb99f22d 100644 --- a/C4/SIP/ILS/Item.pm +++ b/C4/SIP/ILS/Item.pm @@ -95,6 +95,7 @@ sub new { } else { $self->{permanent_location} = $item->homebranch; } + $self->{current_location} = $item->holdingbranch; $self->{collection_code} = $item->ccode; $self->{call_number} = $item->itemcallnumber; $self->{'shelving_location'} = $item->location; -- 2.39.5