@@ -, +, @@ multi-lingual jquery.ime input method support to Koha client. system preference. Open the OPAC, and click inside the search box after page load. You should see small keyboard graphics attached to the bottom right edge of the search box. language. The drop-down will close. input methods available for the language selected in step 5. back to English while on that page press CTRL+M. This toggles between input methods while on the page. jQuery.IME support. support and in the case of Indic and other asian languages Complex layout rendering support and the necessary fonts. (a) Default view with IM active - http://imgur.com/a/2gB7H#3 (b) Selecting the language - http://imgur.com/a/2gB7H#1 (c) Search box showing input method - http://imgur.com/a/2gB7H#0 (d) Typing using Hindi Inscript im - http://imgur.com/a/2gB7H#2 --- installer/data/mysql/sysprefs.sql | 1 + installer/data/mysql/updatedatabase.pl | 7 ++ .../en/modules/admin/preferences/i18n_l10n.pref | 104 ++++++++++++--------- .../bootstrap/en/includes/doc-head-close.inc | 5 + .../bootstrap/en/includes/opac-bottom.inc | 12 +++ 5 files changed, 84 insertions(+), 45 deletions(-) --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -425,6 +425,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('UseCourseReserves','0',NULL,'Enable the course reserves feature.','YesNo'), ('useDaysMode','Calendar','Calendar|Days|Datedue','Choose the method for calculating due date: select Calendar to use the holidays module, and Days to ignore the holidays module','Choice'), ('UseICU','0','1','Tell Koha if ICU indexing is in use for Zebra or not.','YesNo'), +('UsejQueryIMEonOPAC','0','','If ON, enables browser based, multi-lingual jQuery.ime based input methods on the OPAC','YesNo'), ('UseKohaPlugins','0','','Enable or disable the ability to use Koha Plugins.','YesNo'), ('UseQueryParser','0',NULL,'If enabled, try to use QueryParser for queries.','YesNo'), ('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'), --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -8669,6 +8669,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 ('UsejQueryIMEonOPAC','0','','If ON, enables browser based, multi-lingual jQuery.ime based input methods on the OPAC','YesNo')"); + print "Upgrade to $DBversion done (Bug 12815 - Adding support of jquery.ime to Koha OPAC)\n"; + SetVersion ($DBversion); +} + =head1 FUNCTIONS --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref @@ -1,46 +1,60 @@ I18N/L10N: - - - - Format dates like - - pref: dateformat - default: us - choices: - us: mm/dd/yyyy - metric: dd/mm/yyyy - iso: yyyy-mm-dd - - . - - - - Format times in - - pref: TimeFormat - default: 24hr - choices: - 24hr: 24 hour format ( e.g. "14:18" ) - 12hr: 12 hour format ( e.g. "02:18 PM" ) - - . - - - - Use - - pref: CalendarFirstDayOfWeek - default: Sunday - choices: - Sunday: Sunday - Monday: Monday - - as the first day of week in the calendar. - - - - "Enable the following languages on the staff interface:" - - pref: language - type: staff-languages - - - - pref: opaclanguagesdisplay - default: 0 - choices: - yes: Allow - no: "Don't allow" - - patrons to change the language they see on the OPAC. - - - - "Enable the following languages on the OPAC:" - - pref: opaclanguages - type: opac-languages - - - - "Use the alphabet" - - pref: alphabet - class: long - - for lists of browsable letters. This should be a space separated list of uppercase letters. + Date and Time: + - + - Format dates like + - pref: dateformat + default: us + choices: + us: mm/dd/yyyy + metric: dd/mm/yyyy + iso: yyyy-mm-dd + - . + - + - Format times in + - pref: TimeFormat + default: 24hr + choices: + 24hr: 24 hour format ( e.g. "14:18" ) + 12hr: 12 hour format ( e.g. "02:18 PM" ) + - . + - + - Use + - pref: CalendarFirstDayOfWeek + default: Sunday + choices: + Sunday: Sunday + Monday: Monday + - as the first day of week in the calendar. + - + Language Support: + - + - "Enable the following languages on the staff interface:" + - pref: language + type: staff-languages + - + - pref: opaclanguagesdisplay + default: 0 + choices: + yes: Allow + no: "Don't allow" + - patrons to change the language they see on the OPAC. + - + - "Enable the following languages on the OPAC:" + - pref: opaclanguages + type: opac-languages + - + - "Use the alphabet" + - pref: alphabet + class: long + - for lists of browsable letters. This should be a space separated list of uppercase letters. + Multi-lingual keyboard: + - + - NOTE: jQuery.IME is a jQuery based input method editor supporting over 135 input methods across more than 62 languages. + - + - "Enable jQuery.IME " + - pref: UsejQueryIMEonOPAC + default: 0 + choices: + yes: Enable + no: "Do no enable" + - on the OPAC. --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc @@ -41,6 +41,11 @@ [% IF ( OPACUserCSS ) %][% END %] [% PROCESS cssinclude %] + +[% IF ( Koha.Preference('UsejQueryIMEonOPAC') ) %] + +[% END %] +