From cb1cc286128ce3ee98adc8cd94f77751e9e3b669 Mon Sep 17 00:00:00 2001 From: Mason James Date: Fri, 14 Dec 2007 12:40:17 +1300 Subject: [PATCH] adding collection-code description lookup. Signed-off-by: Joshua Ferraro --- opac/opac-detail.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 7aa80f3423..46e257b680 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -22,6 +22,7 @@ use strict; require Exporter; use CGI; use C4::Auth; +use C4::Koha; use C4::Serials; #uses getsubscriptionfrom biblionumber use C4::Output; use C4::Biblio; @@ -31,7 +32,6 @@ use C4::Review; use C4::Serials; use C4::Members; - my $query = new CGI; my ( $template, $borrowernumber, $cookie ) = get_template_and_user( { @@ -86,7 +86,10 @@ foreach my $itm (@items) { || (not $itm->{'itemlost'} ) || (not $itm->{'itemnotforloan'} ) || ($itm->{'itemnumber'} ) ); - $itm->{ $itm->{'publictype'} } = 1; + $itm->{ $itm->{'publictype'} } = 1; + + #get collection code description, too + $itm->{'ccode'} = GetAuthorisedValueDesc('','', $itm->{'ccode'} ,'','','CCODE'); } $template->param( norequests => $norequests, RequestOnOpac=>$RequestOnOpac ); -- 2.39.5