+ # For multiple holds per record, if a patron has previously placed a hold,
+ # the patron can only place more holds of the same type. That is, if the
+ # patron placed a record level hold, all the holds the patron places must
+ # be record level. If the patron placed an item level hold, all holds
+ # the patron places must be item level
+ my $forced_hold_level = Koha::Holds->search(
+ {
+ borrowernumber => $borrowernumber,
+ biblionumber => $biblioNum,
+ found => undef,
+ }
+ )->forced_hold_level();
+ if ($forced_hold_level) {
+ $biblioLoopIter{force_hold} = 1 if $forced_hold_level eq 'item';
+ $biblioLoopIter{itemholdable} = 0 if $forced_hold_level eq 'record';
+ }
+
+