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','both','both|head|foot','Select the location to display the language selector','Choice');
4
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('OpacLangSelectorMode','both','both|mast|foot','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','both','both|head|foot','Select the location to display the language selector','Choice'),
273
('OpacLangSelectorMode','both','both|mast|foot','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 (-1 / +1 lines)
Lines 322-328 OPAC: Link Here
322
            - pref: OpacLangSelectorMode
322
            - pref: OpacLangSelectorMode
323
              choices:
323
              choices:
324
                  both: "both masthead and footer"
324
                  both: "both masthead and footer"
325
                  head: "only header"
325
                  mast: "only masthead"
326
                  foot: "only footer"
326
                  foot: "only footer"
327
    Features:
327
    Features:
328
        -
328
        -
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-1 / +2 lines)
Lines 1-4 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
2
<div id="wrap">
3
<div id="wrap">
3
    <div id="header-region" class="noprint">
4
    <div id="header-region" class="noprint">
4
        <div class="navbar navbar-inverse navbar-static-top">
5
        <div class="navbar navbar-inverse navbar-static-top">
Lines 71-77 Link Here
71
                        <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>
72
                        <div id="members">
73
                        <div id="members">
73
                            <ul class="nav pull-right">
74
                            <ul class="nav pull-right">
74
                            [% IF ( Koha.Preference( 'OpacLangSelectorMode' ) == 'both' ) || ( Koha.Preference( 'OpacLangSelectorMode' ) == 'head' ) %]
75
                            [% IF OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'mast' %]
75
                            [% IF ( opaclanguagesdisplay ) %]
76
                            [% IF ( opaclanguagesdisplay ) %]
76
                                [% IF ( languages_loop && opaclanguagesdisplay ) %]
77
                                [% IF ( languages_loop && opaclanguagesdisplay ) %]
77
                                    [% UNLESS ( one_language_enabled ) %]
78
                                    [% UNLESS ( one_language_enabled ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-2 / +2 lines)
Lines 1-4 Link Here
1
[% UNLESS ( is_popup ) %]
1
[% UNLESS ( is_popup ) %]
2
    [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
2
    [% IF ( opaccredits ) %]
3
    [% IF ( opaccredits ) %]
3
        <div class="container-fluid">
4
        <div class="container-fluid">
4
            <div class="row-fluid">
5
            <div class="row-fluid">
Lines 29-35 Link Here
29
    [% END # / OpacKohaUrl %]
30
    [% END # / OpacKohaUrl %]
30
31
31
</div> <!-- / #wrap in masthead.inc -->
32
</div> <!-- / #wrap in masthead.inc -->
32
[% IF ( Koha.Preference( 'OpacLangSelectorMode' ) == 'both' ) || ( Koha.Preference( 'OpacLangSelectorMode' ) == 'foot' ) %]
33
[% IF OpacLangSelectorMode == 'both' || OpacLangSelectorMode == 'foot' %]
33
    [% IF ( opaclanguagesdisplay ) %]
34
    [% IF ( opaclanguagesdisplay ) %]
34
        [% IF ( languages_loop && opaclanguagesdisplay ) %]
35
        [% IF ( languages_loop && opaclanguagesdisplay ) %]
35
            [% UNLESS ( one_language_enabled ) %]
36
            [% UNLESS ( one_language_enabled ) %]
36
- 

Return to bug 14252