Bugzilla – Attachment 32000 Details for
Bug 12914
Wrong message 'Patron(..) is blocked for 2014-09-30 day(s).
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 12914 - Wrong message 'Patron(..) is blocked for 2014-09-30 day(s).
SIGNED-OFF-Bug-12914---Wrong-message-Patron-is-blo.patch (text/plain), 3.23 KB, created by
Nick Clemens (kidclamp)
on 2014-10-05 03:36:42 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 12914 - Wrong message 'Patron(..) is blocked for 2014-09-30 day(s).
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2014-10-05 03:36:42 UTC
Size:
3.23 KB
patch
obsolete
>From cc8d794925049f21315438820929796f32135c63 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Sat, 13 Sep 2014 12:52:08 +0200 >Subject: [PATCH] [SIGNED OFF] Bug 12914 - Wrong message 'Patron(..) is > blocked for 2014-09-30 day(s). > >The message in circulation.tt assumed to get days but date is given. Updated comments and message depending on expiration date or no expiration of restriction. > >The message shows up on top of Bug 643 Allow override of 'debarred' status if a patron has a restriction. > >Signed-off-by: Nick Clemens <nick@quecheelibrary.org> >--- > C4/Circulation.pm | 9 +++++++-- > C4/Members.pm | 3 ++- > .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 14 +++++++++----- > 3 files changed, 18 insertions(+), 8 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 8c0b208..8a14f20 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -823,8 +823,13 @@ sub CanBookBeIssued { > $needsconfirmation{USERBLOCKEDOVERDUE} = $count; > } > } elsif($blocktype == 1) { >- # patron has accrued fine days >- $issuingimpossible{USERBLOCKEDREMAINING} = $count; >+ # patron has accrued fine days or has a restriction. $count is a date >+ if ($count eq '9999-12-31') { >+ $issuingimpossible{USERBLOCKEDNOENDDATE} = $count; >+ } >+ else { >+ $issuingimpossible{USERBLOCKEDWITHENDDATE} = format_date($count); >+ } > } > > # >diff --git a/C4/Members.pm b/C4/Members.pm >index e3a5538..3cb0b1e 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -650,7 +650,8 @@ that would block circulation privileges. > > C<$block_status> can have the following values: > >-1 if the patron has outstanding fine days, in which case C<$count> is the number of them >+1 if the patron has outstanding fine days or a manual debarment, in which case >+C<$count> is the expiration date (9999-12-31 for indefinite) > > -1 if the patron has overdue items, in which case C<$count> is the number of them > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 2e82ce5..4969582 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -409,12 +409,16 @@ $(document).ready(function() { > <li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</li> > [% END %] > >- [% IF ( USERBLOCKEDREMAINING ) %] >- <li>Patron has had overdue items and is blocked for [% USERBLOCKEDREMAINING %] day(s).</li> >+ [% IF ( USERBLOCKEDWITHENDDATE ) %] >+ <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE %].</li> > [% END %] >- >- [% IF ( USERBLOCKEDOVERDUE ) %] >- <li>Checkouts are BLOCKED because patron has overdue items</li> >+ >+ [% IF ( USERBLOCKEDNOENDDATE ) %] >+ <li>Patron has a restriction (no expiry date).</li> >+ [% END %] >+ >+ [% IF ( USERBLOCKEDOVERDUE ) %] >+ <li>Checkouts are BLOCKED because patron has overdue items.</li> > [% END %] > </ul> > >-- >1.7.10.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 12914
:
31574
|
32000
|
32283
|
32322
|
32323
|
32403
|
32506