Bugzilla – Attachment 1268 Details for
Bug 3380
Serial enumeration / chronology should display in opac holds interface.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-BUG-3380-Show-serial-enumeration-on-opac-holds-scree.patch (text/plain), 3.78 KB, created by
Chris Cormack
on 2009-09-27 22:02:00 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-09-27 22:02:00 UTC
Size:
3.78 KB
patch
obsolete
>From 0216f7253bc627e5639af80533d6c0e5a17e11ff Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Sun, 27 Sep 2009 23:24:22 +0200 >Subject: [PATCH] BUG 3380 Show serial enumeration on opac holds screen >Content-Type: text/plain; charset="utf-8" > >Shows column Vol Info on opac holds screen if serial enumeration was set for one of the items. >Replaces first patch. >--- > .../opac-tmpl/prog/en/modules/opac-reserve.tmpl | 8 +++++++- > opac/opac-reserve.pl | 8 ++++++++ > 2 files changed, 15 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl >index 3ac7343..d853924 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl >@@ -243,7 +243,7 @@ > <th>Hold Starts on Date</th> > <!-- /TMPL_IF --> > <!-- TMPL_IF NAME="OPACItemHolds" --> >- <th id="place_on_hdr" style="display:none">Place On:</th> >+ <th id="place_on_hdr" style="display:none">Place On</th> > <!-- /TMPL_IF --> > <!-- TMPL_UNLESS NAME="singleBranchMode" --> > <th>Pickup Location</th> >@@ -419,6 +419,9 @@ > <th>Last Location</th> > <!-- /TMPL_UNLESS --> > <th>Call Number</th> >+ <!-- TMPL_IF NAME="itemdata_enumchron" --> >+ <th>Vol Info</th> >+ <!-- /TMPL_IF --> > <th>Information</th> > </tr> > >@@ -445,6 +448,9 @@ > <td><!-- TMPL_VAR NAME="holdingBranchName" --></td> > <!-- /TMPL_UNLESS --> > <td><!-- TMPL_VAR NAME="callNumber" --></td> >+ <!-- TMPL_IF NAME="itemdata_enumchron" --><!-- test --> >+ <td><!-- TMPL_VAR NAME="enumchron" --></td> >+ <!-- /TMPL_IF --> > <td> > <!-- TMPL_IF NAME="date_due" --> > <span class="checkedout">Due <!-- TMPL_VAR NAME="date_due" --></span> >diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl >index 4471dff..abb9841 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -293,6 +293,7 @@ my $notforloan_label_of = get_notforloan_label_of(); > > my $biblioLoop = []; > my $numBibsAvailable = 0; >+my $itemdata_enumchron = 0; > my $itemLevelTypes = C4::Context->preference('item-level_itypes'); > $template->param('item-level_itypes' => $itemLevelTypes); > >@@ -353,6 +354,7 @@ foreach my $biblioNum (@biblionumbers) { > $itemLoopIter->{barcode} = $itemInfo->{barcode}; > $itemLoopIter->{homeBranchName} = $branches->{$itemInfo->{homebranch}}{branchname}; > $itemLoopIter->{callNumber} = $itemInfo->{itemcallnumber}; >+ $itemLoopIter->{enumchron} = $itemInfo->{enumchron}; > $itemLoopIter->{copynumber} = $itemInfo->{copynumber}; > if ($itemLevelTypes) { > $itemLoopIter->{description} = $itemInfo->{description}; >@@ -443,6 +445,12 @@ foreach my $biblioNum (@biblionumbers) { > $itemLoopIter->{waitingdate} = format_date($wait_hashref->{waitingdate}); > } > $itemLoopIter->{imageurl} = getitemtypeimagelocation( 'opac', $itemTypes->{ $itemInfo->{itype} }{imageurl} ); >+ >+ # Show serial enumeration when needed >+ if ($itemLoopIter->{enumchron}) { >+ $itemdata_enumchron = 1; >+ } >+ $template->param( itemdata_enumchron => $itemdata_enumchron ); > > push @{$biblioLoopIter{itemLoop}}, $itemLoopIter; > } >-- >1.6.0.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 3380
:
1265
|
1266
|
1267
| 1268