Bugzilla – Attachment 2967 Details for
Bug 3550
Use GetRecordValue to get the subtitle
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix for reserveratios.pl
0001-Additional-fix-for-Bug-3550-Use-GetRecordValue-to-ge.patch (text/plain), 3.45 KB, created by
Owen Leonard
on 2011-01-07 20:27:49 UTC
(
hide
)
Description:
Proposed fix for reserveratios.pl
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2011-01-07 20:27:49 UTC
Size:
3.45 KB
patch
obsolete
>From 046002b117d871ebc8eb86aaa29da2ff641a1438 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 7 Jan 2011 15:25:01 -0500 >Subject: [PATCH] Additional fix for Bug 3550, Use GetRecordValue to get the subtitle > >- Adding subtitle to Hold Ratio report output >- Sorting by default on ratio, descending >- Adding author >- Removing description >--- > circ/reserveratios.pl | 4 ++++ > .../prog/en/modules/circ/reserveratios.tmpl | 8 ++------ > 2 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/circ/reserveratios.pl b/circ/reserveratios.pl >index 8807339..5a86675 100755 >--- a/circ/reserveratios.pl >+++ b/circ/reserveratios.pl >@@ -28,6 +28,7 @@ use C4::Auth; > use C4::Dates qw/format_date format_date_in_iso/; > use C4::Debug; > use Date::Calc qw/Today Add_Delta_YM/; >+use C4::Biblio qw/GetMarcBiblio GetRecordValue GetFrameworkCode/; > > my $input = new CGI; > my $order = $input->param('order') || ''; >@@ -144,6 +145,8 @@ while ( my $data = $sth->fetchrow_hashref ) { > my $thisratio = $data->{reservecount} / $data->{itemcount}; > my $ratiocalc = ($thisratio / $ratio); > ($thisratio / $ratio) >= 1 or next; # TODO: tighter targeting -- get ratio limit into SQL using HAVING clause >+ my $record = GetMarcBiblio($data->{biblionumber}); >+ $data->{subtitle} = GetRecordValue('subtitle', $record, GetFrameworkCode($data->{biblionumber})); > push( > @reservedata, > { >@@ -151,6 +154,7 @@ while ( my $data = $sth->fetchrow_hashref ) { > priority => $data->{priority}, > name => $data->{borrower}, > title => $data->{title}, >+ subtitle => $data->{subtitle}, > author => $data->{author}, > notes => $data->{notes}, > itemnum => $data->{itemnumber}, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tmpl >index 68c4209..15d9cdb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tmpl >@@ -28,7 +28,7 @@ $.tablesorter.addParser({ > ); > $.tablesorter.defaults.widgets = ['zebra']; > $("#holdst:has(tbody tr)").tablesorter({ // only add sort if the table has a body and rows >- sortList: [[0,0]], >+ sortList: [[0,1]], > headers: { 1: { sorter: 'articles' }} > }); > }); >@@ -91,11 +91,7 @@ $.tablesorter.addParser({ > <td><p><!-- TMPL_VAR NAME="reservecount" --></p></td> > <td><p><!-- TMPL_VAR NAME="itemcount" --></p></td> > <td><p class="ratiolimit"><!-- TMPL_VAR NAME="thisratio" --></p></td> >- <td><p> >- <!-- TMPL_INCLUDE NAME="biblio-default-view.inc" --><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" --> >- </a> >- </p> >- <p><!-- TMPL_VAR NAME="notes" --></p> >+ <td><!-- TMPL_INCLUDE NAME="biblio-default-view.inc" --><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_IF NAME="subtitle" --><!-- TMPL_LOOP NAME="subtitle" --><!-- TMPL_VAR NAME="subfield" --><!-- /TMPL_LOOP --><!-- /TMPL_IF --></a><!-- TMPL_IF NAME="author" --> by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --> > </td> > <td><p><!-- TMPL_VAR NAME="listbranch" --></p></td> > <td><p><!-- TMPL_VAR NAME="location" --></p></td> >-- >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 3550
:
1408
|
1409
|
1410
|
1411
|
2967
|
3192