Bugzilla – Attachment 8035 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 - add author to holds to pull report
Bug-5596---add-author-to-holds-to-pull-report.patch (text/plain), 2.59 KB, created by
Owen Leonard
on 2012-03-06 15:27:06 UTC
(
hide
)
Description:
Bug 5596 - add author to holds to pull report
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-03-06 15:27:06 UTC
Size:
2.59 KB
patch
obsolete
>From fc8a77295282e40ac6b18f0e370ff3d64870dfe1 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 6 Mar 2012 10:25:09 -0500 >Subject: [PATCH] Bug 5596 - add author to holds to pull report >Content-Type: text/plain; charset="utf-8" > >Adding output of author and, for good measure, subtitle. >--- > 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 d723bc2..ae5b58f 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/; >@@ -184,6 +185,10 @@ if ( $run_report ) { > my $previous; > my $this; > while ( my $data = $sth->fetchrow_hashref ) { >+ my $record = GetMarcBiblio($data->{biblionumber}); >+ if ($record){ >+ $data->{subtitle} = GetRecordValue('subtitle',$record,'')->[0]->{subfield}; >+ } > $this=$data->{biblionumber}.":".$data->{borrowernumber}; > my @itemlist; > push( >@@ -193,6 +198,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 c965e5c..c1c977d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >@@ -125,8 +125,8 @@ $.tablesorter.addParser({ > <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.3
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