From edff25775329fe232e6c97cfe4664442fd9716ba Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 27 Sep 2009 23:24:22 +0200 Subject: [PATCH] BUG 3380 Show serial enumeration on opac holds screen Shows column Vol Info if serial enumeration is used for one of the items. Replaces first patch. Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl | 8 +++++++- opac/opac-reserve.pl | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl index 3ac7343883..d8539245a0 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl @@ -243,7 +243,7 @@ Hold Starts on Date - Place On: + Place On Pickup Location @@ -419,6 +419,9 @@ Last Location Call Number + + Vol Info + Information @@ -445,6 +448,9 @@ + + + Due diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 4471dffff5..abb9841e0c 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -293,6 +293,7 @@ my $notforloan_label_of = get_notforloan_label_of(); my $biblioLoop = []; my $numBibsAvailable = 0; +my $itemdata_enumchron = 0; my $itemLevelTypes = C4::Context->preference('item-level_itypes'); $template->param('item-level_itypes' => $itemLevelTypes); @@ -353,6 +354,7 @@ foreach my $biblioNum (@biblionumbers) { $itemLoopIter->{barcode} = $itemInfo->{barcode}; $itemLoopIter->{homeBranchName} = $branches->{$itemInfo->{homebranch}}{branchname}; $itemLoopIter->{callNumber} = $itemInfo->{itemcallnumber}; + $itemLoopIter->{enumchron} = $itemInfo->{enumchron}; $itemLoopIter->{copynumber} = $itemInfo->{copynumber}; if ($itemLevelTypes) { $itemLoopIter->{description} = $itemInfo->{description}; @@ -443,6 +445,12 @@ foreach my $biblioNum (@biblionumbers) { $itemLoopIter->{waitingdate} = format_date($wait_hashref->{waitingdate}); } $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 ); push @{$biblioLoopIter{itemLoop}}, $itemLoopIter; } -- 2.39.5