From 867cc29335d15c5c30a8311c12b150320a0f2f4f Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 23 Feb 2018 10:32:19 -0500 Subject: [PATCH] LP#1744385: Final seed data fixups Signed-off-by: Mike Rylander Signed-off-by: Kathy Lussier Signed-off-by: Dan Wells --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 10 ++-- Open-ILS/src/sql/Pg/953.data.MODS32-xsl.sql | 46 +++++++++++++++++-- Open-ILS/src/sql/Pg/954.data.MODS33-xsl.sql | 44 +++++++++++++++++- .../WWWW.data.display-field-seed-data.sql | 8 ++-- ...YYY.data.mods-title-punctuation-change.sql | 2 +- .../upgrade/ZZZZ.data.virtual_index_defs.sql | 2 +- 6 files changed, 97 insertions(+), 15 deletions(-) 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 fb829c6c5c..ab4468d084 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -214,7 +214,7 @@ INSERT INTO config.metabib_field ( id, field_class, name, label, INSERT INTO config.metabib_field (id, field_class, name, label, xpath, display_field, search_field, browse_field) VALUES ( - 38, 'keyword', 'edition', + 38, 'identifier', 'edition', oils_i18n_gettext(38, 'Edition', 'cmf', 'label'), $$//mods33:mods/mods33:originInfo//mods33:edition[1]$$, TRUE, TRUE, FALSE @@ -232,7 +232,7 @@ VALUES ( INSERT INTO config.metabib_field (id, field_class, name, label, xpath, display_field, search_field, browse_field) VALUES ( - 40, 'keyword', 'publisher', + 40, 'identifier', 'publisher', oils_i18n_gettext(40, 'Publisher', 'cmf', 'label'), $$//mods33:mods/mods33:originInfo//mods33:publisher[1]$$, TRUE, TRUE, FALSE @@ -320,11 +320,11 @@ VALUES ( INSERT INTO config.metabib_field (id, field_class, name, format, label, xpath, display_xpath, display_field, search_field, browse_field) VALUES ( - 52, 'keyword', 'origin_info', 'marcxml', + 52, 'identifier', 'origin_info', 'marcxml', oils_i18n_gettext(52, 'Origin Info', 'cmf', 'label'), $$//*[@tag='260']$$, $$//*[local-name()='subfield' and contains('abc',@code)]$$, - TRUE, TRUE, FALSE + TRUE, FALSE, FALSE ); INSERT INTO config.metabib_field (id, field_class, name, format, weight, @@ -341,7 +341,7 @@ INSERT INTO config.metabib_field_virtual_map (real, virtual) 45 FROM config.metabib_field WHERE search_field - AND id NOT IN (15, 45) + AND id NOT IN (15, 45, 38, 40) AND id NOT IN (SELECT real FROM config.metabib_field_virtual_map); UPDATE config.metabib_field_virtual_map SET weight = -1 WHERE real = 39; diff --git a/Open-ILS/src/sql/Pg/953.data.MODS32-xsl.sql b/Open-ILS/src/sql/Pg/953.data.MODS32-xsl.sql index 69b4ce6c2b..488c6365e6 100644 --- a/Open-ILS/src/sql/Pg/953.data.MODS32-xsl.sql +++ b/Open-ILS/src/sql/Pg/953.data.MODS32-xsl.sql @@ -98,6 +98,9 @@ Added Log Comment + + ,;/ + @@ -1353,6 +1356,45 @@ Added Log Comment + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1460,9 +1502,7 @@ Added Log Comment - - - + diff --git a/Open-ILS/src/sql/Pg/954.data.MODS33-xsl.sql b/Open-ILS/src/sql/Pg/954.data.MODS33-xsl.sql index b3670ff074..e824cdccc0 100644 --- a/Open-ILS/src/sql/Pg/954.data.MODS33-xsl.sql +++ b/Open-ILS/src/sql/Pg/954.data.MODS33-xsl.sql @@ -113,6 +113,9 @@ Revision 1.2 - Added Log Comment 2003/03/24 19:37:42 ckeith + + ,;/ + @@ -1390,6 +1393,45 @@ Revision 1.2 - Added Log Comment 2003/03/24 19:37:42 ckeith + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1496,7 +1538,7 @@ Revision 1.2 - Added Log Comment 2003/03/24 19:37:42 ckeith + select="marc:datafield[@tag=501 or @tag=507 or @tag=513 or @tag=514 or @tag=515 or @tag=516 or @tag=522 or @tag=524 or @tag=525 or @tag=526 or @tag=535 or @tag=536 or @tag=540 or @tag=541 or @tag=544 or @tag=545 or @tag=546 or @tag=547 or @tag=550 or @tag=552 or @tag=555 or @tag=556 or @tag=561 or @tag=562 or @tag=565 or @tag=567 or @tag=580 or @tag=581 or @tag=584 or @tag=585 or @tag=586]"> diff --git a/Open-ILS/src/sql/Pg/upgrade/WWWW.data.display-field-seed-data.sql b/Open-ILS/src/sql/Pg/upgrade/WWWW.data.display-field-seed-data.sql index 4230c34936..5ec2eeb6ea 100644 --- a/Open-ILS/src/sql/Pg/upgrade/WWWW.data.display-field-seed-data.sql +++ b/Open-ILS/src/sql/Pg/upgrade/WWWW.data.display-field-seed-data.sql @@ -9,7 +9,7 @@ UPDATE config.metabib_field SET display_xpath = facet_xpath, display_field = TRU INSERT INTO config.metabib_field (id, field_class, name, label, xpath, display_field, search_field, browse_field) VALUES ( - 38, 'keyword', 'edition', + 38, 'identifier', 'edition', oils_i18n_gettext(38, 'Edition', 'cmf', 'label'), $$//mods33:mods/mods33:originInfo//mods33:edition[1]$$, TRUE, TRUE, FALSE @@ -27,7 +27,7 @@ VALUES ( INSERT INTO config.metabib_field (id, field_class, name, label, xpath, display_field, search_field, browse_field) VALUES ( - 40, 'keyword', 'publisher', + 40, 'identifier', 'publisher', oils_i18n_gettext(40, 'Publisher', 'cmf', 'label'), $$//mods33:mods/mods33:originInfo//mods33:publisher[1]$$, TRUE, TRUE, FALSE @@ -112,11 +112,11 @@ VALUES ( INSERT INTO config.metabib_field (id, field_class, name, format, label, xpath, display_xpath, display_field, search_field, browse_field) VALUES ( - 52, 'keyword', 'origin_info', 'marcxml', + 52, 'identifier', 'origin_info', 'marcxml', oils_i18n_gettext(52, 'Origin Info', 'cmf', 'label'), $$//*[@tag='260']$$, $$//*[local-name()='subfield' and contains('abc',@code)]$$, - TRUE, TRUE, FALSE + TRUE, FALSE, FALSE ); diff --git a/Open-ILS/src/sql/Pg/upgrade/YYYY.data.mods-title-punctuation-change.sql b/Open-ILS/src/sql/Pg/upgrade/YYYY.data.mods-title-punctuation-change.sql index eb7e34e7e8..febf8323a6 100644 --- a/Open-ILS/src/sql/Pg/upgrade/YYYY.data.mods-title-punctuation-change.sql +++ b/Open-ILS/src/sql/Pg/upgrade/YYYY.data.mods-title-punctuation-change.sql @@ -4901,7 +4901,7 @@ Revision 1.2 - Added Log Comment 2003/03/24 19:37:42 ckeith + + select="marc:datafield[@tag=501 or @tag=507 or @tag=513 or @tag=514 or @tag=515 or @tag=516 or @tag=522 or @tag=524 or @tag=525 or @tag=526 or @tag=535 or @tag=536 or @tag=540 or @tag=541 or @tag=544 or @tag=545 or @tag=546 or @tag=547 or @tag=550 or @tag=552 or @tag=555 or @tag=556 or @tag=561 or @tag=562 or @tag=565 or @tag=567 or @tag=580 or @tag=581 or @tag=584 or @tag=585 or @tag=586]"> diff --git a/Open-ILS/src/sql/Pg/upgrade/ZZZZ.data.virtual_index_defs.sql b/Open-ILS/src/sql/Pg/upgrade/ZZZZ.data.virtual_index_defs.sql index 491d009878..9e4e4250e5 100644 --- a/Open-ILS/src/sql/Pg/upgrade/ZZZZ.data.virtual_index_defs.sql +++ b/Open-ILS/src/sql/Pg/upgrade/ZZZZ.data.virtual_index_defs.sql @@ -17,7 +17,7 @@ INSERT INTO config.metabib_field_virtual_map (real, virtual) 45 FROM config.metabib_field WHERE search_field - AND id NOT IN (15, 45) + AND id NOT IN (15, 45, 38, 40) -- keyword|keyword, self, edition, publisher AND id NOT IN (SELECT real FROM config.metabib_field_virtual_map); UPDATE config.metabib_field SET xpath=$$//mods32:mods/mods32:subject[not(descendant::mods32:geographicCode)]$$ WHERE id = 16; -- 2.43.2