[Koha-bugs] [Bug 35147] Add IDs to Shibboleth text on OPAC login page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 25 02:48:13 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35147

--- Comment #1 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 157769
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157769&action=edit
Bug 35147: Add IDs to Shibboleth text on OPAC login page

This enhancement makes it easier for libraries to change the Shibboleth-related
messages on the OPAC login page.

Libraries can employ OPACUserJS to change the text. For e.g., I can replace the
message "If you do not have a Shibboleth account, but you do have a local
login, then you may login below." by putting the following in OPACUserJS:

$("#shib-local-text").text("If you do not have a staff member account, but are
a member of the library, then you may log in below.");

To test:

1. Go to <your-opac-url>/cgi-bin/koha/opac-user.pl , or disable the OpacPublic
system preference. Ensure you are logged out of the OPAC.
2. In the staff interface, search for the OPACUserJS system preference under
Koha Administration. Add the following JS and Save:

$("#shib-invalid").text("Test changing the invalid Shibboleth login message.");
$("#shib-title").text("Test changing the Shibboleth login heading.");
$("#shib-link-text").text("Test changing the Shibboleth account link text.");
$("#shib-local-title").text("Test changing the local login heading.");
$("#shib-local-text").text("Test changing the message that shows if you do not
have a Shibboleth account.");

3. Refresh the OPAC and confirm the text changes to reflect your JS. Note: The
invalid Shibboleth login will be a bit harder to test, so if you can't test,
confirm the HTML in the patch looks correct.

Sponsored-by: New Zealand Council for Educational Research

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list