From b9aac8eab4e4f2c5e02272375515c2bca0682c64 Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Thu, 6 Nov 2014 09:55:22 +0530 Subject: [PATCH] Bug-13211: Added Google Indic Transliteration as a System Preference 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. Go to OPAC and see GoogleIndicTransliteration coming on Masthead. --- installer/data/mysql/sysprefs.sql | 1 + installer/data/mysql/updatedatabase.pl | 7 +++++++ .../prog/en/modules/admin/preferences/opac.pref | 7 +++++++ 3 files changed, 15 insertions(+) diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index c0cd8dd..e7439c2 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -458,4 +458,5 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'), ('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'), ('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo') +('GoogleIndicTransliteration','0','','GoogleIndicTransliteration on the OPAC Masthead.','YesNo') ; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 7b7255d..9941bcc 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -9005,6 +9005,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) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref index 6b25a01..8b4e0a2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -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 -- 1.7.9.5