From 0da25a5b90c45abd0f3178c5194835c915d7c42c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 4 Mar 2025 17:15:06 +0000 Subject: [PATCH] Bug 36095: Improve translation of title tags: OPAC part 2 This patch updates a batch of OPAC templates so that title tags can be more easily translated. To test, apply the patch and confirm that the following pages have correct title tags: - Check the OPAC main page - Follow the "Libraries" link - Check one of the individual library pages - From the OPAC main page, view the RSS feed for OPAC news (requires at least one news item be added via Tools -> News -> New entry). - Search the catalog and view the detail page for one of the results. - View the IDREF page, e.g. http://localhost:8080/cgi-bin/koha/opac-idref.pl?unimarc3=032581270 - With OverDrive configured and enabled, perform a catalog search. - Follow the "Found X results in the library's OverDrive credentials" link to view OverDrive search results. - These pages normally aren't accessed directly but they are modified: Download cart, e.g. http://localhost:8080/cgi-bin/koha/opac-downloadcart.pl?bib_list=5302/4893/4594 Download shelf, e.g. http://localhost:8080/cgi-bin/koha/opac-downloadshelf.pl?shelfnumber=X Checkout note, e.g. http://localhost:8080/cgi-bin/koha/opac-issue-note.pl?issue_id=X - In the staff client, add a local cover image to a bibliographic record (requires the OPACLocalCoverImages system preference be enabled). - View the detail page for that record in the OPAC. - Under the images tab, right-click the image thumbnail and open in a new tab. - Search the catalog for a record with a subscription and view the detail page. Under the "Subscriptions" page, click "More details," then the "Full history" tab. - In the staff client, go to Tools -> Pages and create a page for the OPAC. View that page. - Log in to the OPAC. From your "Summary" page, - View the curbside pickups page (requires the CurbsidePickup preference be enabled) - View the "Ask for discharge" page (requires the useDischarge preference be enabled) - View the holds history page (requires the OPACHoldsHistory preference be enabled) - View the ILL requests page (requires the ILLModule preference be enabled - View the "Personal details" page. - View the messaging page (requires the EnhancedMessagingPreferencesOPAC preference be enabled) - From the "Summary" page, under the "Checked out" tab, click the "Add note" for one of the checkouts (requires the AllowCheckoutNotes preference be enabled). - After adding a note - View the "Personal details" page and submit an edit (requires the OPACPatronDetails preference be enabled). Check the confirmation page. Sponsored-by: Athens County Public Libraries --- .../en/modules/opac-curbside-pickups.tt | 9 +++- .../bootstrap/en/modules/opac-detail.tt | 10 ++++- .../bootstrap/en/modules/opac-discharge.tt | 9 +++- .../bootstrap/en/modules/opac-downloadcart.tt | 9 +++- .../en/modules/opac-downloadshelf.tt | 12 +++++- .../en/modules/opac-full-serial-issues.tt | 9 +++- .../bootstrap/en/modules/opac-holdshistory.tt | 9 +++- .../bootstrap/en/modules/opac-idref.tt | 9 +++- .../bootstrap/en/modules/opac-illrequests.tt | 9 +++- .../bootstrap/en/modules/opac-imageviewer.tt | 10 ++++- .../bootstrap/en/modules/opac-issue-note.tt | 9 +++- .../bootstrap/en/modules/opac-library.tt | 27 ++++++------ .../bootstrap/en/modules/opac-main.tt | 7 ++- .../opac-memberentry-update-submitted.tt | 9 +++- .../bootstrap/en/modules/opac-memberentry.tt | 12 +++++- .../bootstrap/en/modules/opac-messaging.tt | 9 +++- .../bootstrap/en/modules/opac-news-rss.tt | 43 ++++++++++++------- .../en/modules/opac-overdrive-search.tt | 9 +++- .../bootstrap/en/modules/opac-page.tt | 12 +++++- 19 files changed, 185 insertions(+), 47 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt index 1bc70627f5b..d265f034d76 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt @@ -4,10 +4,17 @@ [% USE KohaDates %] [% USE Branches %] [% USE AdditionalContents %] +[% PROCESS 'i18n.inc' %] +[% PROCESS 'html_helpers.inc' %] [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% INCLUDE 'doc-head-open.inc' %] -Your curbside pickups › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog +[% FILTER collapse %] + [% t("Your curbside pickups") | html %] + › [% PROCESS 'library_name_title' %] + [% END %] [% FILTER collapse %]