From b18c38358b5164ad8d5e6797e811c86a0fc6376c Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Thu, 27 Oct 2022 15:03:23 -0700 Subject: [PATCH] LP#1864507 follow-up, stamp upgrade script, and release notes Signed-off-by: Jane Sandberg --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/t/lp1308090-facet_punct.pg | 2 +- ...t.sql => 1344.function.trim_trailing_punct-improvement.sql} | 2 +- docs/RELEASE_NOTES_NEXT/OPAC/marcxml_fields_punctuation.adoc | 10 ++++++++++ 4 files changed, 13 insertions(+), 3 deletions(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.function.trim_trailing_punct-improvement.sql => 1344.function.trim_trailing_punct-improvement.sql} (97%) create mode 100644 docs/RELEASE_NOTES_NEXT/OPAC/marcxml_fields_punctuation.adoc diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 68a29567a3..b3ebef822d 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -92,7 +92,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1343', :eg_version); -- khuckins/christine-burns/mmorgan +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1343', :eg_version); -- mrylander/jweston/sandbergja CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/t/lp1308090-facet_punct.pg b/Open-ILS/src/sql/Pg/t/lp1308090-facet_punct.pg index d68eaf2d3d..f9030032a0 100644 --- a/Open-ILS/src/sql/Pg/t/lp1308090-facet_punct.pg +++ b/Open-ILS/src/sql/Pg/t/lp1308090-facet_punct.pg @@ -1,6 +1,6 @@ BEGIN; -SELECT plan(12); +SELECT plan(18); SELECT can('metabib', ARRAY['trim_trailing_punctuation'], 'metabib.trim_trailing_punctuation function exists'); diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.function.trim_trailing_punct-improvement.sql b/Open-ILS/src/sql/Pg/upgrade/1344.function.trim_trailing_punct-improvement.sql similarity index 97% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.function.trim_trailing_punct-improvement.sql rename to Open-ILS/src/sql/Pg/upgrade/1344.function.trim_trailing_punct-improvement.sql index e469f2b2af..5f74889ad2 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.function.trim_trailing_punct-improvement.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1344.function.trim_trailing_punct-improvement.sql @@ -1,6 +1,6 @@ BEGIN; -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); +SELECT evergreen.upgrade_deps_block_check('1344', :eg_version); -- This function is used to help clean up facet labels. Due to quirks in -- MARC parsing, some facet labels may be generated with periods or commas diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/marcxml_fields_punctuation.adoc b/docs/RELEASE_NOTES_NEXT/OPAC/marcxml_fields_punctuation.adoc new file mode 100644 index 0000000000..56005d8790 --- /dev/null +++ b/docs/RELEASE_NOTES_NEXT/OPAC/marcxml_fields_punctuation.adoc @@ -0,0 +1,10 @@ +== Additional trailing punctuation removed from certain fields == + +MarcXML facet, display, and browse fields will undergo some extra +cleanup before displaying to a user. Of particular note for any +title fields that match these criteria, ending `/`, `:`, `;`, and +`=` will be removed. + +This change does not affect MODS fields. You can check if a +particular field uses MarcXML or MODS in Server Administration +-> MARC Search/Facet Fields by consulting the Format column. \ No newline at end of file -- 2.11.0