Bugzilla – Attachment 1411 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]
Additional fix
0001-Improve-display-of-information-on-Transfers-to-your-.patch (text/plain), 5.65 KB, created by
Chris Cormack
on 2010-03-11 13:55:00 UTC
(
hide
)
Description:
Additional fix
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-03-11 13:55:00 UTC
Size:
5.65 KB
patch
obsolete
>From 3b0f8537176b4af41a5eb00babdcac8a2d374f98 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 18 Feb 2010 09:44:51 -0500 >Subject: [PATCH] Improve display of information on Transfers to your library report > >- Use GetRecordValue() to show subtitle >- Show author >- Separate branch and call number display for better sorting >- Correct teriminology (reserve -> hold) >--- > circ/transferstoreceive.pl | 5 ++++- > .../prog/en/modules/circ/transferstoreceive.tmpl | 20 +++++++++++--------- > 2 files changed, 15 insertions(+), 10 deletions(-) > >diff --git a/circ/transferstoreceive.pl b/circ/transferstoreceive.pl >index ddb7f4a..3073c0a 100755 >--- a/circ/transferstoreceive.pl >+++ b/circ/transferstoreceive.pl >@@ -91,10 +91,13 @@ foreach my $br ( keys %$branches ) { > > $getransf{'datetransfer'} = format_date( $num->{'datesent'} ); > $getransf{'itemtype'} = $itemtypeinfo ->{'description'}; >- foreach (qw(title biblionumber itemnumber barcode homebranch holdingbranch itemcallnumber)) { >+ foreach (qw(title author biblionumber itemnumber barcode homebranch holdingbranch itemcallnumber)) { > $getransf{$_} = $gettitle->{$_}; > } > >+ my $record = GetMarcBiblio($gettitle->{'biblionumber'}); >+ $getransf{'subtitle'} = GetRecordValue('subtitle', $record, GetFrameworkCode($gettitle->{'biblionumber'})); >+ > # we check if we have a reserv for this transfer > my @checkreserv = GetReservesFromItemnumber($num->{'itemnumber'} ); > if ( $checkreserv[0] ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tmpl >index 8ee68eb..0a5010f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tmpl >@@ -15,8 +15,8 @@ $(document).ready(function() { > $.tablesorter.defaults.widgets = ['zebra']; > $("#transferst<!-- TMPL_VAR NAME="branchcode" -->").tablesorter({<!-- TMPL_IF ="dateformat_metric" --> > dateFormat: 'uk',<!-- /TMPL_IF --> >- sortList: [[1,0]], >- headers: { 1: { sorter: 'articles' },4:{sorter:false}} >+ sortList: [[0,0]], >+ headers: { 1: { sorter: 'articles' }} > }); > <!-- /TMPL_LOOP --> > }); >@@ -47,8 +47,9 @@ $(document).ready(function() { > <thead><tr> > <th>Date of transfer</th> > <th>Title</th> >- <th>Reserved by </th> >- <th>Location</th> >+ <th>On hold for</th> >+ <th>Home library</th> >+ <th>Call no.</th> > </tr></thead> > <tbody><!-- TMPL_LOOP NAME="reserv" --> > <!-- TMPL_IF NAME="messcompa" --> >@@ -59,12 +60,12 @@ $(document).ready(function() { > <td><p><!-- TMPL_VAR NAME="datetransfer" --></p> <!-- TMPL_IF NAME="messcompa" --><span class="error">Transfer is <!-- TMPL_VAR NAME="diff" --> days late</span><!-- /TMPL_IF --></td> > <td><span style="display:none;"><!-- TMPL_VAR NAME="title" escape="html" --></span><!-- invisible title for tablesorter --> > <!-- TMPL_IF name="BiblioDefaultViewmarc" --> >-<a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a> >+<a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_IF NAME="subtitle" --> <!-- TMPL_LOOP NAME="subtitle" --><!-- TMPL_VAR NAME="subfield" --><!-- /TMPL_LOOP --><!-- /TMPL_IF --></a> > <!-- TMPL_ELSIF NAME="BiblioDefaultViewisbd" --> >-<a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a> >+<a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_IF NAME="subtitle" --> <!-- TMPL_LOOP NAME="subtitle" --><!-- TMPL_VAR NAME="subfield" --><!-- /TMPL_LOOP --><!-- /TMPL_IF --></a> > <!-- TMPL_ELSE --> >-<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" --></a><!-- /TMPL_IF --> >- (<b><!-- TMPL_VAR NAME="itemtype" --></b>) >+<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- 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 --> <!-- TMPL_IF NAME="author" -->by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --> >+ <!-- TMPL_IF NAME="itemtype" --> (<b><!-- TMPL_VAR NAME="itemtype" --></b>)<!-- /TMPL_IF --> > <br />Barcode: <!-- TMPL_VAR NAME="barcode" --> > </td> > <td><!-- TMPL_IF NAME="borrowername" --> >@@ -81,7 +82,8 @@ $(document).ready(function() { > <p>None</p> > <!-- /TMPL_IF --> > </td> >- <td><!-- TMPL_VAR NAME="homebranch" --> <!-- TMPL_VAR NAME="itemcallnumber" --></td> >+ <td><!-- TMPL_VAR NAME="homebranch" --></td> >+ <td><!-- TMPL_VAR NAME="itemcallnumber" --></td> > </tr> > <!-- /TMPL_LOOP --></tbody> > </table> >-- >1.6.3.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