use strict;
use C4::Biblio;
+use C4::Items;
use CGI;
use C4::Output;
use C4::Reserves;
#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] = '0';
+ $rank[0] = '0' unless C4::Context->preference('ReservesNeedReturns');
my $item = $checkitem;
$item = GetItem($item);
if ( $item->{'holdingbranch'} eq $branch ){