}\r
}\r
log_info("circ0814 - results: " + result.durationRule);\r
-\r
-function isValidPatron(patronProfile) {\r
- var valid_patrons = ['Faculty', 'Graduate', 'Undergraduate', 'Staff members', 'Readers'];\r
- for (var i = 0; i < valid_patrons.length; i++) {\r
- if (valid_patrons[i] == patronProfile) {\r
- return true;\r
- }\r
- }\r
- return false;\r
-}
\ No newline at end of file
}\r
}\r
log_info("circ0814 - results: " + result.durationRule);\r
-\r
-function isValidPatron(patronProfile) {\r
- var valid_patrons = ['Faculty', 'Graduate', 'Undergraduate', 'Staff members', 'Readers'];\r
- for (var i = 0; i < valid_patrons.length; i++) {\r
- if (valid_patrons[i] == patronProfile) {\r
- return true;\r
- }\r
- }\r
- return false;\r
-}
\ No newline at end of file
// set permissions for Windsor Leddy\r
if (copy.circ_lib.shortname == 'OWA') {\r
\r
- var valid_patrons = ['Faculty', 'Graduate', 'Undergraduate', 'Staff members', 'Readers'];\r
-\r
- if (isValidPatron(patronProfile, valid_patrons)) {\r
+ if (isValidPatron(patronProfile)) {\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', 'MEDIA', 'MFORM', 'REF', 'THESIS'];\r
// set permissions for Windsor Law\r
if (copy.circ_lib.shortname == 'OWAL') {\r
\r
- var valid_patrons = ['Faculty', 'Graduate', 'Undergraduate', 'Staff members', 'Readers'];\r
-\r
- if (isValidPatron(patronProfile, valid_patrons)) {\r
+ if (isValidPatron(patronProfile)) {\r
\r
// only Law external borrowers can borrow Law items\r
if (patronProfile == 'Readers' && patron.home_ou.shortname != 'OWAL') {\r
return false;\r
}\r
\r
-function isValidPatron(patronProfile, valid_patrons) {\r
- for (var i = 0; i < valid_patrons.length; i++) {\r
- if (valid_patrons[i] == patronProfile) {\r
- return true;\r
- }\r
- }\r
- return false;\r
-}\r
-\r
function testCircAllow(circ_allow_list) {\r
for (var i = 0; i < circ_allow_list.length; i++) {\r
if (circ_allow_list[i] == copy.circ_modifier) {\r