Bugzilla – Attachment 56967 Details for
Bug 16991
Add subtitle to holds to pull report
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16991: Add subtitle to holds to pull report
Bug-16991-Add-subtitle-to-holds-to-pull-report.patch (text/plain), 2.69 KB, created by
Nick Clemens (kidclamp)
on 2016-10-28 19:21:13 UTC
(
hide
)
Description:
Bug 16991: Add subtitle to holds to pull report
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2016-10-28 19:21:13 UTC
Size:
2.69 KB
patch
obsolete
>From 6b34f335689672f891057fb8f5008d3cb35b3193 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 9 Aug 2016 10:14:02 -0400 >Subject: [PATCH] Bug 16991: Add subtitle to holds to pull report > >This patch adds output of subtitle to the holds to pull report using >keyword to MARC mapping information. > >To test, apply the patch and go to Circulation -> Holds to pull. The >list of holds to pull should display subtitles. > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Subtitle added using keyword to MARC mapping with default framework. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > circ/pendingreserves.pl | 7 +++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt | 2 +- > 2 files changed, 8 insertions(+), 1 deletion(-) > >diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl >index 932b035..867b6a3 100755 >--- a/circ/pendingreserves.pl >+++ b/circ/pendingreserves.pl >@@ -31,6 +31,8 @@ use C4::Context; > use C4::Output; > use CGI qw ( -utf8 ); > use C4::Auth; >+use Koha::Biblios; >+use Koha::Biblio; > use C4::Debug; > use Koha::DateUtils; > use DateTime::Duration; >@@ -152,6 +154,10 @@ if ( $run_report ) { > $sth->execute(@query_params); > > while ( my $data = $sth->fetchrow_hashref ) { >+ my $record = Koha::Biblios->find($data->{biblionumber}); >+ if ($record){ >+ $data->{subtitle} = [ $record->subtitles ]; >+ } > push( > @reservedata, > { >@@ -159,6 +165,7 @@ if ( $run_report ) { > priority => $data->{priority}, > name => $data->{l_patron}, > title => $data->{title}, >+ subtitle => $data->{subtitle}, > author => $data->{author}, > borrowernumber => $data->{borrowernumber}, > itemnum => $data->{itemnumber}, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >index 7bb77c8..11c7a0f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >@@ -114,7 +114,7 @@ $(document).ready(function() { > <td> > <p> > [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %] >- [% reserveloo.title |html %]</a></p> >+ [% reserveloo.title |html %] [% FOREACH s IN reserveloo.subtitle %] [% s %][% END %]</a></p> > [% IF ( reserveloo.author ) %]<p> by [% reserveloo.author %]</p>[% END %] > </td> > [% ELSE %] >-- >2.1.4
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 16991
:
54215
|
54315
|
54370
|
56967
|
56991