[open-ils-commits] r16861 - in trunk/Open-ILS/src/sql/Pg: . upgrade (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jul 6 16:52:45 EDT 2010
Author: erickson
Date: 2010-07-06 16:52:39 -0400 (Tue, 06 Jul 2010)
New Revision: 16861
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0327.data.default_opac_sort_setting.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
added opac user setting for default sort order for search results
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-06 20:28:59 UTC (rev 16860)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-06 20:52:39 UTC (rev 16861)
@@ -68,7 +68,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0326'); -- phasefx
+INSERT INTO config.upgrade_log (version) VALUES ('0327'); -- berick
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-06 20:28:59 UTC (rev 16860)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-07-06 20:52:39 UTC (rev 16861)
@@ -5881,3 +5881,23 @@
INSERT INTO query.datatype (id, datatype_name, is_numeric )
VALUES (23, 'BOOLEAN', false);
+
+INSERT INTO config.usr_setting_type (name, opac_visible, label, description, datatype)
+ VALUES (
+ 'opac.default_sort',
+ TRUE,
+ oils_i18n_gettext(
+ 'opac.default_sort',
+ 'OPAC Default Search Sort',
+ 'cust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'opac.default_sort',
+ 'OPAC Default Search Sort',
+ 'cust',
+ 'description'
+ ),
+ 'string'
+ );
+
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0327.data.default_opac_sort_setting.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0327.data.default_opac_sort_setting.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0327.data.default_opac_sort_setting.sql 2010-07-06 20:52:39 UTC (rev 16861)
@@ -0,0 +1,25 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0327');
+
+INSERT INTO config.usr_setting_type (name, opac_visible, label, description, datatype)
+ VALUES (
+ 'opac.default_sort',
+ TRUE,
+ oils_i18n_gettext(
+ 'opac.default_sort',
+ 'OPAC Default Search Sort',
+ 'cust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'opac.default_sort',
+ 'OPAC Default Search Sort',
+ 'cust',
+ 'description'
+ ),
+ 'string'
+ );
+
+COMMIT;
+
More information about the open-ils-commits
mailing list