Bugzilla – Attachment 5452 Details for
Bug 5675
Returned items always trigger hold notification
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 5675 : CheckReserves not honouring item level itemtypes preferences
Bug-5675--CheckReserves-not-honouring-item-level-i.patch (text/plain), 2.12 KB, created by
Katrin Fischer
on 2011-09-18 18:58:08 UTC
(
hide
)
Description:
Bug 5675 : CheckReserves not honouring item level itemtypes preferences
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-09-18 18:58:08 UTC
Size:
2.12 KB
patch
obsolete
>From 6cedf93bbe0905897935d3d1f1f131ef5d9b901a Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Mon, 29 Aug 2011 11:21:24 +1200 >Subject: [PATCH] Bug 5675 : CheckReserves not honouring item level itemtypes preferences >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> > >With item level itypes activated only the item for which holds were >allowed in circulation rules triggered the hold notice on checkin. > >Also checked that biblio level itype still trigered correctly. >--- > C4/Reserves.pm | 29 ++++++++++++++++++++++------- > 1 files changed, 22 insertions(+), 7 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 8373840..f83f0ff 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -760,17 +760,32 @@ sub CheckReserves { > my ( $item, $barcode ) = @_; > my $dbh = C4::Context->dbh; > my $sth; >- my $select = " >- SELECT items.biblionumber, >+ my $select; >+ if (C4::Context->preference('item-level_itypes')){ >+ $select = " >+ SELECT items.biblionumber, > items.biblioitemnumber, > itemtypes.notforloan, > items.notforloan AS itemnotforloan, > items.itemnumber >- FROM items >- LEFT JOIN biblioitems ON items.biblioitemnumber = biblioitems.biblioitemnumber >- LEFT JOIN itemtypes ON biblioitems.itemtype = itemtypes.itemtype >- "; >- >+ FROM items >+ LEFT JOIN biblioitems ON items.biblioitemnumber = biblioitems.biblioitemnumber >+ LEFT JOIN itemtypes ON items.itype = itemtypes.itemtype >+ "; >+ } >+ else { >+ $select = " >+ SELECT items.biblionumber, >+ items.biblioitemnumber, >+ itemtypes.notforloan, >+ items.notforloan AS itemnotforloan, >+ items.itemnumber >+ FROM items >+ LEFT JOIN biblioitems ON items.biblioitemnumber = biblioitems.biblioitemnumber >+ LEFT JOIN itemtypes ON biblioitems.itemtype = itemtypes.itemtype >+ "; >+ } >+ > if ($item) { > $sth = $dbh->prepare("$select WHERE itemnumber = ?"); > $sth->execute($item); >-- >1.7.4.1
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 5675
:
5194
| 5452