From: Dan Pearl Date: Thu, 25 May 2017 17:57:23 +0000 (-0400) Subject: Support fine detail enhancement to SIP. The particular flavor of X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fdpearl%2Ffine_detail_A;p=working%2FSIPServer.git Support fine detail enhancement to SIP. The particular flavor of fine detail output is manufacturer dependent, although 3m is popular, and the default. To configure the selection, modify the /openils/conf/oils_sip.xml file. --- diff --git a/Sip/MsgType.pm b/Sip/MsgType.pm index 4079467..51fb5c6 100644 --- a/Sip/MsgType.pm +++ b/Sip/MsgType.pm @@ -926,7 +926,7 @@ sub _load_ils_handler { # and we're going to believe it. # sub summary_info { - my ($ils, $patron, $summary, $start, $end) = @_; + my ($ils, $patron, $summary, $start, $end, $server) = @_; my $resp = ''; my $itemlist; my $summary_type; @@ -961,7 +961,7 @@ sub summary_info { $func = $summary_map[$summary_type]->{func}; $fid = $summary_map[$summary_type]->{fid}; - $itemlist = &$func($patron, $start, $end); + $itemlist = &$func($patron, $start, $end, 0, $server); syslog("LOG_DEBUG", "summary_info: list = (%s)", join(", ", @{$itemlist})); foreach my $i (@{$itemlist}) { @@ -1029,7 +1029,7 @@ sub handle_patron_info { # Apparently TLC systems do this. $resp .= maybe_add(FID_HOME_LIBRARY, $patron->home_library); - $resp .= summary_info($ils, $patron, $summary, $start, $end); + $resp .= summary_info($ils, $patron, $summary, $start, $end, $server); $resp .= add_field(FID_VALID_PATRON, 'Y'); if (defined($patron_pwd)) {