Bugzilla – Attachment 9224 Details for
Bug 7970
Allow OPAC holds per library policy without default rule
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Holds not working in OPAC
0001-Bug-7970-Holds-not-working-in-OPAC.patch (text/plain), 1.14 KB, created by
Amit Gupta
on 2012-04-17 11:36:45 UTC
(
hide
)
Description:
Holds not working in OPAC
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2012-04-17 11:36:45 UTC
Size:
1.14 KB
patch
obsolete
>From a6b5ee58e6c4a4c34938ec9372ac145359b323ba Mon Sep 17 00:00:00 2001 >From: Amit Gupta <amit.gupta@osslabs.biz> >Date: Tue, 17 Apr 2012 17:03:28 +0530 >Subject: [PATCH] Bug 7970 - Holds not working in OPAC > >To test: >- create circulation rules for branch only for example (Midway branch). >- No need to set default circulation rules. >--- > C4/Reserves.pm | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 930d524..b302362 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -391,14 +391,15 @@ sub GetReservesFromBorrowernumber { > sub CanBookBeReserved{ > my ($borrowernumber, $biblionumber) = @_; > >- my @items = get_itemnumbers_of($biblionumber); >+ my $items = &get_itemnumbers_of($biblionumber); > #get items linked via host records > my @hostitems = get_hostitemnumbers_of($biblionumber); > if (@hostitems){ >- push (@items,@hostitems); >+ push (@hostitems,$items); > } > >- foreach my $item (@items){ >+ my %itemhash = %$items; >+ foreach my $item (keys %itemhash) { > return 1 if CanItemBeReserved($borrowernumber, $item); > } > return 0; >-- >1.6.4.2 >
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 7970
:
9223
|
9224
|
9393
|
9398
|
9450