Bugzilla – Attachment 174497 Details for
Bug 36197
Allow for OPAC unauthenticated ILL request
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36197: Consider unauthenticated_ill in 'Standard' create form
Bug-36197-Consider-unauthenticatedill-in-Standard-.patch (text/plain), 2.85 KB, created by
Pedro Amorim
on 2024-11-14 11:37:18 UTC
(
hide
)
Description:
Bug 36197: Consider unauthenticated_ill in 'Standard' create form
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-11-14 11:37:18 UTC
Size:
2.85 KB
patch
obsolete
>From 063baeb103fa55d76f591087bd4265ce856dd3ba Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >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 <david@davidnind.com> >--- > 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 @@ > <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 %] >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 %] > </div> > </div> >+ [% ELSIF (!logged_in_user) %] >+ <div class="col-lg-2"> >+ <div id="navigation"> >+ </div> >+ </div> > [% 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36197
:
171358
|
171359
|
171360
|
171361
|
171362
|
171363
|
171364
|
171365
|
171366
|
171367
|
171368
|
171369
|
171370
|
171371
|
174495
|
174496
| 174497 |
174498
|
174499
|
174500
|
174501
|
174502
|
174503
|
174504
|
174505
|
174506
|
174507
|
174508
|
176564
|
176565
|
176680
|
176723
|
176724
|
176726
|
176727