FF 147
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 29 Nov 2012 22:56:58 +0000 (17:56 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 5 Dec 2012 17:39:36 +0000 (12:39 -0500)
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/asset.pm

index 5cbb607..bd6116f 100644 (file)
@@ -402,7 +402,7 @@ sub copy_proximity {
        return unless ($cp && $org);
 
        if ($hold) {
-          my $prox = action::hold_request->db_Main->selectrow_hashref(
+          return action::hold_request->db_Main->selectrow_hashref(
                        'SELECT proximity AS prox FROM action.hold_copy_map WHERE hold = ? and target_copy = ?',
                        {},
                        "$hold",
@@ -414,7 +414,6 @@ sub copy_proximity {
                        "$cp",
                        "$org"
                )->{prox};
-               return int($prox * 100.0);
        }
 
        $cp = asset::copy->retrieve($cp) unless (ref($cp));