'cwst', 'label'
)
);
+
+INSERT INTO config.org_unit_setting_type (
+ name, grp, label, description, datatype
+) VALUES (
+ 'ui.hide_clear_these_holds_button',
+ 'gui',
+ oils_i18n_gettext(
+ 'ui.hide_clear_these_holds_button',
+ 'Hide the Clear These Holds button',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'ui.hide_clear_these_holds_button',
+ 'Hide the Clear These Holds button from the Holds Shelf interface.',
+ 'coust',
+ 'description'
+ ),
+ 'bool'
+);
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
+
+INSERT INTO config.org_unit_setting_type (
+name, grp, label, description, datatype
+) VALUES (
+ 'ui.hide_clear_these_holds_button',
+ 'gui',
+ oils_i18n_gettext(
+ 'ui.hide_clear_these_holds_button',
+ 'Hide the Clear These Holds button',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'ui.hide_clear_these_holds_button',
+ 'Hide the Clear These Holds button from the Holds Shelf interface.',
+ 'coust',
+ 'description'
+ ),
+ 'bool'
+);
+
+COMMIT;
\ No newline at end of file
hidden="active_mode" disabled="is_clearing"
label="[% l('Show All Holds') %]"></eg-grid-menu-item>
- <eg-grid-menu-item handler="clear_holds" disabled="disable_clear"
+ <eg-grid-menu-item handler="clear_holds"
+ hidden="hide_clear_holds" disabled="disable_clear"
label="[% l('Clear These Holds') %]"></eg-grid-menu-item>
<eg-grid-menu-item handler="print_shelf_list"
$scope.show_clearable = function() { clear_mode = true; provider.refresh() }
$scope.show_active = function() { clear_mode = false; provider.refresh() }
$scope.disable_clear = function() { return clearing || !clear_mode }
+ egCore.org.settings(
+ 'ui.hide_clear_these_holds_button'
+ ).then(function(settings) {
+ if (settings['ui.hide_clear_these_holds_button'])
+ $scope.hide_clear_holds = true;
+ });
// udpate the in-grid hold with the clear-shelf cached response info.
function handle_clear_cache_resp(resp) {