From 10012db38d1b2680b261f1cfdcc06b6be978b12b Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 6 Jul 2017 01:28:06 +0000 Subject: [PATCH] Bug 17698: (follow-up) Koha Objects, access borrower through patron sub See Comment 27 This is ready to be tested. Signed-off-by: Brendan Gallagher Signed-off-by: Jonathan Druart --- circ/branchtransfers.pl | 7 ++++++- koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/circ/branchtransfers.pl b/circ/branchtransfers.pl index b9d357c97f..7de588c1ab 100755 --- a/circ/branchtransfers.pl +++ b/circ/branchtransfers.pl @@ -35,6 +35,7 @@ use Koha::AuthorisedValues; use Koha::Holds; use Koha::Items; use Koha::Patrons; +use Koha::Checkouts; ############################################### # Getting state @@ -220,6 +221,9 @@ foreach my $code ( keys %$messages ) { # use Data::Dumper; # warn "FINAL ============= ".Dumper(@trsfitemloop); + +my $pending_checkout_notes = Koha::Checkouts->search({ noteseen => 0 })->count; + $template->param( found => $found, reserved => $reserved, @@ -234,7 +238,8 @@ $template->param( setwaiting => $setwaiting, trsfitemloop => \@trsfitemloop, errmsgloop => \@errmsgloop, - CircAutocompl => C4::Context->preference("CircAutocompl") + CircAutocompl => C4::Context->preference("CircAutocompl"), + pending_checkout_notes => $pending_checkout_notes, ); # Checking if there is a Fast Cataloging Framework diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt index aa44abe6de..62c087d80c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt @@ -131,7 +131,7 @@ [% note.item.biblio.title %] - [% note.item.biblio.author %] ([% note.item.barcode %]) [% note.note %] [% note.notedate | $KohaDates %] - [% IF note.borrower.title %][% note.borrower.title [% END %][% note.borrower.firstname %] [% note.borrower.surname %] ([% note.borrower.cardnumber %]) + [% IF note.patron.title %][% note.patron.title [% END %][% note.patron.firstname %] [% note.patron.surname %] ([% note.patron.cardnumber %]) [% IF ( note.noteseen == 0 ) %] Not seen @@ -162,7 +162,7 @@ [% END %] - + [% IF Koha.Preference('CircSidebar') %] -- 2.11.0