[open-ils-commits] r16993 - in trunk/Open-ILS/src/sql/Pg: . upgrade (gmc)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jul 20 18:36:13 EDT 2010


Author: gmc
Date: 2010-07-20 18:36:06 -0400 (Tue, 20 Jul 2010)
New Revision: 16993

Added:
   trunk/Open-ILS/src/sql/Pg/upgrade/0345.data.biblios-truncation.sql
Modified:
   trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
   trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
set truncation to 1 for all biblios.net Z39.50 attributes

Thanks to Anoop Atre for spotting the problem.

Signed-off-by: Galen Charlton <gmc at esilibrary.com>


Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2010-07-20 21:16:00 UTC (rev 16992)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2010-07-20 22:36:06 UTC (rev 16993)
@@ -68,7 +68,7 @@
     install_date    TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
 );
 
-INSERT INTO config.upgrade_log (version) VALUES ('0344'); -- berick
+INSERT INTO config.upgrade_log (version) VALUES ('0345'); -- gmc
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,

Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2010-07-20 21:16:00 UTC (rev 16992)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2010-07-20 22:36:06 UTC (rev 16993)
@@ -894,9 +894,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);
@@ -905,6 +905,7 @@
 INSERT INTO config.z3950_attr (id, source, name, label, code, format)
 	VALUES (27, 'biblios', 'item_type', oils_i18n_gettext(27, 'Item Type', 'cza', 'label'), 1001, 1);
 
+UPDATE config.z3950_attr SET truncation = 1 WHERE source = 'biblios';
 
 SELECT SETVAL('config.z3950_attr_id_seq'::TEXT, 100);
 

Added: trunk/Open-ILS/src/sql/Pg/upgrade/0345.data.biblios-truncation.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0345.data.biblios-truncation.sql	                        (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0345.data.biblios-truncation.sql	2010-07-20 22:36:06 UTC (rev 16993)
@@ -0,0 +1,7 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0345'); --gmc
+
+UPDATE config.z3950_attr SET truncation = 1 WHERE source = 'biblios' AND truncation = 0;
+
+COMMIT;



More information about the open-ils-commits mailing list