From ae4e269b7b12975d7e0d5504d0b2b504fa41a4ce Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 1 Feb 2018 14:32:54 -0300 Subject: [PATCH] Bug 19188: Use the Price template plugin with_symbol => 1 To make it displayed correctly depending on the configuration of the currency Signed-off-by: Katrin Fischer Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit c6366c6d6869be719e48e73b40827efd574a13c6) Signed-off-by: Jacob O'Mara --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 2 +- opac/sco/sco-main.pl | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index 2d644a4c71..b5d3d6c900 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -69,7 +69,7 @@ [% ELSIF ( circ_error_NOT_FOR_LOAN ) %] This item is not for loan. [% ELSIF ( circ_error_DEBT ) %] - You owe the library [% currencySym %] [% DEBT | $Price %] and cannot check out. + You owe the library [% DEBT | $Price with_symbol => 1%] and cannot check out. [% ELSIF ( circ_error_WTHDRAWN ) %] This item has been withdrawn from the collection. [% ELSIF ( circ_error_RESTRICTED ) %] diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl index 56e7b48b6c..ac89db749c 100755 --- a/opac/sco/sco-main.pl +++ b/opac/sco/sco-main.pl @@ -200,7 +200,6 @@ elsif ( $patron && ( $op eq 'checkout' ) ) { ); if ($issue_error eq 'DEBT') { $template->param(DEBT => $impossible->{DEBT}); - $template->param(currencySym => $currencySymbol); } if ( $issue_error eq "NO_MORE_RENEWALS" ) { $return_only = 1; @@ -225,7 +224,6 @@ elsif ( $patron && ( $op eq 'checkout' ) ) { ); if ($issue_error eq 'DEBT') { $template->param(DEBT => $needconfirm->{DEBT}); - $template->param(currencySym => $currencySymbol); } } else { if ( $confirmed || $issuenoconfirm ) { # we'll want to call getpatroninfo again to get updated issues. -- 2.39.5