X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=opac%2Fopac-detail.pl;h=f0ba0c5c87abdac7654f7f7f4c631812249166fb;hb=e60b571d6d2ccd30cdf375d54ce2a954b8e48647;hp=679a48b6eeb42c6babea1a697f9d07eada3dd013;hpb=437188f444e7b1563a268a0f643d1dcc94259e41;p=koha.git diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 679a48b6ee..f0ba0c5c87 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -59,6 +59,10 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( ); my $biblionumber = $query->param('biblionumber') || $query->param('bib'); + +$template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') ); +$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) ); + my $record = GetMarcBiblio($biblionumber); $template->param( biblionumber => $biblionumber ); # XSLT processing of some stuff @@ -151,7 +155,7 @@ for my $itm (@items) { $itm->{'imageurl'} = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} ); $itm->{'description'} = $itemtypes->{ $itm->{itype} }->{'description'}; } - foreach (qw(ccode enumchron copynumber itemnotes)) { + foreach (qw(ccode enumchron copynumber itemnotes uri)) { $itemfields{$_} = 1 if ($itm->{$_}); } @@ -198,6 +202,7 @@ my $subtitle = C4::Biblio::get_koha_field_from_marc('bibliosubtitle', 's RequestOnOpac => C4::Context->preference("RequestOnOpac"), itemdata_ccode => $itemfields{ccode}, itemdata_enumchron => $itemfields{enumchron}, + itemdata_uri => $itemfields{uri}, itemdata_copynumber => $itemfields{copynumber}, itemdata_itemnotes => $itemfields{itemnotes}, authorised_value_images => $biblio_authorised_value_images,