bug 3164: fix OPAC holds in SingleBranchMode

Account for case where no branch is explicitly supplied.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Galen Charlton 2010-10-17 13:17:06 -04:00
parent 1b0780bb8d
commit b2b74a22ed
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,8 @@ if ( $query->param('place_reserve') ) {
$selectedItems = "$bib/$item/$branch/";
}
my @selectedItems = split /\//, $selectedItems;
$selectedItems =~ s!/$!!;
my @selectedItems = split /\//, $selectedItems, -1;
# Make sure there is a biblionum/itemnum/branch triplet for each item.
# The itemnum can be 'any', meaning next available.