use C4::Images;
use Koha::DateUtils;
use C4::HTML5Media;
+use C4::CourseReserves qw(GetItemCourseReservesInfo);
# use Smart::Comments;
$materials_flag = 1;
}
+ if ( C4::Context->preference('UseCourseReserves') ) {
+ $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
+ }
+
if ($currentbranch and $currentbranch ne "NO_LIBRARY_SET"
and C4::Context->preference('SeparateHoldings')) {
if ($itembranchcode and $itembranchcode eq $currentbranch) {
}
}
+# Display only one tab if one items list is empty
+if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) {
+ $template->param(SeparateHoldings => 0);
+ if (scalar(@itemloop) == 0) {
+ @itemloop = @otheritemloop;
+ }
+}
+
$template->param( norequests => $norequests );
$template->param(
MARCNOTES => $marcnotesarray,
subscriptions => \@subs,
subscriptionsnumber => $subscriptionsnumber,
subscriptiontitle => $dat->{title},
+ searchid => $query->param('searchid'),
);
# $debug and $template->param(debug_display => 1);