adding collection-code description lookup.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Mason James 2007-12-14 12:40:17 +13:00 committed by Joshua Ferraro
parent e7c05a9c3c
commit cb1cc28612
1 changed files with 5 additions and 2 deletions

View File

@ -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 );