From a8558a2c77e8b7490021249e738adbd471d509c1 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 18 Dec 2012 14:18:16 -0500 Subject: [PATCH] Bug 9393 - Add note to circulation.pl if borrower has pending modifications Signed-off-by: Jonathan Druart New link "patron modifications" (if there are) on the checkout page. --- circ/circulation.pl | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index 3a57685..1ff081a 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -49,6 +49,7 @@ use Koha::DateUtils; use Koha::Database; use Koha::Patron::Messages; use Koha::Patron::Images; +use Koha::Patron::Modifications; use Date::Calc qw( Today @@ -660,6 +661,7 @@ $template->param( canned_bor_notes_loop => $canned_notes, debarments => GetDebarments({ borrowernumber => $borrowernumber }), todaysdate => output_pref( { dt => dt_from_string()->set(hour => 23)->set(minute => 59), dateformat => 'sql' } ), + modifications => Koha::Patron::Modifications->GetModifications({ borrowernumber => $borrowernumber }), ); output_html_with_http_headers $query, $cookie, $template->output; 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 4727192..b4ed6eb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -730,6 +730,14 @@ No patron matched [% message %]