'Allows a user to abort a transit on a copy with status of LOST', 'ppl', 'description')),
( 508, 'ABORT_TRANSIT_ON_MISSING', oils_i18n_gettext(508,
'Allows a user to abort a transit on a copy with status of MISSING', 'ppl', 'description')),
- ( 509, 'TRANSIT_CHECKIN_INTERVAL_BLOCK.override', oils_i18n_gettext(509,
+ ( 509, 'UPDATE_PATRON_COLLECTIONS_EXEMPT', oils_i18n_gettext(509,
+ 'Allows a user to indicate that a patron is exempt from collections processing', 'ppl', 'description')),
+ ( 510, 'TRANSIT_CHECKIN_INTERVAL_BLOCK.override', oils_i18n_gettext(510,
'Allows a user to override the TRANSIT_CHECKIN_INTERVAL_BLOCK event', 'ppl', 'description'));
'VIEW_CIRC_MATRIX_MATCHPOINT',
'ABORT_TRANSIT_ON_LOST',
'ABORT_TRANSIT_ON_MISSING',
+ 'UPDATE_PATRON_COLLECTIONS_EXEMPT',
'VIEW_HOLD_MATRIX_MATCHPOINT');
INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
dojo.connect(cb, 'onChange', function(newVal) { userSettingsToUpdate[stype.name()] = newVal; });
tbody.insertBefore(row, dividerRow.nextSibling);
openils.Util.show(row, 'table-row');
+
+ if(stype.name() == 'circ.collections.exempt') {
+ checkCollectionsExemptPerm(cb);
+ }
}
function uEditUpdateUserSettings(userId) {
);
}
+var collectExemptCBox;
+function checkCollectionsExemptPerm(cbox) {
+ if(cbox) collectExemptCBox = cbox;
+ new openils.User().getPermOrgList(
+ 'UPDATE_PATRON_COLLECTIONS_EXEMPT',
+ function(orgList) {
+ if(orgList.indexOf(patron.home_ou()) == -1)
+ collectExemptCBox.attr('disabled', true);
+ else
+ collectExemptCBox.attr('disabled', false);
+ },
+ true,
+ true
+ );
+}
+
function attachWidgetEvents(fmcls, fmfield, widget) {
function(newVal) {
checkClaimsReturnCountPerm();
checkClaimsNoCheckoutCountPerm();
+ checkCollectionsExemptPerm();
}
);
return;