Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #303 from dlbptfs/PT23682115_rs1

[#23682115] patrons are now unable to place multiple item level holds (r...
  • Loading branch information...
commit a91a8cb4b7eafd9efcb8704cd25bcdf7d42b7b83 2 parents 0340218 + 56f34f9
@ctfliblime ctfliblime authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 cgi/opac/opac-reserve.pl
View
10 cgi/opac/opac-reserve.pl
@@ -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;
+ }
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.