not checking copy status on renewal
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 27 Jul 2006 17:20:05 +0000 (17:20 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 27 Jul 2006 17:20:05 +0000 (17:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5124 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/javascript/backend/circ/circ_permit_copy.js

index 2d7cb9c..89e7e99 100644 (file)
@@ -16,9 +16,11 @@ if( ! isOrgDescendent( 'STATELIB', copy.circ_lib.id ) ) {
 
 
 
-if(copyStatus != 'Available' && 
-       copyStatus != 'On holds shelf' && copyStatus != 'Reshelving' ) {
-               result.events.push('COPY_NOT_AVAILABLE');
+if( ! isTrue(isRenewal) ) {
+       if(copyStatus != 'Available' && 
+               copyStatus != 'On holds shelf' && copyStatus != 'Reshelving' ) {
+                       result.events.push('COPY_NOT_AVAILABLE');
+       }
 }