Browse Source

[svn r22156] added settings for show glossary in documents - (partial FS#4337)

Isaac Flores 15 years ago
parent
commit
7efef213e0
2 changed files with 9 additions and 1 deletions
  1. 5 1
      main/install/dokeos_main.sql
  2. 4 0
      main/install/migrate-db-1.8.6-1.8.6.1-pre.sql

+ 5 - 1
main/install/dokeos_main.sql

@@ -2134,4 +2134,8 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
 INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_use_sub_language', 'true', 'Yes');
 INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_use_sub_language', 'false', 'No');
 ALTER TABLE language ADD COLUMN parent_id tinyint unsigned;
-ALTER TABLE language ADD INDEX idx_dokeos_folder(dokeos_folder);
+ALTER TABLE language ADD INDEX idx_dokeos_folder(dokeos_folder);
+INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) VALUES ('show_glossary_in_documents', NULL, 'radio', 'Course', 'none', 'ShowGlossaryInDocumentsTitle', 'ShowGlossaryInDocumentsComment', NULL, NULL);
+INSERT INTO settings_options (variable, value, display_text) VALUES ('show_glossary_in_documents', 'none', 'None');
+INSERT INTO settings_options (variable, value, display_text) VALUES ('show_glossary_in_documents', 'ismanual', 'IsManual');
+INSERT INTO settings_options (variable, value, display_text) VALUES ('show_glossary_in_documents', 'isautomatic', 'IsAutomatic');

+ 4 - 0
main/install/migrate-db-1.8.6-1.8.6.1-pre.sql

@@ -17,6 +17,10 @@ INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_use_
 INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_use_sub_language', 'false', 'No');
 ALTER TABLE language ADD COLUMN parent_id tinyint unsigned;
 ALTER TABLE language ADD INDEX idx_dokeos_folder(dokeos_folder);
+INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) VALUES ('show_glossary_in_documents', NULL, 'radio', 'Course', 'none', 'ShowGlossaryInDocumentsTitle', 'ShowGlossaryInDocumentsComment', NULL, NULL);
+INSERT INTO settings_options (variable, value, display_text) VALUES ('show_glossary_in_documents', 'none', 'None');
+INSERT INTO settings_options (variable, value, display_text) VALUES ('show_glossary_in_documents', 'ismanual', 'IsManual');
+INSERT INTO settings_options (variable, value, display_text) VALUES ('show_glossary_in_documents', 'isautomatic', 'IsAutomatic');
 -- xxSTATSxx
 
 -- xxUSERxx