1 /* ---------------------------------------------------------------------
2 Set up the limits for the various profiles (aka permission groups).
3 Values of -1 mean there is no limit
5 maxItemsOut - the maximum number of items the user can have out
6 fineThreshold - the fine threshold.
7 overdueThreshold - the overdue items threshold.
8 maxHolds - The maximum number of holds the user can have
10 A user exceeds the fineThreshold and/or overdueThreshold if they are
11 equal to or exceed the threshold
12 --------------------------------------------------------------------- */
19 overdueThreshold : 10,
26 overdueThreshold : 10,
33 overdueThreshold : 10,
40 overdueThreshold : 10,
47 overdueThreshold : 10,
54 overdueThreshold : -1,
76 overdueThreshold : 10,
83 overdueThreshold : 10,
90 overdueThreshold : 10,
105 overdueThreshold : -1,
114 * Returns config information for the requested group. If
115 * no config info exists for the requested group, then this
116 * function searches up the tree to find the config info
117 * for the nearest ancestor
118 * @param The name of the group who's config info to return
120 function findGroupConfig(name) {
121 if(!name) return null;
122 var node = groupList[name];
124 if( GROUP_CONFIG[node.name] ) {
125 debugGroupConfig(name, node.name, GROUP_CONFIG[node.name]);
126 return GROUP_CONFIG[node.name];
128 } while( (node = groupIDList[node.parent]) );
132 function debugGroupConfig(name, foundName, config) {
134 var str = "findGroupConfig('"+name+"'): returning config info for '"+ foundName +"': ";
135 for( var i in config )
136 str += i + '=' + config[i] + ' ';