Bugzilla – Attachment 97440 Details for
Bug 24364
Display item holding library in opac issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24364: Display item holding library in opac issues
Bug-24364-Display-item-holding-library-in-opac-iss.patch (text/plain), 4.24 KB, created by
Owen Leonard
on 2020-01-16 13:14:37 UTC
(
hide
)
Description:
Bug 24364: Display item holding library in opac issues
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-01-16 13:14:37 UTC
Size:
4.24 KB
patch
obsolete
>From 7fc6ee6151cb6caf725b5ab2149d652ad318c188 Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >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 @@ > <th>Barcode</th> > [% END %] > <th>Call no.</th> >+ <th>Library</th> > [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] > <th class="nosort">Renew</th> > [% END %] >@@ -293,6 +294,10 @@ > <span class="tdlabel">Call no.:</span> > [% ISSUE.itemcallnumber | html %] > </td> >+ <td class="library"> >+ <span class="tdlabel">Library:</span> >+ [% ISSUE.library | html %] >+ </td> > [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %] > <td class="renew"> > [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %] >@@ -498,6 +503,7 @@ > [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %] > [% IF ( show_barcode ) %]<th>Barcode</th>[% END %] > <th>Call no.</th> >+ <th>Library</th> > <th class="title-string psort">Due</th> > [% IF ( OpacRenewalAllowed ) %] > <th class="nosort">Renew</th> >@@ -569,6 +575,10 @@ > [% OVERDUE.itemcallnumber | html %] > </td> > <td> >+ <span class="tdlabel">Library:</span> >+ [% OVERDUE.library | html %] >+ </td> >+ <td> > <span title="[% OVERDUE.date_due | html %]"> > <span class="tdlabel">Date due:</span> > [% 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24364
:
96894
|
97145
|
97431
| 97440