From d3a3e8f1eb15805fc258f3330aa1a740ce100036 Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 9 Jun 2016 09:04:56 -0500 Subject: [PATCH] LP1528301 Add SIP Support for BF field on type 10 checkin responses This little patch will append the BF field in the SIP response during checkin when the item is for another hold. Some self check software vendors (ahem Bibliotheca) implement the hold phone number for the next patron this way. You will need this patch as well as the code change to the SIPServer repo LP1528301_Add_SIP_Support_for_BF_field_on_type_10_checkin_responses Signed-off-by: blake Signed-off-by: Martha Driscoll Signed-off-by: Jason Boyer Signed-off-by: Martha Driscoll Signed-off-by: Galen Charlton --- Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm | 2 ++ Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm index e727732e6f..99c378acc8 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm @@ -46,6 +46,7 @@ my %fields = ( volume => 0, record => 0, mods => 0, + hold_patron_phone => 0, ); our $AUTOLOAD; @@ -219,6 +220,7 @@ sub fetch_hold { syslog('LOG_WARNING', "OILS: Item(".$copy->barcode. ") is captured for a hold, but there is no matching hold request") unless $hold; + $self->{hold_patron_phone} = $hold->phone_notify unless !$hold; return $hold; } diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm index c937892daa..c7ab6aa5fa 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm @@ -201,7 +201,8 @@ sub do_checkin { $self->item->hold_patron_bcode( ($holder->card) ? $holder->card->barcode : ''); $self->item->hold_patron_name($holder_name); - $self->item->destination_loc($pickup_lib_sn); + $self->item->destination_loc($pickup_lib_sn); + $self->item->hold_patron_phone($self->item->hold->phone_notify); my $atype = ($pickup_lib_id == $phys_location) ? '01' : '02'; $self->alert_type($atype); -- 2.11.0