Bugzilla – Attachment 42839 Details for
Bug 14883
Librarians are not warned if patron is restricted when placing holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14883 - Librarians are not warned if patron is restricted when placing holds
Bug-14883---Librarians-are-not-warned-if-patron-is.patch (text/plain), 2.81 KB, created by
Jonathan Druart
on 2015-09-24 10:53:03 UTC
(
hide
)
Description:
Bug 14883 - Librarians are not warned if patron is restricted when placing holds
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-09-24 10:53:03 UTC
Size:
2.81 KB
patch
obsolete
>From e10b54f52f3f120d5dc2b51da624ce7599857fa9 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 23 Sep 2015 10:44:20 -0400 >Subject: [PATCH] Bug 14883 - Librarians are not warned if patron is restricted > when placing holds >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Librarians should be warned that a patron is restricted when placing >holds, as they are warned that a patron's acount has expired. > >Test Plan: >1) Apply this patch >2) Add a restriction for a patron >3) Attempt to place a hold for that patron >4) Note the notice at the top notifying you that the patron is restricted > >Works as expected. >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 4 ++++ > reserve/request.pl | 2 ++ > 2 files changed, 6 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index 1a62e91..f6f52cc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -333,6 +333,10 @@ function checkMultiHold() { > <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a>'s <strong>account has expired</strong></li> > [% END %] > >+ [% IF restricted %] >+ <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]#reldebarments">[% borrowerfirstname %] [% borrowersurname %]</a> <strong>has restrictions</strong></li> >+ [% END %] >+ > [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %] > <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a> <strong>owes [% amount_outstanding | format('%.2f') %]</strong></li> > [% END %] >diff --git a/reserve/request.pl b/reserve/request.pl >index 8ddbb84..fbd5fb6 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -44,6 +44,7 @@ use C4::Utils::DataTables::Members; > use C4::Members; > use C4::Search; # enabled_staff_search_views > use Koha::DateUtils; >+use Koha::Borrower::Debarments qw(IsDebarred); > > my $dbh = C4::Context->dbh; > my $sth; >@@ -176,6 +177,7 @@ if ($borrowernumber_hold && !$action) { > diffbranch => $diffbranch, > messages => $messages, > warnings => $warnings, >+ restricted => IsDebarred($borrowerinfo->{'borrowernumber'}), > amount_outstanding => GetMemberAccountRecords($borrowerinfo->{borrowernumber}), > ); > } >-- >2.1.0
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 14883
:
42814
|
42833
| 42839