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 <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2024-02-28 16:47:18 +00:00 committed by Katrin Fischer
parent 363244db5b
commit b3777fbbcb
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 10 additions and 0 deletions

View File

@ -36,6 +36,11 @@
<fieldset class="rows">
<legend>Patron options</legend>
<ol>
[% 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') %]
<option value=""></option>
[% FOREACH branch IN branches %]

View File

@ -64,6 +64,10 @@
<div class="col-lg-2">
<div id="navigation"> [% INCLUDE 'navigation.inc' IsPatronPage=1 %] </div>
</div>
[% ELSIF (!logged_in_user) %]
<div class="col-lg-2">
<div id="navigation"> </div>
</div>
[% END %]
[% SET column_class = "col order-first order-md-first order-lg-2" %]

View File

@ -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,