Bugzilla – Attachment 4251 Details for
Bug 6405
Volume info (enumchron) not shown on the "Place Hold" screen
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-bug_6405-added-enumchron-to-reserve-copy-list.patch (text/plain), 3.62 KB, created by
Srdjan Jankovic
on 2011-05-25 03:31:38 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2011-05-25 03:31:38 UTC
Size:
3.62 KB
patch
obsolete
>From 665a0e1b1ad441a4e1b689400b3094a999c785a6 Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Wed, 25 May 2011 15:25:11 +1200 >Subject: [PATCH] bug_6405: added enumchron to reserve copy list > >Conflicts: > > koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl >--- > .../prog/en/modules/reserve/request.tt | 8 ++++++++ > opac/opac-reserve.pl | 8 ++++---- > reserve/request.pl | 8 ++++++++ > 3 files changed, 20 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index 66c9235..325c8ad 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -388,6 +388,9 @@ function checkMultiHold() { > <th>Last Location</th> > <th>Call no.</th> > <th>Copy no.</th> >+ [% IF itemdata_enumchron %] >+ <th>Vol no.</th> >+ [% END %] > <th>Information</th> > </tr> > [% FOREACH itemloo IN bibitemloo.itemloop %] >@@ -426,6 +429,11 @@ function checkMultiHold() { > [% itemloo.itemcallnumber %] > </td> > <td>[% IF ( itemloo.copynumber ) %][% itemloo.copynumber %][% ELSE %] [% END %]</td> >+ [% IF itemdata_enumchron %] >+ <td> >+ [% itemloo.enumchron %] >+ </td> >+ [% END %] > <td> > [% IF ( itemloo.onloan ) %] > <span class="checkedout">Due [% itemloo.date_due %]</span> >diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl >index d50480a..c0b940e 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -447,13 +447,13 @@ foreach my $biblioNum (@biblionumbers) { > $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 ); >+ if ($itemLoopIter->{enumchron}) { >+ $itemdata_enumchron = 1; >+ } > > push @{$biblioLoopIter{itemLoop}}, $itemLoopIter; > } >+ $template->param( itemdata_enumchron => $itemdata_enumchron ); > > if ($numCopiesAvailable > 0) { > $numBibsAvailable++; >diff --git a/reserve/request.pl b/reserve/request.pl >index 0b3bebc..3923992 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -230,6 +230,7 @@ if ($multihold) { > push @biblionumbers, $input->param('biblionumber'); > } > >+my $itemdata_enumchron = 0; > my @biblioloop = (); > foreach my $biblionumber (@biblionumbers) { > >@@ -456,6 +457,12 @@ foreach my $biblionumber (@biblionumbers) { > while (my $wait_hashref = $sth2->fetchrow_hashref) { > $item->{waitingdate} = format_date($wait_hashref->{waitingdate}); > } >+ >+ # Show serial enumeration when needed >+ if ($item->{enumchron}) { >+ $itemdata_enumchron = 1; >+ } >+ > push @{ $biblioitem->{itemloop} }, $item; > } > >@@ -561,6 +568,7 @@ foreach my $biblionumber (@biblionumbers) { > $template->param( > optionloop => \@optionloop, > bibitemloop => \@bibitemloop, >+ itemdata_enumchron => $itemdata_enumchron, > date => $date, > biblionumber => $biblionumber, > findborrower => $findborrower, >-- >1.6.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 6405
:
4251
|
4252
|
4253