@@ -, +, @@ preference - Go to Administration -> System preferences and search for 'GoogleIndicTransliteration.' There should be no results. - Search the Koha codebase for references to 'GoogleIndicTransliteration.' There should be no current references.. --- .../bug-26070-remove-google-transliteration.perl | 8 +++++++ installer/data/mysql/sysprefs.sql | 1 - .../prog/en/modules/admin/preferences/opac.pref | 7 ------ .../bootstrap/en/includes/opac-bottom.inc | 4 ---- .../bootstrap/js/googleindictransliteration.js | 27 ---------------------- opac/opac-main.pl | 5 ---- opac/opac-search.pl | 5 ---- 7 files changed, 8 insertions(+), 49 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug-26070-remove-google-transliteration.perl delete mode 100644 koha-tmpl/opac-tmpl/bootstrap/js/googleindictransliteration.js --- a/installer/data/mysql/atomicupdate/bug-26070-remove-google-transliteration.perl +++ a/installer/data/mysql/atomicupdate/bug-26070-remove-google-transliteration.perl @@ -0,0 +1,8 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + # Remove from the systempreferences table + $dbh->do("DELETE FROM systempreferences WHERE variable = 'GoogleIndicTransliteration'"); + + # Always end with this (adjust the bug info) + NewVersion( $DBversion, 26070, "Remove references to deprecated Google Transliterate API"); +} --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -206,7 +206,6 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('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'), ('GDPR_Policy','','Enforced|Permissive|Disabled','General Data Protection Regulation - policy', 'Choice'), ('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.','YesNo'), ('GoogleJackets','0',NULL,'if ON, displays jacket covers from Google Books API','YesNo'), ('GoogleOpenIDConnect', '0', NULL, 'if ON, allows the use of Google OpenID Connect for login', 'YesNo'), ('GoogleOAuth2ClientID', '', NULL, 'Client ID for the web app registered with Google', 'Free'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -197,13 +197,6 @@ OPAC: no: "Don't show" - a link to recent comments in the OPAC masthead. - - - pref: GoogleIndicTransliteration - default: 0 - choices: - yes: Show - no: "Don't show" - - GoogleIndicTransliteration on the OPAC. - - - pref: OpacHighlightedWords choices: yes: Highlight --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -274,10 +274,6 @@ $.widget.bridge('uitooltip', $.ui.tooltip); //]]> [% END %] -[% IF ( GoogleIndicTransliteration ) %] - - [% Asset.js("js/googleindictransliteration.js") | $raw %] -[% END %] [% IF Koha.Preference( 'OpacNewsLibrarySelect' ) %]