[Koha-bugs] [Bug 7970] Allow OPAC holds per library policy without default rule

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 17 14:59:27 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7970

--- Comment #5 from Savitra Sirohi <savitra.sirohi at osslabs.biz> ---
My comment above got truncated for some reason:

Katrin, it works if we setup a "default rule definded for all libraries all
itemtypes and all patron categories with an allowed number of holds > 0".

When such a rule is not defined, the error "sorry, none of the items can be
placed on hold", also "title cannot be requested" is shown. 

The problem seems to be that in CanBookbeReserved:

my @items = get_itemnumbers_of($biblionumber);
   #get items linked via host records
   my @hostitems = get_hostitemnumbers_of($biblionumber);

   foreach my $item (@items){
       return 1 if CanItemBeReserved($borrowernumber, $item);
   }

CanItemBeReserved is expecting an itemnumber, but is receiving a hashref
instead.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list