Bug 13388: (QA follow-up) Add id to nav item and use singleBranchMode
authorKatrin Fischer <katrin.fischer.83@web.de>
Fri, 1 May 2020 15:07:07 +0000 (15:07 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 4 May 2020 08:11:37 +0000 (09:11 +0100)
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 <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt

index efe0551..88dd9a9 100644 (file)
                                             <li><a href="/cgi-bin/koha/opac-suggestions.pl?suggested_by_anyone=1">Purchase suggestions</a></li>
                                         [% END %]
                                     [% END %]
-                                    <li><a href="/cgi-bin/koha/opac-library.pl">Libraries</a></li>
+                                    <li id="library_page"><a href="/cgi-bin/koha/opac-library.pl">
+                                        [% IF ( singleBranchMode ) %]
+                                            Library
+                                        [% ELSE %]
+                                            Libraries
+                                        [% END %]
+                                    </a></li>
                                     [% Koha.Preference('OpacMoreSearches') | $raw %]
                                 </ul>
                             </div> <!-- /#moresearches -->
index de34d97..dec3db9 100644 (file)
                     </div> <!-- /#library_info -->
 
                 [% ELSE %]
-                    <h2>Libraries</h2>
+                    <h2>[% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]</h2>
 
                     [% FOREACH library IN libraries %]
                         <h3 property="name">