[open-ils-commits] r627 - conifer/trunk/circ (pzed)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Aug 19 16:03:32 EDT 2009


Author: pzed
Date: 2009-08-19 16:03:27 -0400 (Wed, 19 Aug 2009)
New Revision: 627

Modified:
   conifer/trunk/circ/circ_permit_copy.js
Log:
patron profile test now includes all circ modifiers

Modified: conifer/trunk/circ/circ_permit_copy.js
===================================================================
--- conifer/trunk/circ/circ_permit_copy.js	2009-08-19 17:18:13 UTC (rev 626)
+++ conifer/trunk/circ/circ_permit_copy.js	2009-08-19 20:03:27 UTC (rev 627)
@@ -51,12 +51,13 @@
 // set permissions for Windsor Leddy
 if (copy.circ_lib.shortname == 'OWA') {
 
-	// permit circulations for the following circ modifiers to all patrons
 	var valid_patrons = ['Faculty', 'Graduate', 'Undergraduate', 'Staff members', 'Readers'];
-	var circ_allow_list = ['CIRC', 'CRC MEDIA', 'CRC SPEC', 'CRC TEXT', 'DOC', 'DVD VIDEO', 'MAP (CIRCULATING)', 'MEDIA', 'MFORM', 'REF', 'THESIS'];
 
 	if (isValidPatron(patronProfile, valid_patrons)) {
   
+		// permit circulations for the following circ modifiers to all patrons
+		var circ_allow_list = ['CIRC', 'CRC MEDIA', 'CRC SPEC', 'CRC TEXT', 'DOC', 'DVD VIDEO', 'MAP (CIRCULATING)', 'MEDIA', 'MFORM', 'REF', 'THESIS'];
+
 		// add permissions for patron groups who are not external borrowers
 		if (patronProfile == 'Faculty' || patronProfile == 'Graduate' || patronProfile == 'Undergraduate' || patronProfile == 'Staff members') {
 			circ_allow_list = circ_allow_list.concat('CIRC SHORT', 'RSV1', 'RSV2', 'RSV3', 'RSV7');



More information about the open-ils-commits mailing list