Bug 13211: Added Google Indic Transliteration as a System Preference
authorAmit Gupta <amit.gupta@informaticsglobal.com>
Thu, 6 Nov 2014 06:16:01 +0000 (11:46 +0530)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 10 Nov 2014 15:00:27 +0000 (12:00 -0300)
Test scenario:
1. Apply the patch
2. Run updatedatabase.pl
3. Login to Koha and go to Adminstration.
4. Click on Global system preferences.
5. Search GoogleIndicTransliteration and choose value "Show".
6. Apply patches on bug 13144
7. Go to OPAC and see GoogleIndicTransliteration coming on Masthead.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref

index d0a9c6d..70c1b3e 100644 (file)
@@ -128,6 +128,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('finesMode','test','off|test|production','Choose the fines mode, \'off\', \'test\' (emails admin report) or \'production\' (accrue overdue fines).  Requires accruefines cronjob.','Choice'),
 ('FRBRizeEditions','0','','If ON, Koha will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','YesNo'),
 ('gist','0','','Default Goods and Services tax rate NOT in %, but in numeric form (0.12 for 12%), set to 0 to disable GST','Integer'),
+('GoogleIndicTransliteration','0','','GoogleIndicTransliteration on the OPAC Masthead.','YesNo'),
 ('GoogleJackets','0',NULL,'if ON, displays jacket covers from Google Books API','YesNo'),
 ('hidelostitems','0','','If ON, disables display of\"lost\" items in OPAC.','YesNo'),
 ('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
index add2b2e..52fd9ff 100755 (executable)
@@ -9418,6 +9418,13 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.17.00.XXX";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES('GoogleIndicTransliteration','0','','GoogleIndicTransliteration on the OPAC Masthead.','YesNo')");
+    print "Upgrade to $DBversion done (Bug 13211: Added system preferences GoogleIndicTransliteration on the OPAC Masthead)\n";
+    SetVersion($DBversion);
+}
+
 =head1 FUNCTIONS
 
 =head2 TableExists($table)
index 6b25a01..8b4e0a2 100644 (file)
@@ -154,6 +154,13 @@ OPAC:
                   no: "Don't show"
             - the item's barcode on the holdings tab.
         -
+            - pref: GoogleIndicTransliteration
+              default: 0
+              choices:
+                  yes: Show
+                  no: "Don't show"
+            - GoogleIndicTransliteration on the OPAC masthead.
+        -
             - pref: OpacHighlightedWords
               choices:
                   yes: Highlight