added opac user setting for default sort order for search results
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Jul 2010 20:52:39 +0000 (20:52 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Jul 2010 20:52:39 +0000 (20:52 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16861 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/0327.data.default_opac_sort_setting.sql [new file with mode: 0644]

index bd68c08..51bf0e8 100644 (file)
@@ -68,7 +68,7 @@ CREATE TABLE config.upgrade_log (
     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,
index dc46bf7..d3d9505 100644 (file)
@@ -5881,3 +5881,23 @@ INSERT INTO query.datatype (id, datatype_name, is_numeric )
  
 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'
+    );
+
diff --git a/Open-ILS/src/sql/Pg/upgrade/0327.data.default_opac_sort_setting.sql b/Open-ILS/src/sql/Pg/upgrade/0327.data.default_opac_sort_setting.sql
new file mode 100644 (file)
index 0000000..3dc8c45
--- /dev/null
@@ -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;
+