From cabaf281b110195b58fc928c668cbc6c7794f5ae Mon Sep 17 00:00:00 2001 From: Srdjan Jankovic Date: Wed, 25 May 2011 15:25:11 +1200 Subject: [PATCH] [SIGNED-OFF] bug_6405: added enumchron to reserve copy list Content-Type: text/plain; charset="utf-8" Conflicts: koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl Signed-off-by: Katrin Fischer --- .../prog/en/modules/reserve/request.tt | 8 ++++++++ opac/opac-reserve.pl | 8 ++++---- reserve/request.pl | 8 ++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 66c9235..325c8ad 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -388,6 +388,9 @@ function checkMultiHold() { Last Location Call no. Copy no. + [% IF itemdata_enumchron %] + Vol no. + [% END %] Information [% FOREACH itemloo IN bibitemloo.itemloop %] @@ -426,6 +429,11 @@ function checkMultiHold() { [% itemloo.itemcallnumber %] [% IF ( itemloo.copynumber ) %][% itemloo.copynumber %][% ELSE %] [% END %] + [% IF itemdata_enumchron %] + + [% itemloo.enumchron %] + + [% END %] [% IF ( itemloo.onloan ) %] Due [% itemloo.date_due %] diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index d50480a..c0b940e 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -447,13 +447,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++; diff --git a/reserve/request.pl b/reserve/request.pl index 0b3bebc..3923992 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -230,6 +230,7 @@ if ($multihold) { push @biblionumbers, $input->param('biblionumber'); } +my $itemdata_enumchron = 0; my @biblioloop = (); foreach my $biblionumber (@biblionumbers) { @@ -456,6 +457,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; } @@ -561,6 +568,7 @@ foreach my $biblionumber (@biblionumbers) { $template->param( optionloop => \@optionloop, bibitemloop => \@bibitemloop, + itemdata_enumchron => $itemdata_enumchron, date => $date, biblionumber => $biblionumber, findborrower => $findborrower, -- 1.7.4.1