var lusys = ['LUSYS', 'CRC', 'HUNTINGTON', 'LDCR', 'MRC', 'OSUL', 'MEDIACEN', 'SUDBURY'];\r
var hearstsys = ['HEARSTSYS', 'HEARST', 'KAP', 'TIMMINS'];\r
var nosmsys = ['OSM', 'NOSME', 'NOSMW'];\r
-var winsys = ['OWA', 'OWAL'];\r
+var winsys = ['OWA', 'OWAL'];
+var algsys = ['OSTMA']; /* looks silly but we do plan to add one or two branches during the winter term */\r
\r
/* In theory, isOrgDescendent would work - but it isn't, for some reason */\r
if (patron.home_ou.id != copy.circ_lib.id) {\r
result.events.push('COPY_CIRC_NOT_ALLOWED'); // would prefer this to push a "Check Patron Profile" message\r
}\r
} // end permissions for Windsor Law\r
+
+/*******************************
+ PERMIT FOR ALGOMA
+********************************/
+
+if (copy.circ_lib.shortname == 'OSTMA') {\r
+\r
+ if (isValidPatron(patronProfile)) {
+
+ if (copy.location == 'ALGO-SHWK') ||\r
+ (copy.location == 'ALGO-REF') ||\r
+ (copy.location == 'ALGO-PER') ||\r
+ (copy.location == 'ALGO-DOC')\r
+ {\r
+ result.events.push('COPY_CIRC_NOT_ALLOWED');\r
+ }
+ }
+
+
+ if ( !(patronProfile == 'Faculty') && (copy.location == 'ALGO-AV') {
+ result.events.push('COPY_CIRC_NOT_ALLOWED');
+ }
+
+}
+
+
+/*******************************
+ END -- PERMIT FOR ALGOMA
+********************************/
+
\r
if( ! isTrue(isRenewal) ) {\r
if(copyStatus != 'Available' && \r