patron profile test now includes all circ modifiers
authorpzed <pzed@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Wed, 19 Aug 2009 20:03:27 +0000 (20:03 +0000)
committerpzed <pzed@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Wed, 19 Aug 2009 20:03:27 +0000 (20:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@627 6d9bc8c9-1ec2-4278-b937-99fde70a366f

circ/circ_permit_copy.js

index cbc3e17..1968af3 100644 (file)
@@ -51,12 +51,13 @@ if( ! isTrue(copy.circulate) ||
 // set permissions for Windsor Leddy\r
 if (copy.circ_lib.shortname == 'OWA') {\r
 \r
-       // permit circulations for the following circ modifiers to all patrons\r
        var valid_patrons = ['Faculty', 'Graduate', 'Undergraduate', 'Staff members', 'Readers'];\r
-       var circ_allow_list = ['CIRC', 'CRC MEDIA', 'CRC SPEC', 'CRC TEXT', 'DOC', 'DVD VIDEO', 'MAP (CIRCULATING)', 'MEDIA', 'MFORM', 'REF', 'THESIS'];\r
 \r
        if (isValidPatron(patronProfile, valid_patrons)) {\r
   \r
+               // permit circulations for the following circ modifiers to all patrons\r
+               var circ_allow_list = ['CIRC', 'CRC MEDIA', 'CRC SPEC', 'CRC TEXT', 'DOC', 'DVD VIDEO', 'MAP (CIRCULATING)', 'MEDIA', 'MFORM', 'REF', 'THESIS'];\r
+\r
                // add permissions for patron groups who are not external borrowers\r
                if (patronProfile == 'Faculty' || patronProfile == 'Graduate' || patronProfile == 'Undergraduate' || patronProfile == 'Staff members') {\r
                        circ_allow_list = circ_allow_list.concat('CIRC SHORT', 'RSV1', 'RSV2', 'RSV3', 'RSV7');\r