From 063baeb103fa55d76f591087bd4265ce856dd3ba Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 28 Feb 2024 16:47:18 +0000 Subject: [PATCH] Bug 36197: Consider unauthenticated_ill in 'Standard' create form This also makes sure an empty left side bar exists for opac unauthenticated screens Signed-off-by: David Nind --- Koha/ILL/Backend/opac-includes/create.inc | 5 +++++ koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt | 5 +++++ opac/opac-illrequests.pl | 1 + 3 files changed, 11 insertions(+) diff --git a/Koha/ILL/Backend/opac-includes/create.inc b/Koha/ILL/Backend/opac-includes/create.inc index 346376bb89..f2d1f1626d 100644 --- a/Koha/ILL/Backend/opac-includes/create.inc +++ b/Koha/ILL/Backend/opac-includes/create.inc @@ -40,6 +40,11 @@
Patron options
    + [% IF unauthenticated_ill && !logged_in_user%] + [% PROCESS ill_text_input_field required = 1 id = 'unauthenticated_first_name' label = t('First name') value = whole.value.other.unauthenticated_first_name %] + [% PROCESS ill_text_input_field required = 1 id = 'unauthenticated_last_name' label = t('Last name') value = whole.value.other.unauthenticated_last_name %] + [% PROCESS ill_text_input_field required = 1 id = 'unauthenticated_email' label = t('E-mail address') value = whole.value.other.unauthenticated_email %] + [% END %] [% WRAPPER ill_select_field required = 1 id = 'branchcode' label = t('Destination library') %] [% FOREACH branch IN branches %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt index f1e368639a..8fd343d4d6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt @@ -65,6 +65,11 @@ [% INCLUDE 'navigation.inc' IsPatronPage=1 %] + [% ELSIF (!logged_in_user) %] +
    + +
    [% END %] [% IF ( OpacNav||loggedinusername ) %] diff --git a/opac/opac-illrequests.pl b/opac/opac-illrequests.pl index 7871e96382..906a7262eb 100755 --- a/opac/opac-illrequests.pl +++ b/opac/opac-illrequests.pl @@ -196,6 +196,7 @@ if ( $op eq 'list' ) { } $template->param( + unauthenticated_ill => C4::Context->preference('ILLOpacUnauthenticatedRequest'), can_patron_place_ill_in_opac => $can_patron_place_ill_in_opac, message => $params->{message}, illrequestsview => 1, -- 2.39.5