[open-ils-commits] r14121 - in branches/rel_1_6/Open-ILS/src: perlmods/OpenILS/Application sql/Pg sql/Pg/upgrade (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 23 12:25:29 EDT 2009
Author: erickson
Date: 2009-09-23 12:25:26 -0400 (Wed, 23 Sep 2009)
New Revision: 14121
Added:
branches/rel_1_6/Open-ILS/src/sql/Pg/upgrade/
branches/rel_1_6/Open-ILS/src/sql/Pg/upgrade/0015.data.biblios-title-truncation.sql
Modified:
branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Search.pm
branches/rel_1_6/Open-ILS/src/sql/Pg/002.schema.config.sql
branches/rel_1_6/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
biblios Z39 search requires truncation on title attr. call child_init on Z39 module from top-level search service child init
Modified: branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Search.pm
===================================================================
--- branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Search.pm 2009-09-23 16:23:38 UTC (rev 14120)
+++ branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Search.pm 2009-09-23 16:25:26 UTC (rev 14121)
@@ -32,6 +32,10 @@
OpenILS::Application::Search::Zips->initialize();
OpenILS::Application::Search::Biblio->initialize();
}
+
+sub child_init {
+ OpenILS::Application::Search::Z3950->child_init;
+}
Modified: branches/rel_1_6/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-09-23 16:23:38 UTC (rev 14120)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-09-23 16:25:26 UTC (rev 14121)
@@ -51,6 +51,8 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
+INSERT INTO config.upgrade_log (version) VALUES ('0015');
+
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
quality INT CHECK ( quality BETWEEN 0 AND 100 ),
Modified: branches/rel_1_6/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2009-09-23 16:23:38 UTC (rev 14120)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2009-09-23 16:25:26 UTC (rev 14121)
@@ -794,9 +794,9 @@
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, 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 (23, 'biblios', 'title', oils_i18n_gettext(23, 'Title', 'cza', 'label'), 4, 6);
-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)
VALUES (25, 'biblios', 'publisher', oils_i18n_gettext(25, 'Publisher', 'cza', 'label'), 1018, 6);
Copied: branches/rel_1_6/Open-ILS/src/sql/Pg/upgrade/0015.data.biblios-title-truncation.sql (from rev 14115, trunk/Open-ILS/src/sql/Pg/upgrade/0015.data.biblios-title-truncation.sql)
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/upgrade/0015.data.biblios-title-truncation.sql (rev 0)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/upgrade/0015.data.biblios-title-truncation.sql 2009-09-23 16:25:26 UTC (rev 14121)
@@ -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;
More information about the open-ils-commits
mailing list