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 <brendan@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
4e722eda45
commit
cd4d46882f
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@
|
|||
<td>[% note.item.biblio.title %] - [% note.item.biblio.author %] (<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% note.item.biblionumber %]">[% note.item.barcode %]</a>)</td>
|
||||
<td>[% note.note %]</td>
|
||||
<td>[% note.notedate | $KohaDates %]</td>
|
||||
<td>[% IF note.borrower.title %][% note.borrower.title [% END %][% note.borrower.firstname %] [% note.borrower.surname %] (<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% note.borrower.borrowernumber %]">[% note.borrower.cardnumber %]</a>)</td>
|
||||
<td>[% IF note.patron.title %][% note.patron.title [% END %][% note.patron.firstname %] [% note.patron.surname %] (<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% note.patron.borrowernumber %]">[% note.patron.cardnumber %]</a>)</td>
|
||||
<td>
|
||||
[% IF ( note.noteseen == 0 ) %]
|
||||
<span id="status_[% note.issue_id %]">Not seen</span>
|
||||
|
|
@ -162,7 +162,7 @@
|
|||
|
||||
[% END %] <!-- selected_count -->
|
||||
|
||||
</div> <!-- yui-imain -->
|
||||
</div> <!-- yui-main -->
|
||||
|
||||
[% IF Koha.Preference('CircSidebar') %]
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue