Support fine detail enhancement to SIP. The particular flavor of user/dpearl/fine_detail_A
authorDan Pearl <dpearl@cwmars.org>
Thu, 25 May 2017 17:57:23 +0000 (13:57 -0400)
committerDan Pearl <dpearl@cwmars.org>
Wed, 28 Jun 2017 19:57:16 +0000 (15:57 -0400)
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.

Sip/MsgType.pm

index 4079467..51fb5c6 100644 (file)
@@ -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)) {