LP# 1484281 auth control config update release notes user/ysuarez/lp1465830_fix_auth_data_propagation_deletes_rebased
authorYamil Suarez <yamil@yamil.com>
Wed, 2 Sep 2015 15:20:23 +0000 (11:20 -0400)
committerYamil Suarez <yamil@yamil.com>
Wed, 2 Sep 2015 15:20:23 +0000 (11:20 -0400)
Signed-off-by: Yamil Suarez <yamil@yamil.com>
docs/RELEASE_NOTES_NEXT/Cataloging/upgrade_note_prevent_authority_propagation_delete.txt [new file with mode: 0644]

diff --git a/docs/RELEASE_NOTES_NEXT/Cataloging/upgrade_note_prevent_authority_propagation_delete.txt b/docs/RELEASE_NOTES_NEXT/Cataloging/upgrade_note_prevent_authority_propagation_delete.txt
new file mode 100644 (file)
index 0000000..247e7cf
--- /dev/null
@@ -0,0 +1,33 @@
+Preventing improper authority data deletion from subfield $e 
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+This release contains a fix for LP bug 1484281, "authority data may be deleted during propagation with current 
+values of authority.control_set_authority_field." 
+
+For more details see: https://bugs.launchpad.net/evergreen/+bug/1484281
+
+The related upgrade script from this release only removes subfield $e in authority tags 100 and 110, but only from the Evergreen 
+default "LoC" authority control set configuration. If your Evergreen system is set up with additional authority 
+control sets besides the default "LoC" one, you will need to run the following pieces of SQL code. 
+
+First verify that you have an additional control set besides the default "LoC". Run the following SQL code
+and write down the ID number for your additional control set. The number will be an integer like: 101
+
+[source,sql]
+--------------------------------------------------------------------
+select *
+from authority.control_set
+where name != 'LoC'
+order by id
+--------------------------------------------------------------------
+
+In the following code you will need to change the two sections of "control_set = XYZ". Change the part labeled with the text "XYZ", with the ID number from the above query.
+If the above query disolayed more than one additional authority control set, then you will need to run the code below once for each additional control set ID number. 
+
+[source,sql]
+--------------------------------------------------------------------
+UPDATE authority.control_set_authority_field SET sf_list = REGEXP_REPLACE( sf_list, 'e', '', 'i') WHERE tag = '100' AND control_set = XYZ AND  sf_list ILIKE '%e%';
+
+UPDATE authority.control_set_authority_field SET sf_list = REGEXP_REPLACE( sf_list, 'e', '', 'i') WHERE tag = '110' AND control_set = XYZ AND  sf_list ILIKE '%e%';
+--------------------------------------------------------------------
+