From 8b65b94636398729e5d919ca2eb6334e8013bdae Mon Sep 17 00:00:00 2001 From: Srdjan Jankovic Date: Wed, 25 May 2011 15:25:11 +1200 Subject: [PATCH] Bug 6405: added enumchron to reserve copy list Signed-off-by: Katrin Fischer Signed-off-by: Chris Cormack --- .../intranet-tmpl/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 13ea5c4e44..1719af4b76 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -389,6 +389,9 @@ function checkMultiHold() { Last Location Call no. Copy no. + [% IF itemdata_enumchron %] + Vol no. + [% END %] Information [% FOREACH itemloo IN bibitemloo.itemloop %] @@ -427,6 +430,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 ab02afe83d..9b9301e550 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -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++; diff --git a/reserve/request.pl b/reserve/request.pl index f27e5dbadd..1a4f027459 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) { @@ -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, -- 2.39.5