From 0216f7253bc627e5639af80533d6c0e5a17e11ff 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 Content-Type: text/plain; charset="utf-8" Shows column Vol Info on opac holds screen if serial enumeration was set for one of the items. Replaces first patch. --- .../opac-tmpl/prog/en/modules/opac-reserve.tmpl | 8 +++++++- opac/opac-reserve.pl | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletions(-) 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 3ac7343..d853924 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 4471dff..abb9841 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; } -- 1.6.0.4