From 90abcab3ce2ba11153fc0266992dec9ee5fda063 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Mon, 17 Jan 2022 13:05:37 -0500 Subject: [PATCH] LP1958163 Bootstrap Opac: the 'Request a Card' link. This fixes the 'Request a Card' link which displays in the bootstrap opac regardless of the 'Allow Patron Self-Registration' library setting in both the login page and the login modal. To Test: 1. Click on My Account in the Bootstrap Opac to open the login modal. Notice the Request a Card link. Click Login without adding a barcode or pin# to see the login page with its link. 2. Set the Allow Patron Self_Registration library setting to false for the Consortium. 3. Repeat 1, and notice that the link still displays. 4. Apply the patch. 5. Now the link should not be visible in both forms. 6. Set the library setting to true, to verify that the link does display. Signed-off-by: Garry Collum Signed-off-by: Terran McCanna Signed-off-by: Jane Sandberg --- Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2 | 3 +++ Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2 | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2 index b580f9ce2f..fcd8d87640 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2 @@ -43,7 +43,10 @@
+ [% IF ctx.get_org_setting ( + ctx.physical_org || ctx.aou_tree.id, 'opac.allow_pending_user') %] [% l('Request A Card') %] + [% END %]
[% IF reset_password == 'true' %] diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2 index d8d68fee17..44c4544d0a 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2 @@ -50,7 +50,10 @@
+ [% IF ctx.get_org_setting( + ctx.physical_loc || ctx.aou_tree.id, 'opac.allow_pending_user') %] [% l('Request A Card') %] + [% END %]
[% IF reset_password == 'true' %] @@ -97,4 +100,4 @@
-
\ No newline at end of file + -- 2.11.0