Bugzilla – Attachment 8187 Details for
Bug 5596
add author to holds to pull report
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 5596 [REVISED] add author to holds to pull report
Bug-5596-REVISED-add-author-to-holds-to-pull-repor.patch (text/plain), 2.59 KB, created by
Liz Rea
on 2012-03-12 17:04:49 UTC
(
hide
)
Description:
Bug 5596 [REVISED] add author to holds to pull report
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2012-03-12 17:04:49 UTC
Size:
2.59 KB
patch
obsolete
>From 4463d4ce4b2b7865263abb2637a0fa09b35546b8 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 12 Mar 2012 08:52:17 -0400 >Subject: [PATCH] Bug 5596 [REVISED] add author to holds to pull report >Content-Type: text/plain; charset="utf-8" > >Adding output of author and, for good measure, subtitle. > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >Passes tests, author and subtitle shown on holds to pull report. >--- > circ/pendingreserves.pl | 6 ++++++ > .../prog/en/modules/circ/pendingreserves.tt | 4 ++-- > 2 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl >index 52a0450..d44a96a 100755 >--- a/circ/pendingreserves.pl >+++ b/circ/pendingreserves.pl >@@ -29,6 +29,7 @@ use C4::Context; > use C4::Output; > use CGI; > use C4::Auth; >+use C4::Biblio; > use C4::Dates qw/format_date format_date_in_iso/; > use C4::Debug; > use Date::Calc qw/Today Add_Delta_YMD/; >@@ -158,6 +159,10 @@ if ( $run_report ) { > $sth->execute(@query_params); > > while ( my $data = $sth->fetchrow_hashref ) { >+ my $record = GetMarcBiblio($data->{biblionumber}); >+ if ($record){ >+ $data->{subtitle} = GetRecordValue('subtitle',$record,'')->[0]->{subfield}; >+ } > push( > @reservedata, > { >@@ -165,6 +170,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 c11bdd7..9b72691 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >@@ -91,8 +91,8 @@ $(document).ready(function() { > <td> > <p> > [% INCLUDE 'biblio-default-view.inc' biblionumber = reserveloo.biblionumber %] >- [% reserveloo.title |html %] [% reserveloo.subtitle %] >- </a> >+ [% reserveloo.title |html %] [% IF ( reserveloo.subtitle ) %][% reserveloo.subtitle %][% END %] >+ </a> [% IF ( reserveloo.author ) %]<p> by [% reserveloo.author %]</p>[% ELSE %][% END %] > </p> > </td> > [% ELSE %] >-- >1.7.2.5
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 5596
:
8035
|
8180
|
8187
|
8205
|
8253