]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/javascript/backend/circ/circ_permit_copy.js
Docs: 2.8 Patron Message Center
[working/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 load_lib('JSON_v1.js');
6 log_vars('circ_permit_copy');
7
8
9 if( ! isTrue(copy.circulate) || !isTrue(copy.location.circulate) ) 
10         result.events.push('COPY_CIRC_NOT_ALLOWED');
11
12
13 if( ! isTrue(isRenewal) ) {
14         if(copyStatus != 'Available' && 
15                 copyStatus != 'On holds shelf' && copyStatus != 'Reshelving' ) {
16                         result.events.push('COPY_NOT_AVAILABLE');
17         } 
18 }
19
20
21         
22 } go();
23
24