From c860b75d0b3d2cea6e764ea610b45471e77cdf74 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 (cherry picked from commit 23f45686411aa4e26dab157d69b156c896136915) Signed-off-by: Julian Maurice --- 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 d808354291..56ed41a0c9 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -46,6 +46,7 @@ use C4::Members::Attributes qw(GetBorrowerAttributes); use Koha::Borrower::Debarments qw(GetDebarments IsDebarred); use Koha::DateUtils; use Koha::Database; +use Koha::Borrower::Modifications; use Date::Calc qw( Today @@ -635,6 +636,7 @@ $template->param( debarments => GetDebarments({ borrowernumber => $borrowernumber }), todaysdate => output_pref( { dt => dt_from_string()->set(hour => 23)->set(minute => 59), dateformat => 'sql' } ), nopermission => $query->param('nopermission'), + modifications => Koha::Borrower::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 0c1f95b272..60cc26fe84 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -732,6 +732,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