Browse Source

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 <katrin.fischer.83@web.de>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23.05.x
Jonathan Druart 6 years ago
committed by Tomas Cohen Arazi
parent
commit
c6366c6d68
Signed by: tomascohen GPG Key ID: 0A272EA1B2F3C15F
  1. 2
      koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
  2. 2
      opac/sco/sco-main.pl

2
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt

@ -69,7 +69,7 @@
[% ELSIF ( circ_error_NOT_FOR_LOAN ) %]
<span id="ce_not_for_loan">This item is not for loan.</span>
[% ELSIF ( circ_error_DEBT ) %]
<span id="ce_too_much_debt">You owe the library [% currencySym %] [% DEBT | $Price %] and cannot check out.</span>
<span id="ce_too_much_debt">You owe the library [% DEBT | $Price with_symbol => 1%] and cannot check out.</span>
[% ELSIF ( circ_error_WTHDRAWN ) %]
<span id="ce_wthdrawn">This item has been withdrawn from the collection.</span>
[% ELSIF ( circ_error_RESTRICTED ) %]

2
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.

Loading…
Cancel
Save