From 7fc6ee6151cb6caf725b5ab2149d652ad318c188 Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Thu, 1 Aug 2019 11:15:27 +0200 Subject: [PATCH] Bug 24364: Display item holding library in opac issues Test plan: Check that the library is displayed in patrons opac issues. ('Your summary' -> 'Checked out' and 'Overdue' tabs) --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 10 ++++++++++ opac/opac-user.pl | 3 +++ 2 files changed, 13 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 96c494c9499..d2381df2af1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -198,6 +198,7 @@ Barcode [% END %] Call no. + Library [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] Renew [% END %] @@ -293,6 +294,10 @@ Call no.: [% ISSUE.itemcallnumber | html %] + + Library: + [% ISSUE.library | html %] + [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] [% IF ISSUE.renewed %]Renewed!
[% END %] @@ -498,6 +503,7 @@ [% UNLESS ( item_level_itypes ) %]Item type [% END %] [% IF ( show_barcode ) %]Barcode[% END %] Call no. + Library Due [% IF ( OpacRenewalAllowed ) %] Renew @@ -569,6 +575,10 @@ [% OVERDUE.itemcallnumber | html %] + Library: + [% OVERDUE.library | html %] + + Date due: [% OVERDUE.date_due | $KohaDates as_due_date => 1 %] diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 6c55ad29654..f709a236e89 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -255,6 +255,9 @@ if ( $pending_checkouts->count ) { # Useless test } $issue->{biblio_object} = Koha::Biblios->find($issue->{biblionumber}); + my $item = Koha::Items->find($issue->{'itemnumber'}); + my $library = Koha::Libraries->find($item->holdingbranch); + $issue->{'library'} = $library->branchname; push @issuedat, $issue; $count++; -- 2.11.0