Bugzilla – Attachment 104112 Details for
Bug 13388
Add library pages to the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13388: (QA follow-up) Add id to nav item and use singleBranchMode
Bug-13388-QA-follow-up-Add-id-to-nav-item-and-use-.patch (text/plain), 2.54 KB, created by
Katrin Fischer
on 2020-05-01 15:09:10 UTC
(
hide
)
Description:
Bug 13388: (QA follow-up) Add id to nav item and use singleBranchMode
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-05-01 15:09:10 UTC
Size:
2.54 KB
patch
obsolete
>From 3bb2c656e6acea2290766303c82704e723098345 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >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 <katrin.fischer.83@web.de> >--- > 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 @@ > <li><a href="/cgi-bin/koha/opac-suggestions.pl">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 --> >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 @@ > </div> <!-- /#library_info --> > > [% ELSE %] >- <h2>Libraries</h2> >+ <h2>[% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]</h2> > > [% FOREACH library IN libraries %] > <h3 property="name"> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13388
:
103923
|
104042
|
104052
|
104081
|
104083
|
104084
|
104095
|
104096
|
104097
|
104109
|
104110
|
104111
| 104112