From b58b15428aa4ebd45f74f50d4860dee3f216b2d0 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 18 Apr 2024 15:09:39 +0000 Subject: [PATCH] Bug 36197: OPAC 'Make an ILL request' link Show the 'Make an ILL request' link for unauthenticated users in the OPAC search results page if ILLOpacUnauthenticatedRequest is enabled. Signed-off-by: David Nind --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 291e422583..6e2e7b301b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -393,7 +393,10 @@ [% END # / IF total %] [%# Display "Not finding what you're looking for" for suggestion or ILL %] - [% IF suggestion || ( Koha.Preference( 'ILLModule' ) == 1 && loggedinusername ) %] + [% IF + suggestion || + ( Koha.Preference( 'ILLModule' ) == 1 && ( loggedinusername || Koha.Preference( 'ILLOpacUnauthenticatedRequest') ) ) + %]
Not finding what you're looking for?
    @@ -404,7 +407,9 @@
  • Make a purchase suggestion
  • [% END %] [% END %] - [% IF Koha.Preference( 'ILLModule' ) == 1 && loggedinusername %] + [% IF Koha.Preference( 'ILLModule' ) == 1 && + ( loggedinusername || Koha.Preference( 'ILLOpacUnauthenticatedRequest' ) ) + %] [% IF Koha.Preference( 'AutoILLBackendPriority' ) %]
  • Make an automatic Interlibrary loan request
  • [% ELSE %] -- 2.39.5