Bugzilla – Attachment 46727 Details for
Bug 15375
Translatability: Fix issues on OPAC page 'Placing a hold'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15375 [QA Followup] - Fix non-functional restriction message and date
Bug-15375-QA-Followup---Fix-non-functional-restric.patch (text/plain), 2.95 KB, created by
Kyle M Hall (khall)
on 2016-01-15 18:26:18 UTC
(
hide
)
Description:
Bug 15375 [QA Followup] - Fix non-functional restriction message and date
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-01-15 18:26:18 UTC
Size:
2.95 KB
patch
obsolete
>From 6c48c6436d91901a4988655dfb599f24c375bbbf Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 15 Jan 2016 18:20:09 +0000 >Subject: [PATCH] Bug 15375 [QA Followup] - Fix non-functional restriction > message and date > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 4 ++-- > opac/opac-reserve.pl | 9 +++++++-- > 2 files changed, 9 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >index 49f8863..de7e3e8 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >@@ -40,8 +40,8 @@ > [% IF ( debarred ) %] > <li id="debarred"> > Your account has been frozen. >- [% IF ( BORROWER_INF.debarredcomment ) %] Comment: <span id="userdebarred_comment">"[% BORROWER_INF.debarredcomment %]"</span>[% END %] >- [% IF ( BORROWER_INF.userdebarreddate ) %] End date: <span id="userdebarred_date">[% BORROWER_INF.userdebarreddate | $KohaDates %]</span>[% END %] >+ [% IF debarred_comment %] Comment: <span id="userdebarred_comment">"[% debarred_comment %]"</span>[% END %] >+ [% IF debarred_date && debarred_date != '9999-12-31' %] End date: <span id="userdebarred_date">[% debarred_date | $KohaDates %]</span>[% END %] > <br /><em>Usually the reason for freezing an account is old overdues or damage fees. If shows your account to be clear, please contact the library.</em> <a href="/cgi-bin/koha/opac-account.pl">Go to your account page</a> > </li> > [% END %] >diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl >index 60232cc..277b2fe 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -314,6 +314,7 @@ if ( $borr->{'amountoutstanding'} && ($borr->{'amountoutstanding'} > $maxoutstan > $noreserves = 1; > $template->param( too_much_oweing => $amount ); > } >+ > if ( $borr->{gonenoaddress} && ($borr->{gonenoaddress} == 1) ) { > $noreserves = 1; > $template->param( >@@ -321,6 +322,7 @@ if ( $borr->{gonenoaddress} && ($borr->{gonenoaddress} == 1) ) { > GNA => 1 > ); > } >+ > if ( $borr->{lost} && ($borr->{lost} == 1) ) { > $noreserves = 1; > $template->param( >@@ -328,11 +330,14 @@ if ( $borr->{lost} && ($borr->{lost} == 1) ) { > lost => 1 > ); > } >+ > if ( IsDebarred($borrowernumber) ) { > $noreserves = 1; > $template->param( >- message => 1, >- debarred => 1 >+ message => 1, >+ debarred => 1, >+ debarred_comment => $borr->{debarredcomment}, >+ debarred_date => $borr->{debarred}, > ); > } > >-- >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 15375
:
45697
|
45715
|
46631
|
46724
|
46725
|
46726
| 46727