Permalink
Browse files

[#23682115] patrons are now unable to place multiple item level holds…

… (restart)

Warning for title already held needed to be turned off in the event that
the item was of a type that allowed for multi-item title holds.
  • Loading branch information...
1 parent 751fc44 commit 56f34f9a1a2512c93faa8eccefaed6d369b3d59a @dlbptfs dlbptfs committed Jan 27, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 cgi/opac/opac-reserve.pl
View
@@ -328,7 +328,7 @@ ($$$)
}
}
}
- if ($noreserves && ! $template->param('too_many_reserves') && ! $template->param('hold_already_exists')) {
+ if ($noreserves && ! $template->param('too_many_reserves')) {
$template->param( message => 1, none_available => 1 );
}
}
@@ -371,7 +371,13 @@ ($$$)
# $template->param( message => 1 );
# $noreserves = 1;
# $template->param( already_reserved => 1 );
- $biblioDataHash{$biblionumber}->{already_reserved} = 1;
+# $biblioDataHash{$biblionumber}->{already_reserved} = 1;
+ my $biblioData = $biblioDataHash{$biblionumber};
+ foreach my $itemInfo (@{$biblioData->{itemInfos}}) {
+ if (!CanHoldMultipleItems($itemInfo->{itype},'opac')) {
+ $biblioDataHash{$biblionumber}->{already_reserved} = 1;
+ }
+ }
}
}
}

0 comments on commit 56f34f9

Please sign in to comment.