Bugzilla – Attachment 33286 Details for
Bug 13211
Added: GoogleIndicTransliteration as a System Preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug-13211: Added Google Indic Transliteration as a System Preference
0001-Bug-13211-Added-Google-Indic-Transliteration-as-a-Sy.patch (text/plain), 3.47 KB, created by
Amit Gupta
on 2014-11-06 06:18:35 UTC
(
hide
)
Description:
Bug-13211: Added Google Indic Transliteration as a System Preference
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2014-11-06 06:18:35 UTC
Size:
3.47 KB
patch
obsolete
>From 63f123634f29ea52500cf9636e6acb52f4099214 Mon Sep 17 00:00:00 2001 >From: Amit Gupta <amit.gupta@informaticsglobal.com> >Date: Thu, 6 Nov 2014 11:46:01 +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..5e68c3f 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -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'), >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13211
:
33284
|
33286
|
33302
|
33303
|
33304
|
33334
|
33335