Bugzilla – Attachment 181969 Details for
Bug 39842
SIP current_location field is never sent
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39842: Populate current location for SIP item with holdingbranch
Bug-39842-Populate-current-location-for-SIP-item-w.patch (text/plain), 1.55 KB, created by
Nick Clemens (kidclamp)
on 2025-05-06 12:51:55 UTC
(
hide
)
Description:
Bug 39842: Populate current location for SIP item with holdingbranch
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-05-06 12:51:55 UTC
Size:
1.55 KB
patch
obsolete
>From 10f45cb47be77c2302fa786f1d32db6b378d70f7 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39842
:
181969
|
181994
|
182078