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

(-)a/installer/data/mysql/atomicupdate/bug_14252-OpacLangSelectorMode_syspref.sql (-1 / +1 lines)
Lines 1-4 Link Here
1
--
1
--
2
-- Adds OpacLangSelectorMode syspref for bug 14252
2
-- Adds OpacLangSelectorMode syspref for bug 14252
3
--
3
--
4
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('OpacLangSelectorMode','foot','both|mast|foot','Select the location to display the language selector','Choice');
4
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('OpacLangSelectorMode','footer','top|both|footer','Select the location to display the language selector','Choice');
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 270-276 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
270
('OpacItemLocation','callnum','callnum|ccode|location','Show the shelving location of items in the opac','Choice'),
270
('OpacItemLocation','callnum','callnum|ccode|location','Show the shelving location of items in the opac','Choice'),
271
('OPACItemsResultsDisplay','0','','If OFF : show only the status of items in result list.If ON : show full location of items (branch+location+callnumber) as in staff interface','YesNo'),
271
('OPACItemsResultsDisplay','0','','If OFF : show only the status of items in result list.If ON : show full location of items (branch+location+callnumber) as in staff interface','YesNo'),
272
('OpacKohaUrl','1',NULL,'Show \'Powered by Koha\' text on OPAC footer.',NULL),
272
('OpacKohaUrl','1',NULL,'Show \'Powered by Koha\' text on OPAC footer.',NULL),
273
('OpacLangSelectorMode','foot','both|mast|foot','Select the location to display the language selector','Choice'),
273
('OpacLangSelectorMode','both','top|both|footer','Select the location to display the language selector','Choice'),
274
('opaclanguages','en',NULL,'Set the default language in the OPAC.','Languages'),
274
('opaclanguages','en',NULL,'Set the default language in the OPAC.','Languages'),
275
('opaclanguagesdisplay','0','','If ON, enables display of Change Language feature on OPAC','YesNo'),
275
('opaclanguagesdisplay','0','','If ON, enables display of Change Language feature on OPAC','YesNo'),
276
('opaclayoutstylesheet','opac.css','','Enter the name of the layout CSS stylesheet to use in the OPAC','free'),
276
('opaclayoutstylesheet','opac.css','','Enter the name of the layout CSS stylesheet to use in the OPAC','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-3 / +3 lines)
Lines 321-329 OPAC: Link Here
321
            - "Display language selector on "
321
            - "Display language selector on "
322
            - pref: OpacLangSelectorMode
322
            - pref: OpacLangSelectorMode
323
              choices:
323
              choices:
324
                  both: "both masthead and footer"
324
                  both: "both top and footer"
325
                  mast: "only masthead"
325
                  top: "top"
326
                  foot: "only footer"
326
                  footer: "only footer"
327
    Features:
327
    Features:
328
        -
328
        -
329
            - pref: opacuserlogin
329
            - pref: opacuserlogin
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-1 / +1 lines)
Lines 72-78 Link Here
72
                        <a id="user-menu-trigger" class="pull-right" href="#"><i class="icon-user"></i> <span class="caret"></span></a>
72
                        <a id="user-menu-trigger" class="pull-right" href="#"><i class="icon-user"></i> <span class="caret"></span></a>
73
                        <div id="members">
73
                        <div id="members">
74
                            <ul class="nav pull-right">
74
                            <ul class="nav pull-right">
75
                                [% IF OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'mast' %]
75
                                [% IF OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'top' %]
76
                                    [% IF ( opaclanguagesdisplay ) %]
76
                                    [% IF ( opaclanguagesdisplay ) %]
77
                                        [% IF ( languages_loop && opaclanguagesdisplay ) %]
77
                                        [% IF ( languages_loop && opaclanguagesdisplay ) %]
78
                                            [% UNLESS ( one_language_enabled ) %]
78
                                            [% UNLESS ( one_language_enabled ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-2 / +1 lines)
Lines 30-36 Link Here
30
    [% END # / OpacKohaUrl %]
30
    [% END # / OpacKohaUrl %]
31
31
32
</div> <!-- / #wrap in masthead.inc -->
32
</div> <!-- / #wrap in masthead.inc -->
33
[% IF OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'foot' %]
33
[% IF OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'footer' %]
34
    [% IF ( opaclanguagesdisplay ) %]
34
    [% IF ( opaclanguagesdisplay ) %]
35
        [% IF ( languages_loop && opaclanguagesdisplay ) %]
35
        [% IF ( languages_loop && opaclanguagesdisplay ) %]
36
            [% UNLESS ( one_language_enabled ) %]
36
            [% UNLESS ( one_language_enabled ) %]
37
- 

Return to bug 14252