From: erickson Date: Wed, 23 Sep 2009 14:58:25 +0000 (+0000) Subject: biblios Z39 search requires truncation on title attr. call child_init on Z39 module... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a5fda366fdf1847b68a7a1c277e4e69778286e2a;p=contrib%2FConifer.git biblios Z39 search requires truncation on title attr. call child_init on Z39 module from top-level search service child init git-svn-id: svn://svn.open-ils.org/ILS/trunk@14115 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search.pm index c70deb2ec2..6f33951beb 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search.pm @@ -32,6 +32,10 @@ sub initialize { OpenILS::Application::Search::Zips->initialize(); OpenILS::Application::Search::Biblio->initialize(); } + +sub child_init { + OpenILS::Application::Search::Z3950->child_init; +} diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 3d15643007..ca1c0dedac 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -51,7 +51,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0014'); +INSERT INTO config.upgrade_log (version) VALUES ('0015'); CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, 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 5a8877c436..5e294637c6 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -794,8 +794,8 @@ INSERT INTO config.z3950_attr (id, source, name, label, code, format) VALUES (21, 'biblios', 'lccn', oils_i18n_gettext(21, 'LCCN', 'cza', 'label'), 9, 1); INSERT INTO config.z3950_attr (id, source, name, label, code, format) VALUES (22, 'biblios', 'author', oils_i18n_gettext(22, 'Author', 'cza', 'label'), 1003, 6); -INSERT INTO config.z3950_attr (id, source, name, label, code, format) - VALUES (23, 'biblios', 'title', oils_i18n_gettext(23, 'Title', 'cza', 'label'), 4, 6); +INSERT INTO config.z3950_attr (id, source, name, label, code, format, truncation) + VALUES (23, 'biblios', 'title', oils_i18n_gettext(23, 'Title', 'cza', 'label'), 4, 6, 1); INSERT INTO config.z3950_attr (id, source, name, label, code, format) VALUES (24, 'biblios', 'issn', oils_i18n_gettext(24, 'ISSN', 'cza', 'label'), 8, 1); INSERT INTO config.z3950_attr (id, source, name, label, code, format) diff --git a/Open-ILS/src/sql/Pg/upgrade/0015.data.biblios-title-truncation.sql b/Open-ILS/src/sql/Pg/upgrade/0015.data.biblios-title-truncation.sql new file mode 100644 index 0000000000..1b00bc547c --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0015.data.biblios-title-truncation.sql @@ -0,0 +1,7 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0015'); + +UPDATE config.z3950_attr SET truncation = 1 WHERE source = 'biblios' AND name = 'title'; + +COMMIT;