From 5a861749d911585d64f671c64ec86f8fd07c6748 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 Signed-off-by: Martin Renvoize --- 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 efe05512ef..88dd9a9255 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -313,7 +313,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.39.5