From 23f45686411aa4e26dab157d69b156c896136915 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. Signed-off-by: Katrin Fischer Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- circ/circulation.pl | 2 ++ .../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 4a38f7129f..d128321840 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -51,6 +51,7 @@ use Koha::Patron::Messages; use Koha::Patron::Images; use Koha::SearchEngine; use Koha::SearchEngine::Search; +use Koha::Patron::Modifications; use Date::Calc qw( Today @@ -663,6 +664,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 ec3a1d96d6..bb24c0b3c7 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 -- 2.39.5