View | Details | Raw Unified | Return to bug 12815
Collapse All | Expand All

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 425-430 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
425
('UseCourseReserves','0',NULL,'Enable the course reserves feature.','YesNo'),
425
('UseCourseReserves','0',NULL,'Enable the course reserves feature.','YesNo'),
426
('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'),
426
('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'),
427
('UseICU','0','1','Tell Koha if ICU indexing is in use for Zebra or not.','YesNo'),
427
('UseICU','0','1','Tell Koha if ICU indexing is in use for Zebra or not.','YesNo'),
428
('UsejQueryIMEonOPAC','0','','If ON, enables browser based, multi-lingual jQuery.ime based input methods on the OPAC','YesNo'),
428
('UseKohaPlugins','0','','Enable or disable the ability to use Koha Plugins.','YesNo'),
429
('UseKohaPlugins','0','','Enable or disable the ability to use Koha Plugins.','YesNo'),
429
('UseQueryParser','0',NULL,'If enabled, try to use QueryParser for queries.','YesNo'),
430
('UseQueryParser','0',NULL,'If enabled, try to use QueryParser for queries.','YesNo'),
430
('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'),
431
('UseTransportCostMatrix','0','','Use Transport Cost Matrix when filling holds','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 8669-8674 if ( CheckVersion($DBversion) ) { Link Here
8669
    SetVersion($DBversion);
8669
    SetVersion($DBversion);
8670
}
8670
}
8671
8671
8672
$DBversion = "3.17.00.XXX";
8673
if ( CheckVersion($DBversion) ) {
8674
    $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')");
8675
    print "Upgrade to $DBversion done (Bug 12815 - Adding support of jquery.ime to Koha OPAC)\n";
8676
    SetVersion ($DBversion);
8677
}
8678
8672
8679
8673
=head1 FUNCTIONS
8680
=head1 FUNCTIONS
8674
8681
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref (-45 / +59 lines)
Lines 1-46 Link Here
1
I18N/L10N:
1
I18N/L10N:
2
    -
2
    Date and Time:
3
        - Format dates like
3
        -
4
        - pref: dateformat
4
            - Format dates like
5
          default: us
5
            - pref: dateformat
6
          choices:
6
              default: us
7
              us: mm/dd/yyyy
7
              choices:
8
              metric: dd/mm/yyyy
8
                  us: mm/dd/yyyy
9
              iso: yyyy-mm-dd
9
                  metric: dd/mm/yyyy
10
        - .
10
                  iso: yyyy-mm-dd
11
    -
11
            - .
12
        - Format times in
12
        -
13
        - pref: TimeFormat
13
            - Format times in
14
          default: 24hr
14
            - pref: TimeFormat
15
          choices:
15
              default: 24hr
16
              24hr: 24 hour format ( e.g. "14:18" )
16
              choices:
17
              12hr: 12 hour format ( e.g. "02:18 PM" )
17
                  24hr: 24 hour format ( e.g. "14:18" )
18
        - .
18
                  12hr: 12 hour format ( e.g. "02:18 PM" )
19
    -
19
            - .
20
        - Use
20
        -
21
        - pref: CalendarFirstDayOfWeek
21
            - Use
22
          default: Sunday
22
            - pref: CalendarFirstDayOfWeek
23
          choices:
23
              default: Sunday
24
              Sunday: Sunday
24
              choices:
25
              Monday: Monday
25
                  Sunday: Sunday
26
        - as the first day of week in the calendar.
26
                  Monday: Monday
27
    -
27
            - as the first day of week in the calendar.
28
        - "Enable the following languages on the staff interface:"
28
        -
29
        - pref: language
29
    Language Support:
30
          type: staff-languages
30
        -
31
    -
31
            - "Enable the following languages on the staff interface:"
32
        - pref: opaclanguagesdisplay
32
            - pref: language
33
          default: 0
33
              type: staff-languages
34
          choices:
34
        -
35
              yes: Allow
35
            - pref: opaclanguagesdisplay
36
              no: "Don't allow"
36
              default: 0
37
        - patrons to change the language they see on the OPAC.
37
              choices:
38
    -
38
                  yes: Allow
39
        - "Enable the following languages on the OPAC:"
39
                  no: "Don't allow"
40
        - pref: opaclanguages
40
            - patrons to change the language they see on the OPAC.
41
          type: opac-languages
41
        -
42
    -
42
            - "Enable the following languages on the OPAC:"
43
        - "Use the alphabet"
43
            - pref: opaclanguages
44
        - pref: alphabet
44
              type: opac-languages
45
          class: long
45
        -
46
        - for lists of browsable letters. This should be a space separated list of uppercase letters.
46
            - "Use the alphabet"
47
            - pref: alphabet
48
              class: long
49
            - for lists of browsable letters. This should be a space separated list of uppercase letters.
50
    Multi-lingual keyboard:
51
        -
52
            - <strong>NOTE:</strong> <a href="https://github.com/wikimedia/jquery.ime" target="_blank">jQuery.IME</a> is a jQuery based input method editor supporting over 135 input methods across more than 62 languages.
53
        -
54
            - "Enable jQuery.IME "
55
            - pref: UsejQueryIMEonOPAC
56
              default: 0
57
              choices:
58
                  yes: Enable
59
                  no: "Do no enable"
60
            - on the OPAC.
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc (+5 lines)
Lines 41-46 Link Here
41
[% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
41
[% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
42
<link rel="unapi-server" type="application/xml" title="unAPI" href="[% OPACBaseURL %]/cgi-bin/koha/unapi" />
42
<link rel="unapi-server" type="application/xml" title="unAPI" href="[% OPACBaseURL %]/cgi-bin/koha/unapi" />
43
[% PROCESS cssinclude %]
43
[% PROCESS cssinclude %]
44
45
[% IF ( Koha.Preference('UsejQueryIMEonOPAC') ) %]
46
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery.ime/css/jquery.ime.css" />
47
[% END %]
48
44
<!-- Respond.js brings responsive layout behavior to IE < v.9 -->
49
<!-- Respond.js brings responsive layout behavior to IE < v.9 -->
45
<!--[if lt IE 9]>
50
<!--[if lt IE 9]>
46
    <script src="[% interface %]/[% theme %]/lib/respond.min.js"></script>
51
    <script src="[% interface %]/[% theme %]/lib/respond.min.js"></script>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-1 / +12 lines)
Lines 202-207 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
202
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
202
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
203
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/googleindictransliteration.js"></script>
203
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/googleindictransliteration.js"></script>
204
[% END %]
204
[% END %]
205
206
[% IF ( Koha.Preference('UsejQueryIMEonOPAC') ) %]
207
    <script type="text/javascript" src="[% interface %]/lib/jquery.ime/jquery.ime.min.js"></script>
208
    <script type="text/javascript">
209
        //<![CDATA[
210
            $( document ).ready( function () {
211
                $( "input:text, textarea" ).ime();
212
            } );
213
        //]]>
214
    </script>
215
[% END %]
216
205
[% IF persona %]
217
[% IF persona %]
206
    <script src="https://login.persona.org/include.js"></script>
218
    <script src="https://login.persona.org/include.js"></script>
207
    <script type="text/javascript">
219
    <script type="text/javascript">
208
- 

Return to bug 12815