Bugzilla – Attachment 134721 Details for
Bug 30695
Checkouts and holds count display in tab could be better in patron details
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30695: Display tabs more consistently in patron details
Bug-30695-Display-tabs-more-consistently-in-patron.patch (text/plain), 6.46 KB, created by
Martin Renvoize (ashimema)
on 2022-05-06 11:22:50 UTC
(
hide
)
Description:
Bug 30695: Display tabs more consistently in patron details
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-05-06 11:22:50 UTC
Size:
6.46 KB
patch
obsolete
>From 20403f08c91b055a07b977e740ca5570729586c7 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 5 May 2022 12:03:35 -0300 >Subject: [PATCH] Bug 30695: Display tabs more consistently in patron details > >This patch makes tab texts display 'Thing (count)' as opossed to the >current mix we have. > >To test, check before after the patch how it looks. > >You need to: >- Enable ArticleRequests >- Set ClaimReturnedLostValue to 1 (for example) >- Have some clubs set > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../prog/en/modules/circ/circulation.tt | 36 ++++++++----------- > 1 file changed, 14 insertions(+), 22 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 6b5ef7c81d..de00bc3213 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -789,37 +789,29 @@ > <div id="patronlists" class="toptabs"> > <ul> > <li> >- [% IF ( issuecount ) %] >- <a href="#checkouts">[% issuecount | html %] Checkout(s)</a> >- [% ELSE %] >- <a href="#checkouts">0 Checkouts</a> >- [% END %] >+ <a href="#checkouts">Checkouts ([% issuecount || 0 | html %])</a> > </li> > > [% IF relatives_issues_count %] >- <li><a id="relatives-issues-tab" href="#relatives-issues">[% relatives_issues_count | html %] Relatives' checkouts</a></li> >+ <li> >+ <a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts ([% relatives_issues_count | html %])</a> >+ </li> > [% END %] > > <li> >- [% IF ( holds_count ) %] >- <a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a> >- [% ELSE %] >- <a href="#reserves" id="holds-tab">0 Holds</a> >- [% END %] >+ <a href="#reserves" id="holds-tab">Holds ([% holds_count || 0 | html %])</a> > </li> > > [% IF Koha.Preference('UseRecalls') %] > <li> >- <a href="#recalls" id="recalls-tab"> >- [% recalls.count | html %] Recalls >- </a> >+ <a href="#recalls" id="recalls-tab">Recalls ([% recalls.count || 0 | html %])</a> > </li> > [% END %] > > [% IF Koha.Preference('ArticleRequests') %] > [% SET current_article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current' ) %] > <li> >- <a href="#article-requests" id="article-requests-tab"> [% current_article_requests.count | html %] Article requests</a> >+ <a href="#article-requests" id="article-requests-tab">Article requests ([% current_article_requests.count || 0 | html %])</a> > </li> > [% END %] > >@@ -827,8 +819,8 @@ > <li> > [% IF ( patron.return_claims.count ) %] > <a href="#return-claims" id="return-claims-tab"> >- Claim(s) >- [% IF patron.return_claims.resolved.count == 0 %] >+ Claims >+ ([% IF patron.return_claims.resolved.count == 0 %] > <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span> > [% ELSE %] > <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span> >@@ -837,19 +829,19 @@ > <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span> > [% ELSE %] > <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span> >- [% END %] >+ [% END %]) > </a> > [% ELSE %] > <a href="#return-claims" id="return-claims-tab"> >- Claim(s) >- <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span> >- <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span> >+ Claims >+ (<span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span> >+ <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>) > </a> > [% END %] > </li> > [% END %] > >- <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li> >+ <li><a id="debarments-tab-link" href="#reldebarments">Restrictions ([% debarments.count || 0 | html %])</a></li> > > [% SET enrollments = patron.get_club_enrollments %] > [% SET enrollable = patron.get_enrollable_clubs(0) %] <!-- 0 => not OPAC --> >-- >2.20.1
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 30695
:
134650
|
134657
| 134721 |
134722
|
135053