LP1958163 Bootstrap Opac: the 'Request a Card' link. user/gcollum/lp1958163_bootstrap_opac_request_a_card_link
authorGarry Collum <gcollum@gmail.com>
Mon, 17 Jan 2022 18:05:37 +0000 (13:05 -0500)
committerGarry Collum <gcollum@gmail.com>
Mon, 17 Jan 2022 18:05:37 +0000 (13:05 -0500)
commited3f7e133085d8e701dac309948d7550c3e9232a
tree39971d2bea2f4f01af226a97ec6da2cd20ec28c5
parent9f6ddd07a8e8c39c85a58ae3f0a2e00fe0364047
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 <gcollum@gmail.com>
Open-ILS/src/templates-bootstrap/opac/parts/login/form.tt2
Open-ILS/src/templates-bootstrap/opac/parts/login/login_modal.tt2