Markup tweak for login; Link correction for facets.
[koha_fer] / reserve / placerequest.pl
index ba5ae75..36379f8 100755 (executable)
@@ -23,6 +23,7 @@
 
 use strict;
 use C4::Biblio;
+use C4::Items;
 use CGI;
 use C4::Output;
 use C4::Reserves;
@@ -51,7 +52,7 @@ my $found;
 
 #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 ){