From 0167e9f91f8660f15f423a4fb839246c170cb2d3 Mon Sep 17 00:00:00 2001 From: dbwells Date: Thu, 17 Mar 2011 13:22:31 +0000 Subject: [PATCH] Treat call number fields 090 and 092 as local LC and Dewey (respectively) based on de facto standards. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19790 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/040.schema.asset.sql | 4 ++-- .../upgrade/0502.data.defacto_OCLC_local_cn_fields.sql | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/0502.data.defacto_OCLC_local_cn_fields.sql diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index b393ef3227..af763c3e08 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -70,7 +70,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0500'); -- miker for dbs +INSERT INTO config.upgrade_log (version) VALUES ('0502'); -- dbwells CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/040.schema.asset.sql b/Open-ILS/src/sql/Pg/040.schema.asset.sql index d2a820442e..6509bca19f 100644 --- a/Open-ILS/src/sql/Pg/040.schema.asset.sql +++ b/Open-ILS/src/sql/Pg/040.schema.asset.sql @@ -275,8 +275,8 @@ $func$ LANGUAGE PLPERLU; INSERT INTO asset.call_number_class (name, normalizer, field) VALUES ('Generic', 'asset.label_normalizer_generic', '050ab,055ab,060ab,070ab,080ab,082ab,086ab,088ab,090,092,096,098,099'), - ('Dewey (DDC)', 'asset.label_normalizer_dewey', '080ab,082ab'), - ('Library of Congress (LC)', 'asset.label_normalizer_lc', '050ab,055ab') + ('Dewey (DDC)', 'asset.label_normalizer_dewey', '080ab,082ab,092abef'), + ('Library of Congress (LC)', 'asset.label_normalizer_lc', '050ab,055ab,090abef') ; CREATE TABLE asset.call_number ( diff --git a/Open-ILS/src/sql/Pg/upgrade/0502.data.defacto_OCLC_local_cn_fields.sql b/Open-ILS/src/sql/Pg/upgrade/0502.data.defacto_OCLC_local_cn_fields.sql new file mode 100644 index 0000000000..1d6a664e5f --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0502.data.defacto_OCLC_local_cn_fields.sql @@ -0,0 +1,17 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0502'); -- dbwells + +-- Dewey fields +UPDATE asset.call_number_class + SET field = '080ab,082ab,092abef' + WHERE id = 2 +; + +-- LC fields +UPDATE asset.call_number_class + SET field = '050ab,055ab,090abef' + WHERE id = 3 +; + +COMMIT; -- 2.11.0