disallowing non-existent items (precats) from circulating
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Feb 2007 17:09:07 +0000 (17:09 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Feb 2007 17:09:07 +0000 (17:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6942 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/offline/offline.pl

index f7262b6..192124b 100755 (executable)
@@ -645,6 +645,11 @@ sub ol_handle_checkout {
                        'INTERNAL_SERVER_ERROR', payload => 'TOO MANY NON CATS');
        }
 
+    if( $args->{barcode} ) {
+        my( $c, $e ) = $U->fetch_copy_by_barcode($args->{barcode});
+        return $e if $e;
+    }
+
        return $U->simplereq(
                'open-ils.circ', 'open-ils.circ.checkout', $authtoken, $args );
 }