Reserves not made at priority 0 if ReservesNeedReturns is switched on
authorChris Cormack <crc@liblime.com>
Mon, 24 Dec 2007 01:20:52 +0000 (19:20 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 24 Dec 2007 02:27:16 +0000 (20:27 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
opac/opac-reserve.pl

index 886a1ea..2c3bb15 100755 (executable)
@@ -206,7 +206,7 @@ if ( $query->param('place_reserve') ) {
     
     #if we have an item selectionned, and the pickup branch is the same as the holdingbranch of the document, we force the value $rank and $found.
     if ($checkitem ne ''){
-        $rank = '0';
+        $rank = '0' unless C4::Context->preference('ReservesNeedReturns')
         my $item = $checkitem;
         $item = GetItem($item);
         if ( $item->{'holdingbranch'} eq $branch ){