From ca9769804f43b1b95e492d3d4846e373889b0641 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 18 Dec 2012 14:18:16 -0500 Subject: [PATCH] [PASSED QA] 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. Signed-off-by: Katrin Fischer --- 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 %]
    + [% IF ( modifications ) %] +
  • Pending modifications: Patron has pending modifications. + [% IF ( CAN_user_borrowers ) %] + View all pending patron modifications + [% END %] +
  • + [% END %] + [% IF ( warndeparture ) %]
  • Expiration: Patron's card will expire soon. Patron's card expires on [% expiry | $KohaDates %] Renew or Edit Details -- 1.9.1