@@ -, +, @@ --- catalogue/detail.pl | 5 ++++- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) --- a/catalogue/detail.pl +++ a/catalogue/detail.pl @@ -540,7 +540,10 @@ my $holds = $biblio->holds; $template->param( holdcount => $holds->count ); # Check if there are any ILL requests connected to the biblio -my $illrequests = Koha::Illrequests->search({ biblio_id => $biblionumber }); +my $illrequests = + C4::Context->preference('ILLModule') + ? Koha::Illrequests->search( { biblio_id => $biblionumber } ) + : []; $template->param( illrequests => $illrequests ); my $StaffDetailItemSelection = C4::Context->preference('StaffDetailItemSelection'); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -128,7 +128,7 @@ [% END %] - [% IF ( Koha.Preference( 'ILLModule' ) && illrequests.count ) %] + [% IF illrequests.count %] ILL requests: [% IF CAN_user_ill %] --