From 49f0f5c615976efa2ba81c4611d8c8c713802f70 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 | 4 ++++ opac/opac-illrequests.pl | 1 + 3 files changed, 10 insertions(+) diff --git a/Koha/ILL/Backend/opac-includes/create.inc b/Koha/ILL/Backend/opac-includes/create.inc index 1b14f8dd02b..f80c151e751 100644 --- a/Koha/ILL/Backend/opac-includes/create.inc +++ b/Koha/ILL/Backend/opac-includes/create.inc @@ -36,6 +36,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 8fb64a571b8..98a26b55157 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt @@ -64,6 +64,10 @@
    + [% ELSIF (!logged_in_user) %] +
    + +
    [% END %] [% SET column_class = "col order-first order-md-first order-lg-2" %] diff --git a/opac/opac-illrequests.pl b/opac/opac-illrequests.pl index 64b10ef4d2e..741442b0fee 100755 --- a/opac/opac-illrequests.pl +++ b/opac/opac-illrequests.pl @@ -183,6 +183,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