From: miker Date: Thu, 24 Jun 2010 17:02:03 +0000 (+0000) Subject: arg ... thinkos. 0315 will work now X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d380726aa9ac4f9374944bb549d201985c29adc7;p=contrib%2FConifer.git arg ... thinkos. 0315 will work now git-svn-id: svn://svn.open-ils.org/ILS/trunk@16807 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 7a618316fe..26bf96a20d 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -4288,14 +4288,25 @@ INSERT INTO config.metabib_field_index_norm_map (field,norm,params) WHERE i.func IN ('replace') AND m.id IN (19); -INSERT INTO config.metabib_field_index_norm_map (field,norm) +INSERT INTO config.metabib_field_index_norm_map (field,norm,pos) + SELECT m.id, + i.id, + -2 + FROM config.metabib_field m, + config.index_normalizer i + WHERE i.func IN ('remove_paren_substring') + AND m.id IN (26); + +INSERT INTO config.metabib_field_index_norm_map (field,norm,pos) SELECT m.id, i.id, + -1 FROM config.metabib_field m, config.index_normalizer i - WHERE i.func IN ('btrim','remove_paren_substring') + WHERE i.func IN ('btrim') AND m.id IN (26); + -- claims returned mark item missing INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) diff --git a/Open-ILS/src/sql/Pg/upgrade/0315.data.authority-related-index-normalizers.sql b/Open-ILS/src/sql/Pg/upgrade/0315.data.authority-related-index-normalizers.sql index 4ec3315a64..e0450758fc 100644 --- a/Open-ILS/src/sql/Pg/upgrade/0315.data.authority-related-index-normalizers.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0315.data.authority-related-index-normalizers.sql @@ -25,12 +25,22 @@ INSERT INTO config.index_normalizer (name, description, func, param_count) VALUE 0 ); -INSERT INTO config.metabib_field_index_norm_map (field,norm) +INSERT INTO config.metabib_field_index_norm_map (field,norm,pos) SELECT m.id, i.id, + -2 FROM config.metabib_field m, config.index_normalizer i - WHERE i.func IN ('btrim','remove_paren_substring') + WHERE i.func IN ('remove_paren_substring') + AND m.id IN (26); + +INSERT INTO config.metabib_field_index_norm_map (field,norm,pos) + SELECT m.id, + i.id, + -1 + FROM config.metabib_field m, + config.index_normalizer i + WHERE i.func IN ('btrim') AND m.id IN (26); COMMIT;