'coust', 'description'),
'integer', null)
-,( 'ui.staff.require_initials', 'gui',
- oils_i18n_gettext('ui.staff.require_initials',
- 'Require staff initials for entry/edit of item/patron/penalty notes/messages.',
+,( 'ui.staff.require_initials.patron_standing_penalty', 'gui',
+ oils_i18n_gettext('ui.staff.require_initials.patron_standing_penalty',
+ 'Require staff initials for entry/edit of patron standing penalties and messages.',
'coust', 'label'),
- oils_i18n_gettext('ui.staff.require_initials',
- 'Appends staff initials and edit date into note content.',
+ oils_i18n_gettext('ui.staff.require_initials.patron_standing_penalty',
+ 'Appends staff initials and edit date into patron standing penalties and messages.',
+ 'coust', 'description'),
+ 'bool', null)
+
+,( 'ui.staff.require_initials.patron_info_notes', 'gui',
+ oils_i18n_gettext('ui.staff.require_initials.patron_info_notes',
+ 'Require staff initials for entry/edit of patron notes.',
+ 'coust', 'label'),
+ oils_i18n_gettext('ui.staff.require_initials.patron_info_notes',
+ 'Appends staff initials and edit date into patron note content.',
+ 'coust', 'description'),
+ 'bool', null)
+
+,( 'ui.staff.require_initials.copy_notes', 'gui',
+ oils_i18n_gettext('ui.staff.require_initials.copy_notes',
+ 'Require staff initials for entry/edit of copy notes.',
+ 'coust', 'label'),
+ oils_i18n_gettext('ui.staff.require_initials.copy_notes',
+ 'Appends staff initials and edit date into copy note content.',
'coust', 'description'),
'bool', null)
--- /dev/null
+-- Evergreen DB patch XXXX.data.staff-initials-settings.sql
+--
+-- More granular configuration settings for requiring use of staff initials
+--
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+-- add new granular settings for requiring use of staff initials
+INSERT INTO config.org_unit_setting_type
+ (name, grp, label, description, datatype)
+ VALUES (
+ 'ui.staff.require_initials.patron_standing_penalty',
+ 'gui',
+ oils_i18n_gettext(
+ 'ui.staff.require_initials.patron_standing_penalty',
+ 'Require staff initials for entry/edit of patron standing penalties and messages.',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'ui.staff.require_initials.patron_standing_penalty',
+ 'Appends staff initials and edit date into patron standing penalties and messages.',
+ 'coust',
+ 'description'
+ ),
+ 'bool'
+ ), (
+ 'ui.staff.require_initials.patron_info_notes',
+ 'gui',
+ oils_i18n_gettext(
+ 'ui.staff.require_initials.patron_info_notes',
+ 'Require staff initials for entry/edit of patron notes.',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'ui.staff.require_initials.patron_info_notes',
+ 'Appends staff initials and edit date into patron note content.',
+ 'coust',
+ 'description'
+ ),
+ 'bool'
+ ), (
+ 'ui.staff.require_initials.copy_notes',
+ 'gui',
+ oils_i18n_gettext(
+ 'ui.staff.require_initials.copy_notes',
+ 'Require staff initials for entry/edit of copy notes.',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'ui.staff.require_initials.copy_notes',
+ 'Appends staff initials and edit date into copy note content..',
+ 'coust',
+ 'description'
+ ),
+ 'bool'
+ );
+
+-- Update any existing setting so that the original set value is now passed to
+-- one of the newer settings.
+
+UPDATE actor.org_unit_setting
+SET name = 'ui.staff.require_initials.patron_standing_penalty'
+WHERE name = 'ui.staff.require_initials';
+
+-- Add similar values for new settings as old ones to preserve existing configured
+-- functionality.
+
+INSERT INTO actor.org_unit_setting (org_unit, name, value)
+SELECT org_unit, 'ui.staff.require_initials.patron_info_notes', value
+FROM actor.org_unit_setting
+WHERE name = 'ui.staff.require_initials.patron_standing_penalty';
+
+INSERT INTO actor.org_unit_setting (org_unit, name, value)
+SELECT org_unit, 'ui.staff.require_initials.copy_notes', value
+FROM actor.org_unit_setting
+WHERE name = 'ui.staff.require_initials.patron_standing_penalty';
+
+-- Update setting logs so that the original setting name's history is now transferred
+-- over to one of the newer settings.
+
+UPDATE config.org_unit_setting_type_log
+SET field_name = 'ui.staff.require_initials.patron_standing_penalty'
+WHERE field_name = 'ui.staff.require_initials';
+
+-- Remove the old setting entirely
+
+DELETE FROM config.org_unit_setting_type WHERE name = 'ui.staff.require_initials';
+
+COMMIT;
<row><label value="' + $('catStrings').getString('staff.cat.copy_notes.new_note.public') + '"/><checkbox id="pub" name="fancy_data" checked="false"/></row> \
<row><label value="' + $('catStrings').getString('staff.cat.copy_notes.new_note.title') + '"/><textbox id="title" name="fancy_data" context="clipboard"/></row> \
<row><label value="' + $('catStrings').getString('staff.cat.copy_notes.new_note.note') + '"/><textbox multiline="true" id="note" name="fancy_data" context="clipboard"/></row>';
- var show_initials = String( g.data.hash.aous['ui.staff.require_initials'] ) == 'true';
+ var show_initials = String( g.data.hash.aous['ui.staff.require_initials.copy_notes'] ) == 'true';
if (show_initials) {
xml += '<row><label value="'+$("catStrings").getString('staff.cat.copy_notes.new_note.initials')+'"/><textbox id="initials" name="fancy_required_data" context="clipboard"/></row>';
}
build_penalty_menu();
- var show_initials = String( data.hash.aous['ui.staff.require_initials'] ) == 'true';
+ var show_initials = String( data.hash.aous['ui.staff.require_initials.patron_standing_penalty'] ) == 'true';
if (show_initials) {
document.getElementById('initials_box').hidden = false;
}
xml += '<label value="'+$("patronStrings").getString('staff.patron.info_notes.new_note.patron_visible.value')+'"/><checkbox id="pub" name="fancy_data"/></row>';
xml += '<row><label value="'+$("patronStrings").getString('staff.patron.info_notes.new_note.title.value')+'"/><textbox id="title" name="fancy_data" context="clipboard"/></row>';
xml += '<row><label value="'+$("patronStrings").getString('staff.patron.info_notes.new_note.note.value')+'"/><textbox multiline="true" id="note" name="fancy_data" context="clipboard"/></row>';
- var show_initials = String( g.data.hash.aous['ui.staff.require_initials'] ) == 'true';
+ var show_initials = String( g.data.hash.aous['ui.staff.require_initials.patron_info_notes'] ) == 'true';
if (show_initials) {
xml += '<row><label value="'+$("patronStrings").getString('staff.patron.info_notes.new_note.initials.value')+'"/><textbox id="initials" name="fancy_required_data" context="clipboard"/></row>';
}
build_penalty_menu();
- var show_initials = String( data.hash.aous['ui.staff.require_initials'] ) == 'true';
+ var show_initials = String( data.hash.aous['ui.staff.require_initials.patron_standing_penalty'] ) == 'true';
if (show_initials) {
document.getElementById('initials_box').hidden = false;
}
--- /dev/null
+Add granular settings for requiring staff initials for notes
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+There are now three separate library settings for controlling whether staff
+are required to input their initials when creating different types of notes.
+See new library settings below.
+
+Any pre-existing library setting for requiring staff initials are preserved
+during the upgrade process. After upgrading, you may choose to change the set
+behavior for any of the three new settings.
+
+New Library Settings
++++++++++++++++++++++
+
+ * Require staff initials for entry/edit of patron standing penalties and messages. (ui.staff.require_initials.patron_standing_penalty)
+ * Require staff initials for entry/edit of patron notes. (ui.staff.require_initials.patron_info_notes)
+ * Require staff initials for entry/edit of copy notes. (ui.staff.require_initials.copy_notes)
+