From 3bb2c656e6acea2290766303c82704e723098345 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 1 May 2020 15:07:07 +0000 Subject: [PATCH] Bug 13388: (QA follow-up) Add id to nav item and use singleBranchMode This uses the existing singleBranchMode variable to display either Library or Libraries depending on the number of existing libraries in the installation. It also adds an id to the navigation item for customization purposes. Signed-off-by: Katrin Fischer --- koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 8 +++++++- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 99162b996f..d56c70b6f2 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -315,7 +315,13 @@
  • Purchase suggestions
  • [% END %] [% END %] -
  • Libraries
  • +
  • + [% IF ( singleBranchMode ) %] + Library + [% ELSE %] + Libraries + [% END %] +
  • [% Koha.Preference('OpacMoreSearches') | $raw %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt index de34d97379..dec3db9b48 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt @@ -129,7 +129,7 @@ [% ELSE %] -

    Libraries

    +

    [% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]

    [% FOREACH library IN libraries %]

    -- 2.11.0