From b2b74a22ed66c18cc0f9ef8fc29efa9ce27f7336 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 17 Oct 2010 13:17:06 -0400 Subject: [PATCH] bug 3164: fix OPAC holds in SingleBranchMode Account for case where no branch is explicitly supplied. Signed-off-by: Galen Charlton --- opac/opac-reserve.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index d5d39dbe75..699179b74b 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -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. -- 2.39.5