Bug 6405: added enumchron to reserve copy list
authorSrdjan Jankovic <srdjan@catalyst.net.nz>
Wed, 25 May 2011 03:25:11 +0000 (15:25 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 9 Oct 2011 07:01:24 +0000 (20:01 +1300)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
opac/opac-reserve.pl
reserve/request.pl

index 13ea5c4..1719af4 100644 (file)
@@ -389,6 +389,9 @@ function checkMultiHold() {
             <th>Last Location</th>
             <th>Call no.</th>
             <th>Copy no.</th>
+            [% IF itemdata_enumchron %]
+            <th>Vol no.</th>
+            [% END %]
             <th>Information</th>
         </tr>
     [% FOREACH itemloo IN bibitemloo.itemloop %]
@@ -427,6 +430,11 @@ function checkMultiHold() {
             [% itemloo.itemcallnumber %]
             </td>
             <td>[% IF ( itemloo.copynumber ) %][% itemloo.copynumber %][% ELSE %]&nbsp;[% END %]</td>
+            [% IF itemdata_enumchron %]
+            <td>
+            [% itemloo.enumchron %]
+            </td>
+            [% END %]
             <td>
                [% IF ( itemloo.onloan ) %]
             <span class="checkedout">Due [% itemloo.date_due %]</span>
index ab02afe..9b9301e 100755 (executable)
@@ -451,13 +451,13 @@ foreach my $biblioNum (@biblionumbers) {
        $itemLoopIter->{imageurl} = getitemtypeimagelocation( 'opac', $itemTypes->{ $itemInfo->{itype} }{imageurl} );
 
     # Show serial enumeration when needed
-    if ($itemLoopIter->{enumchron}) {
-        $itemdata_enumchron = 1;
-    }
-    $template->param( itemdata_enumchron => $itemdata_enumchron );
+        if ($itemLoopIter->{enumchron}) {
+            $itemdata_enumchron = 1;
+        }
 
         push @{$biblioLoopIter{itemLoop}}, $itemLoopIter;
     }
+    $template->param( itemdata_enumchron => $itemdata_enumchron );
 
     if ($numCopiesAvailable > 0) {
         $numBibsAvailable++;
index f27e5db..1a4f027 100755 (executable)
@@ -230,6 +230,7 @@ if ($multihold) {
     push @biblionumbers, $input->param('biblionumber');
 }
 
+my $itemdata_enumchron = 0;
 my @biblioloop = ();
 foreach my $biblionumber (@biblionumbers) {
 
@@ -461,6 +462,12 @@ foreach my $biblionumber (@biblionumbers) {
             while (my $wait_hashref = $sth2->fetchrow_hashref) {
                 $item->{waitingdate} = format_date($wait_hashref->{waitingdate});
             }
+
+            # Show serial enumeration when needed
+            if ($item->{enumchron}) {
+                $itemdata_enumchron = 1;
+            }
+
             push @{ $biblioitem->{itemloop} }, $item;
         }
 
@@ -566,6 +573,7 @@ foreach my $biblionumber (@biblionumbers) {
     $template->param(
                      optionloop        => \@optionloop,
                      bibitemloop       => \@bibitemloop,
+                     itemdata_enumchron => $itemdata_enumchron,
                      date              => $date,
                      biblionumber      => $biblionumber,
                      findborrower      => $findborrower,