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 <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Katrin Fischer 2020-05-01 15:07:07 +00:00 committed by Martin Renvoize
parent 20c3d85b5e
commit 5a861749d9
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 8 additions and 2 deletions

View File

@ -313,7 +313,13 @@
<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 -->

View File

@ -129,7 +129,7 @@
</div> <!-- /#library_info -->
[% ELSE %]
<h2>Libraries</h2>
<h2>[% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]</h2>
[% FOREACH library IN libraries %]
<h3 property="name">