]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/javascript/backend/circ/circ_permit_copy.js
a08e897438066c3c57f1dc31715aa035017e8153
[Evergreen.git] / Open-ILS / src / javascript / backend / circ / circ_permit_copy.js
1 function go() {
2
3 /* load the lib script */
4 load_lib('circ/circ_lib.js');
5 log_vars('circ_permit_copy');
6
7
8 if( ! isTrue(copy.circulate) ) 
9         result.events.push('COPY_CIRC_NOT_ALLOWED');
10
11
12 if( ! isTrue(isRenewal) ) {
13         if(copyStatus != 'Available' && 
14                 copyStatus != 'On holds shelf' && copyStatus != 'Reshelving' ) {
15                         result.events.push('COPY_NOT_AVAILABLE');
16         } 
17 }
18
19
20         
21 } go();
22
23