Bugzilla – Attachment 776 Details for
Bug 2655
Items waiting on the hold shelf display as "Available" in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Partial fix, dealing with opac-detail only
0001-Partial-fix-for-Bug-2655-Items-waiting-on-the-hold.patch (text/plain), 2.19 KB, created by
Chris Cormack
on 2009-04-06 13:50:00 UTC
(
hide
)
Description:
Partial fix, dealing with opac-detail only
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-04-06 13:50:00 UTC
Size:
2.19 KB
patch
obsolete
>From aa56e386d5c84e18a23603947b5b375d0a1748b0 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 6 Apr 2009 08:46:05 -0500 >Subject: [PATCH] Partial fix for Bug 2655, "Items waiting on the hold shelf display as 'Available' in OPAC" >Content-Type: text/plain; charset="utf-8" > >GetItemsInfo() returns a count_reserves variable which may be "Waiting" or "Reserved," but opac-detail.pl didn't include a check for these possibilities. This patch has opac-detail.tmpl output "On hold" in either case. >--- > .../opac-tmpl/prog/en/modules/opac-detail.tmpl | 2 +- > opac/opac-detail.pl | 4 ++++ > 2 files changed, 5 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl >index 97da432..4aa2ae0 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl >@@ -312,7 +312,7 @@ > In transit from <!-- TMPL_VAR NAME="transfertfrom" --> > to <!-- TMPL_VAR NAME="transfertto" --> since <!-- TMPL_VAR NAME="transfertwhen" --> > <!-- TMPL_ELSE --> >- Available >+ <!-- TMPL_IF NAME="waiting" -->On hold<!-- TMPL_ELSE --><!-- TMPL_IF NAME="onhold" -->On hold<!-- TMPL_ELSE -->Available<!-- /TMPL_IF --><!-- /TMPL_IF --> > <!-- /TMPL_IF --> > <!-- /TMPL_IF --> > <!-- /TMPL_IF --> >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 3dc2742..992e236 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -154,6 +154,10 @@ for my $itm (@items) { > $itm->{'lostimagelabel'} = $lostimageinfo->{ 'label' }; > } > >+ if( $itm->{'count_reserves'}){ >+ if( $itm->{'count_reserves'} eq "Waiting"){ $itm->{'waiting'} = 1; } >+ if( $itm->{'count_reserves'} eq "Reserved"){ $itm->{'onhold'} = 1; } >+ } > > my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($itm->{itemnumber}); > if ( $transfertwhen ne '' ) { >-- >1.5.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 2655
:
775
| 776 |
777
|
778