Bug 33907: Improve translation of title tags: OPAC part 1

This patch updates a batch of OPAC templates so that title tags can
be more easily translated. Some templates have been updated for
consistency as well: Harmonizing page title, breaddrumb navigation, and
page headers.

To test, apply the patch and confirm that the following pages have
correct title tags:

- Log in to the OPAC by navigating directly to a user page like
    /cgi-bin/koha/opac-user.pl
- From your user summary page, click "Charges."
- Check the advanced search page.
- Search for a bibliographic record and view the details, and then click
  "MARC view" and "ISBD view."
- From this page click "Save to your lists" and check the title in the
  popup window."
- Still on a detail page, click "Add to your cart." Open the cart and
  check that page.
- Go to authority search (must have OpacAuthorities enabled).
  - Perform an authority search which will return results.
  - View the detail page for one of the results, and check the MARC view
    as well.
- With UseCourseReserves enabled, view the course reserves page, then
  the course reserve detail page.
- Search for a subscription which has patron notification enabled.
  - View the detail page, then open the "Subscriptions" tab. Click "More
    details."
    - On this page you should see a "Subscribe to email notification"
      button. Click it to open the subscription page.
- Check both /cgi-bin/koha/opac-browse.pl and
  /cgi-bin/koha/opac-browser.pl. Whether or not the features are enabled
  you should be able to check the title.
- Check /cgi-bin/koha/ilsdi.pl as well as one or more views linked to on
  that page.
- Navigate to a page in the OPAC which doesn't exist to test the error
  page template.
- Go to Administration -> System preferences and enable the
  OpacMaintenance preference.
  - Go to the OPAC and check the system maintenance page.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Owen Leonard 2023-09-18 14:09:48 +00:00 committed by Katrin Fischer
parent 058a09b7d9
commit bae6560a26
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
22 changed files with 175 additions and 61 deletions

View file

@ -168,3 +168,11 @@
</li>
[% END %]
[% END %]
[% BLOCK library_name_title %]
[% IF ( LibraryNameTitle ) %]
[% tx("{library} catalog", { library = LibraryNameTitle }) | html %]
[% ELSE %]
[% t("Koha online catalog") | html %]
[% END %]
[% END %]

View file

@ -1,9 +1,14 @@
[% USE raw %]
[% 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' %]
<title>An error has occurred &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("An error has occurred") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>

View file

@ -1,38 +1,39 @@
[% USE raw %]
[% USE Koha %]
[% 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' %]
<title>
<title>[% FILTER collapse %]
[% IF ( GetAvailability ) %]
ILS-DI &rsaquo; GetAvailability
[% t("GetAvailability") | html %] &rsaquo;
[% ELSIF ( GetRecords ) %]
ILS-DI &rsaquo; GetRecords
[% t("GetRecords") | html %] &rsaquo;
[% ELSIF ( GetAuthorityRecords ) %]
ILS-DI &rsaquo; GetAuthorityRecords
[% t("GetAuthorityRecords") | html %] &rsaquo;
[% ELSIF ( LookupPatron ) %]
ILS-DI &rsaquo; LookupPatron
[% t("LookupPatron") | html %] &rsaquo;
[% ELSIF ( AuthenticatePatron ) %]
ILS-DI &rsaquo; AuthenticatePatron
[% t("AuthenticatePatron") | html %] &rsaquo;
[% ELSIF ( GetPatronInfo ) %]
ILS-DI &rsaquo; GetPatronInfo
[% t("GetPatronInfo") | html %] &rsaquo;
[% ELSIF ( GetPatronStatus ) %]
ILS-DI &rsaquo; GetPatronStatus
[% t("GetPatronStatus") | html %] &rsaquo;
[% ELSIF ( GetServices ) %]
ILS-DI &rsaquo; GetServices
[% t("GetServices") | html %] &rsaquo;
[% ELSIF ( RenewLoan ) %]
ILS-DI &rsaquo; RenewLoan
[% t("RenewLoan") | html %] &rsaquo;
[% ELSIF ( HoldTitle ) %]
ILS-DI &rsaquo; HoldTitle
[% t("HoldTitle") | html %] &rsaquo;
[% ELSIF ( HoldItem ) %]
ILS-DI &rsaquo; HoldItem
[% t("HoldItem") | html %] &rsaquo;
[% ELSIF ( CancelHold ) %]
ILS-DI &rsaquo; CancelHold
[% ELSE %]
ILS-DI
[% t("CancelHold") | html %] &rsaquo;
[% END %]
&rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog
</title>
[% t("ILS-DI") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>

View file

@ -1,12 +1,17 @@
[% USE raw %]
[% USE Koha %]
[% USE AdditionalContents %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
[% SET OpacHeader = AdditionalContents.get( location => "opacheader", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
[% SET OpacMaintenanceNotice = AdditionalContents.get( location => "OpacMaintenanceNotice", lang => lang, library => branchcode || default_branch ) %]
[% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
[% SET opaclanguagedisplay = Koha.Preference('opaclanguagedisplay') %]
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("System maintenance") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %]
<style>

View file

@ -1,7 +1,12 @@
[% USE raw %]
[% USE Koha %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>ISBD view &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% tx("ISBD view for: {title}", { title = biblio.title }) | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>
@ -11,7 +16,7 @@
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>ISBD view for: [% biblio.title | html %]</span>
[% tx("ISBD view for {title}", { title = biblio.title }) | html %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]

View file

@ -1,7 +1,12 @@
[% USE raw %]
[% USE Koha %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>MARC details for record no. [% biblio.biblionumber | html %] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% tx("MARC view for: {title}", { title = bibliotitle }) | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>

View file

@ -4,13 +4,18 @@
[% USE KohaDates %]
[% USE AuthorisedValues %]
[% USE Price %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% SET ENABLE_OPAC_PAYMENTS = payment_methods %]
[% USE AdditionalContents %]
[% SET DISPLAY_PAYMENT_BLOCK = 0 %]
[% 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' %]
<title>Your charges &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("Your charges") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>
@ -38,7 +43,7 @@
<div class="col-md-12 col-lg-10 order-1">
<div id="useraccount" class="maincontent">
<h1>Charges</h1>
<h1>Your charges</h1>
[% IF message %]
<div class="alert alert-info">
[% IF message == 'valid_payment' %]

View file

@ -1,5 +1,11 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Add to your list &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("Add to your list") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>

View file

@ -2,8 +2,13 @@
[% USE Asset %]
[% USE Koha %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Advanced search &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("Advanced search") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>

View file

@ -1,7 +1,17 @@
[% USE raw %]
[% USE Koha %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title> [% IF ( typeissue ) %]Subscribe to a subscription alert [% ELSIF ( typeissuecancel ) %] Unsubscribe from a subscription alert [% END %] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% IF ( typeissue ) %]
[% t("Subscribe to a subscription alert") | html %]
[% ELSIF ( typeissuecancel ) %]
[% t("Unsubscribe from a subscription alert") | html %]
[% END %] &rsaquo;
[% bibliotitle | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>

View file

@ -2,11 +2,20 @@
[% USE Asset %]
[% USE Koha %]
[% USE AdditionalContents %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% PROCESS 'opac-authorities.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' %]
<title>Entry [% authtypetext | html %] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("MARC view") | html %] &rsaquo;
[% summary.mainentry | html %]
[% IF authtypetext %]
([% authtypetext | html %])
[% END %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %]
[% IF ( displayhierarchy ) %]
@ -22,8 +31,11 @@
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
[% END %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid | uri %]">[% summary.mainentry | html %] [% IF authtypetext %] ([% authtypetext | html %]) [% END %]</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Entry [% authtypetext | html %]</span>
[% t("MARC view") | html %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]

View file

@ -2,11 +2,20 @@
[% USE Asset %]
[% USE Koha %]
[% USE AdditionalContents %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% PROCESS 'opac-authorities.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' %]
<title>[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %] &rsaquo; Authority search &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% summary.mainentry | html %]
[% IF authtypetext %]
([% authtypetext | html %])
[% END %] &rsaquo;
[% t("Authority search") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %]
[% IF ( displayhierarchy ) %]

View file

@ -3,17 +3,18 @@
[% USE Categories %]
[% USE AdditionalContents %]
[% USE AuthClient %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% SET OpacLoginInstructions = AdditionalContents.get( location => "OpacLoginInstructions", lang => lang, library => branchcode || default_branch ) %]
[% INCLUDE 'doc-head-open.inc' %]
<title>
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
Log in to your account
[% ELSE %]
Catalog login disabled
[% END %] &rsaquo;
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog
</title>
<title>[% FILTER collapse %]
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
[% t("Log in to your account") | html %]
[% ELSE %]
[% t("Catalog login disabled") | html %]
[% END %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>
@ -23,7 +24,11 @@
<div class="main">
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Log in</span>
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
<span>Log in to your account</span>
[% ELSE %]
<span>Catalog login disabled</span>
[% END %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]

View file

@ -1,10 +1,15 @@
[% USE raw %]
[% USE Koha %]
[% 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' %]
<title>Authority search &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("Authority search") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
<meta name="robots" content="noindex">
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]

View file

@ -1,6 +1,8 @@
[% USE raw %]
[% USE Koha %]
[% 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 ) %]
[% PROCESS 'opac-authorities.inc' %]
@ -38,7 +40,11 @@
</nav> <!-- / #pages -->
[% END %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF ( total ) %]Authority search result[% ELSE %]No results found[% END %] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("Results") | html %] &rsaquo;
[% t("Authority search") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>

View file

@ -4,11 +4,16 @@
[% USE Branches %]
[% USE KohaDates %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% SET is_popup = 1 %]
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && TagsEnabled && TagsInputOnList ) %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Your cart &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("Your cart") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %]<style>.item-status, .dt-buttons { display: inline; } @media print { body { height: 99%; } }</style>[% END %]
</head>

View file

@ -1,15 +1,13 @@
[% USE raw %]
[% USE AdditionalContents %]
[% SET OpacSuppressionMessage = AdditionalContents.get( location => "OpacSuppressionMessage", lang => lang, library => branchcode || default_branch ) %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>
Record blocked &rsaquo;
[% IF ( LibraryNameTitle ) %]
[% LibraryNameTitle | html %]
[% ELSE %]
Koha online
[% END %] catalog
</title>
<title>[% FILTER collapse %]
[% t("Record blocked") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>
@ -18,7 +16,7 @@
<div class="main">
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Blocked record</span>
<span>Record blocked</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
@ -26,7 +24,7 @@
<div class="row justify-content-center">
<div class="col-md-10 col-lg-6">
<div id="opac-blocked-message" class="maincontent">
<h1>Blocked</h1>
<h1>Record blocked</h1>
<p>You are not authorized to view this record.</p>
[% IF ( OpacSuppressionMessage ) %]
<div id="opacsuppressionmessage">

View file

@ -1,11 +1,16 @@
[% USE raw %]
[% USE Koha %]
[% USE Asset %]
[% USE raw %]
[% 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' %]
<title>Browse our catalog &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("Browse search") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
<meta name="robots" content="noindex">
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]

View file

@ -1,10 +1,15 @@
[% USE raw %]
[% USE Koha %]
[% 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' %]
<title>Browse our catalog &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("Browse our catalog") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>

View file

@ -7,8 +7,12 @@
[% USE Branches %]
[% USE TablesSettings %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Course reserves for [% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% tx("Course reserves for '{course_name}'", { course_name = course.course_name }) | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
@ -22,7 +26,7 @@
<a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Course reserves for &nbsp;<em>[% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%]</em></span>
[% tx("Course reserves for '{course_name}'", { course_name = course.course_name }) | html %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]
@ -31,7 +35,7 @@
<div class="col">
<div id="course_reserves" class="maincontent">
<h1>Course reserves for <em>[% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%]</em></h1>
<h1>[% tx("Course reserves for '{course_name}'", { course_name = course.course_name }) | html %]</h1>
<div class="rows">
<ol>
[% IF ( course.term ) %]<li><span class="label">[% tp('Semester', 'Term:') | html %]</span> [% AuthorisedValues.GetByCode( 'TERM', course.term, 1 ) | html %]</li>[% END %]

View file

@ -4,9 +4,12 @@
[% USE AuthorisedValues %]
[% USE TablesSettings %]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Courses &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("Course reserves") | html %] &rsaquo;
[% PROCESS 'library_name_title' %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
@ -25,7 +28,7 @@
<div class="row">
<div class="col order-first order-md-first order-lg-2">
<div id="courses" class="maincontent">
<h1>Courses</h1>
<h1>Courses reserves</h1>
<table id="course_reserves_table" class="table table-bordered table-striped table-condensed">
<caption class="sr-only">Courses</caption>

View file

@ -167,6 +167,8 @@ if ($show_marc) {
}
}
$template->param( "Tab0XX" => \@loop_data );
my $summary = BuildSummary( $record, $authid, $authtypecode );
$template->param( summary => $summary );
} else {
my $AuthorityXSLTOpacDetailsDisplay = C4::Context->preference('AuthorityXSLTOpacDetailsDisplay');
if ($AuthorityXSLTOpacDetailsDisplay) {