LP#1455606 remove unused self checkout setting user/jeff/lp1455606_remove_unused_self_checkout_setting
authorJeff Godin <jgodin@tadl.org>
Thu, 14 May 2015 23:58:18 +0000 (16:58 -0700)
committerJeff Godin <jgodin@tadl.org>
Fri, 15 May 2015 18:32:14 +0000 (11:32 -0700)
There is an unused (and apparently never used) org unit setting
related to self checkout:

circ.selfcheck.require_patron_password

This commit removes the redundant unused setting, related
permissions, and related strings.

Thanks to Lynn Floyd with the Anderson County Library for pointing
this out.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.remove_unused_self_checkout_setting.sql [new file with mode: 0644]
Open-ILS/web/opac/locale/en-US/lang.dtd
build/i18n/po/db.seed/db.seed.pot
build/i18n/po/lang.dtd/lang.dtd.pot

index bac8cfc..1d07c85 100644 (file)
@@ -1150,8 +1150,6 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES
     'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.patron_login_timeout', 'ppl', 'description' )),
  ( 338, 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.alert_on_checkout_event', oils_i18n_gettext( 338, 
     'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.alert_on_checkout_event', 'ppl', 'description' )),
- ( 339, 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password', oils_i18n_gettext( 339, 
-    'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password', 'ppl', 'description' )),
  ( 340, 'UPDATE_ORG_UNIT_SETTING.global.juvenile_age_threshold', oils_i18n_gettext( 340, 
     'UPDATE_ORG_UNIT_SETTING.global.juvenile_age_threshold', 'ppl', 'description' )),
  ( 341, 'UPDATE_ORG_UNIT_SETTING.cat.bib.keep_on_empty', oils_i18n_gettext( 341, 
@@ -3530,15 +3528,6 @@ INSERT into config.org_unit_setting_type
         'coust', 'description'),
     'bool', null)
 
-,( 'circ.selfcheck.require_patron_password', 'self',
-    oils_i18n_gettext('circ.selfcheck.require_patron_password',
-        'Require patron password',
-        'coust', 'label'),
-    oils_i18n_gettext('circ.selfcheck.require_patron_password',
-        'If true, patrons will be required to enter their password in addition to their username/barcode to log into the selfcheck interface',
-        'coust', 'description'),
-    'bool', null)
-
 ,( 'circ.selfcheck.workstation_required', 'self',
     oils_i18n_gettext('circ.selfcheck.workstation_required',
         'Workstation Required',
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.remove_unused_self_checkout_setting.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.remove_unused_self_checkout_setting.sql
new file mode 100644 (file)
index 0000000..147f0e7
--- /dev/null
@@ -0,0 +1,17 @@
+-- remove unused org unit setting for self checkout interface
+
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+DELETE FROM actor.org_unit_setting WHERE name = 'circ.selfcheck.require_patron_password';
+
+DELETE FROM config.org_unit_setting_type WHERE name = 'circ.selfcheck.require_patron_password';
+
+DELETE FROM permission.usr_perm_map WHERE perm IN (SELECT id FROM permission.perm_list WHERE code = 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password');
+
+DELETE FROM permission.grp_perm_map WHERE perm IN (SELECT id FROM permission.perm_list WHERE code = 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password');
+
+DELETE FROM permission.perm_list WHERE code = 'UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password';
+
+COMMIT;
index e4e07df..8bb38a8 100644 (file)
 <!ENTITY staff.server.admin.org_settings.circ.selfcheck.patron_login_timeout.desc "Number of seconds of inactivity before the patron is logged out of the selfcheck interface">
 <!ENTITY staff.server.admin.org_settings.circ.selfcheck.alert_on_checkout_event "Selfcheck: Pop-up alert for errors">
 <!ENTITY staff.server.admin.org_settings.circ.selfcheck.alert_on_checkout_event.desc "If true, checkout/renewal errors will cause a pop-up window in addition to the on-screen message">
-<!ENTITY staff.server.admin.org_settings.circ.selfcheck.require_patron_password "Selfcheck: Require patron password">
-<!ENTITY staff.server.admin.org_settings.circ.selfcheck.require_patron_password.desc "If true, patrons will be required to enter their password in addition to their username/barcode to log into the selfcheck interface">
 <!ENTITY staff.server.admin.org_settings.global.juvenile_age_threshold "Juvenile Age Threshold">
 <!ENTITY staff.server.admin.org_settings.global.juvenile_age_threshold.desc 'The age at which a user is no long considered a juvenile.  For example, "18 years".'>
 <!ENTITY staff.server.admin.org_settings.cat.bib.keep_on_empty "Do not automatically delete empty bib records">
index 89e02c0..b3e7e20 100644 (file)
@@ -2138,11 +2138,6 @@ msgstr ""
 msgid "Gayo"
 msgstr ""
 
-# id::coust.label__circ.selfcheck.require_patron_password
-#: 950.data.seed-values.sql:3553
-msgid "Require patron password"
-msgstr ""
-
 # id::ccvm.value__510
 #: 950.data.seed-values.sql:6648
 msgid "Not fiction (not further specified)"
@@ -4916,13 +4911,6 @@ msgstr ""
 msgid "User may link a copy to an entry in a statistical category"
 msgstr ""
 
-# id::coust.description__circ.selfcheck.require_patron_password
-#: 950.data.seed-values.sql:3556
-msgid ""
-"If true, patrons will be required to enter their password in addition to "
-"their username/barcode to log into the selfcheck interface"
-msgstr ""
-
 # id::ccvm.value__482
 #: 950.data.seed-values.sql:6614
 msgid "Zenaga"
@@ -11828,11 +11816,6 @@ msgstr ""
 msgid "Crimean Tatar"
 msgstr ""
 
-# id::ppl.description__339
-#: 950.data.seed-values.sql:1176
-msgid "UPDATE_ORG_UNIT_SETTING.circ.selfcheck.require_patron_password"
-msgstr ""
-
 # id::ccvm.value__441
 #: 950.data.seed-values.sql:6573
 msgid "Tsimshian"
index 77f2b1d..5f5b8f6 100644 (file)
@@ -9063,16 +9063,6 @@ msgid ""
 "the on-screen message"
 msgstr ""
 
-#: staff.server.admin.org_settings.circ.selfcheck.require_patron_password
-msgid "Selfcheck: Require patron password"
-msgstr ""
-
-#: staff.server.admin.org_settings.circ.selfcheck.require_patron_password.desc
-msgid ""
-"If true, patrons will be required to enter their password in addition to "
-"their username/barcode to log into the selfcheck interface"
-msgstr ""
-
 #: staff.server.admin.org_settings.global.juvenile_age_threshold
 msgid "Juvenile Age Threshold"
 msgstr ""