Bugzilla – Attachment 54159 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]
[SIGNED-OFF] Bug 17076 - Format fines in patron search results table
SIGNED-OFF-Bug-17076---Format-fines-in-patron-sear.patch (text/plain), 2.31 KB, created by
Owen Leonard
on 2016-08-08 13:06:07 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 17076 - Format fines in patron search results table
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-08-08 13:06:07 UTC
Size:
2.31 KB
patch
obsolete
>From 391dd1e50e7e629016beea270bfdc9267a40d8d9 Mon Sep 17 00:00:00 2001 >From: Marc <veron@veron.ch> >Date: Mon, 8 Aug 2016 11:33:50 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 17076 - Format fines in patron search > results table >Content-Type: text/plain; charset="utf-8" > >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> >--- > .../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.1.4
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