Bugzilla – Attachment 54186 Details for
Bug 17076
Format fines in patron search results table (staff client)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17076 - Format fines in patron search results table
Bug-17076---Format-fines-in-patron-search-results-.patch (text/plain), 2.32 KB, created by
Jonathan Druart
on 2016-08-09 09:28:37 UTC
(
hide
)
Description:
Bug 17076 - Format fines in patron search results table
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-08-09 09:28:37 UTC
Size:
2.32 KB
patch
obsolete
>From 932ac75701678a8f7405f71a1bada3af991a2286 Mon Sep 17 00:00:00 2001 >From: Marc <veron@veron.ch> >Date: Mon, 8 Aug 2016 11:33:50 +0200 >Subject: [PATCH] Bug 17076 - Format fines in patron search results table > >Format the values in patron search results following syspref CurrencyFormat. > >To verify: >- Search for patrons who have fines or credits >- In result table, column 'Fines' does not respect syspref CurrencyFormat > (e.g. for FR) > >To test: >- Apply patch >- Repeat steps above, verify that fines display as appropriate >- Change syspref Currencyformat, verify display > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../intranet-tmpl/prog/en/modules/members/tables/members_results.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt >index b97fbac..00e7598 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt >@@ -1,6 +1,7 @@ > [% USE To %] > [% USE AuthorisedValues %] > [% USE KohaDates %] >+[% USE Price %] > { > "sEcho": [% sEcho %], > "iTotalRecords": [% iTotalRecords %], >@@ -27,7 +28,7 @@ > "dt_od_checkouts": > "[% IF data.overdues %]<span class='overdue'><strong>[% data.overdues %]</strong></span>[% ELSE %][% data.overdues %][% END %] / [% data.issues %]", > "dt_fines": >- "<span style='text-align: right; display: block;'>[% IF data.fines < 0 %]<span class='credit'>[% data.fines |html %]</span> [% ELSIF data.fines > 0 %] <span class='debit'><strong>[% data.fines |html %]</strong></span> [% ELSE %] [% data.fines |html%] [% END %]</span>", >+ "<span style='text-align: right; display: block;'>[% IF data.fines < 0 %]<span class='credit'>[% data.fines | $Price %]</span> [% ELSIF data.fines > 0 %] <span class='debit'><strong>[% data.fines | $Price %]</strong></span> [% ELSE %] [% data.fines | $Price %] [% END %]</span>", > "dt_borrowernotes": > "[% data.borrowernotes.replace('\\\\' , '\\\\') |html |html_line_break |collapse %]", > "dt_action": >-- >2.8.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 17076
:
54146
|
54159
| 54186