use C4::Review;
use C4::Serials;
use C4::Members;
+use C4::VirtualShelves;
use C4::XSLT;
BEGIN {
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 {
#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;
+ $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);
}