Allow "new book" status to check-in without throwing an event
authorDan Wells <dbw2@calvin.edu>
Fri, 14 Dec 2012 18:55:48 +0000 (13:55 -0500)
committerDan Wells <dbw2@calvin.edu>
Thu, 27 Aug 2015 18:31:20 +0000 (14:31 -0400)
This piece relates to checkin rather than checkout.  We wanted to be
able to simply check these in and have them go to reshelving.  Should
this use the same status flag, or something else?  Depending on the
answer, this may or may not be part of this bug.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Const.pm

index d63cdc8..9b963b9 100644 (file)
@@ -3499,6 +3499,7 @@ sub check_checkin_copy_status {
             $status == OILS_COPY_STATUS_IN_TRANSIT  ||
             $status == OILS_COPY_STATUS_CATALOGING  ||
             $status == OILS_COPY_STATUS_ON_RESV_SHELF  ||
+            $status == OILS_COPY_STATUS_NEW_BOOK    ||
             $status == OILS_COPY_STATUS_RESHELVING );
 
    return OpenILS::Event->new('COPY_STATUS_LOST', payload => $copy )
index cd82e83..856c63b 100644 (file)
@@ -44,6 +44,7 @@ econst OILS_COPY_STATUS_DAMAGED       => 14;
 econst OILS_COPY_STATUS_ON_RESV_SHELF => 15;
 econst OILS_COPY_STATUS_LONG_OVERDUE  => 16;
 econst OILS_COPY_STATUS_LOST_AND_PAID => 17;
+econst OILS_COPY_STATUS_NEW_BOOK      => 101;
 
 
 # ---------------------------------------------------------------------