Bugzilla – Attachment 134657 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.37 KB, created by
David Nind
on 2022-05-05 20:03:08 UTC
(
hide
)
Description:
Bug 30695: Display tabs more consistently in patron details
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-05-05 20:03:08 UTC
Size:
6.37 KB
patch
obsolete
>From b0ad33f9f5c394de233b0ce52f9cdc4d4db38d24 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> >--- > .../prog/en/modules/circ/circulation.tt | 35 +++++++------------ > 1 file changed, 13 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 5a35cc181e..43461d35d7 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,28 @@ > <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 +818,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 +828,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.30.2
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