use C4::Review;
use C4::Serials;
use C4::Members;
+use C4::VirtualShelves;
use C4::XSLT;
BEGIN {
);
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
my $reviews = getreviews( $biblionumber, 1 );
my $loggedincommenter;
foreach ( @$reviews ) {
- my $borrowerData = GetMember($_->{borrowernumber},'borrowernumber');
+ my $borrowerData = GetMember('borrowernumber' => $_->{borrowernumber});
# setting some borrower info into this hash
$_->{title} = $borrowerData->{'title'};
$_->{surname} = $borrowerData->{'surname'};
loggedincommenter => $loggedincommenter
);
+# Lists
+
+if (C4::Context->preference("virtualshelves") ) {
+ $template->param( 'GetShelves' => GetBibliosShelves( $biblionumber ) );
+}
+
+
# XISBN Stuff
if (C4::Context->preference("OPACFRBRizeEditions")==1) {
eval {
'sort'=>'-weight', limit=>$tag_quantity}));
}
+#Search for title in links
+if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){
+ $search_for_title =~ s/{AUTHOR}/$dat->{author}/g;
+ $search_for_title =~ s/{TITLE}/$dat->{title}/g;
+ $search_for_title =~ s/{ISBN}/$isbn/g;
+ $template->param('OPACSearchForTitleIn' => $search_for_title);
+}
+
+
output_html_with_http_headers $query, $cookie, $template->output;