Bugzilla – Attachment 98635 Details for
Bug 24530
Show the number of title notes in the tab label on the OPAC detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24530: (QA follow-up) Include Syndetics in notes count
Bug-24530-QA-follow-up-Include-Syndetics-in-notes-.patch (text/plain), 1.96 KB, created by
Marcel de Rooy
on 2020-02-10 08:10:32 UTC
(
hide
)
Description:
Bug 24530: (QA follow-up) Include Syndetics in notes count
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-02-10 08:10:32 UTC
Size:
1.96 KB
patch
obsolete
>From 4076808d83c3fb88e96303cedf3d93775e2286e2 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 10 Feb 2020 08:05:50 +0000 >Subject: [PATCH] Bug 24530: (QA follow-up) Include Syndetics in notes count >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Tested by enabling the prefs and passing contents to the template var. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 25f5600408..b7cd8f2b95 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -563,7 +563,14 @@ > <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li> > [% END %] > [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %] >- <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% MARCNOTES.size %] )</a></li> >+ [% SET title_notes_count = 0 %] >+ [% IF MARCNOTES %] >+ [% SET title_notes_count = MARCNOTES.size %] >+ [% ELSIF notes %] >+ [% SET title_notes_count = 1 %] >+ [% END %] >+ [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %] >+ <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count %] )</a></li> > [% END %] > [% IF ( SYNDETICS_TOC ) %] > <li id="tab_toc"> <a href="#toc">TOC</a></li> >-- >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 24530
:
98084
|
98356
|
98635
|
98992
|
98993
|
99091