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

(-)a/C4/Auth.pm (-2 / +2 lines)
Lines 508-514 sub get_template_and_user { Link Here
508
            opacheader                            => "" . C4::Context->preference("opacheader"),
508
            opacheader                            => "" . C4::Context->preference("opacheader"),
509
            opaclanguagesdisplay                  => "" . C4::Context->preference("opaclanguagesdisplay"),
509
            opaclanguagesdisplay                  => "" . C4::Context->preference("opaclanguagesdisplay"),
510
            opacreadinghistory                    => C4::Context->preference("opacreadinghistory"),
510
            opacreadinghistory                    => C4::Context->preference("opacreadinghistory"),
511
            opacuserjs                            => C4::Context->preference("opacuserjs"),
511
            OpacUserJS                            => C4::Context->preference("OpacUserJS"),
512
            opacuserlogin                         => "" . C4::Context->preference("opacuserlogin"),
512
            opacuserlogin                         => "" . C4::Context->preference("opacuserlogin"),
513
            ShowReviewer                          => C4::Context->preference("ShowReviewer"),
513
            ShowReviewer                          => C4::Context->preference("ShowReviewer"),
514
            ShowReviewerPhoto                     => C4::Context->preference("ShowReviewerPhoto"),
514
            ShowReviewerPhoto                     => C4::Context->preference("ShowReviewerPhoto"),
Lines 1179-1185 sub checkauth { Link Here
1179
        OpacFavicon                           => C4::Context->preference("OpacFavicon"),
1179
        OpacFavicon                           => C4::Context->preference("OpacFavicon"),
1180
        opacreadinghistory                    => C4::Context->preference("opacreadinghistory"),
1180
        opacreadinghistory                    => C4::Context->preference("opacreadinghistory"),
1181
        opaclanguagesdisplay                  => C4::Context->preference("opaclanguagesdisplay"),
1181
        opaclanguagesdisplay                  => C4::Context->preference("opaclanguagesdisplay"),
1182
        opacuserjs                            => C4::Context->preference("opacuserjs"),
1182
        OpacUserJS                            => C4::Context->preference("OpacUserJS"),
1183
        opacbookbag                           => "" . C4::Context->preference("opacbookbag"),
1183
        opacbookbag                           => "" . C4::Context->preference("opacbookbag"),
1184
        OpacCloud                             => C4::Context->preference("OpacCloud"),
1184
        OpacCloud                             => C4::Context->preference("OpacCloud"),
1185
        OpacTopissue                          => C4::Context->preference("OpacTopissue"),
1185
        OpacTopissue                          => C4::Context->preference("OpacTopissue"),
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 313-319 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
313
('OpacTopissue','0',NULL,'If ON, enables the \'most popular items\' link on OPAC. Warning, this is an EXPERIMENTAL feature, turning ON may overload your server','YesNo'),
313
('OpacTopissue','0',NULL,'If ON, enables the \'most popular items\' link on OPAC. Warning, this is an EXPERIMENTAL feature, turning ON may overload your server','YesNo'),
314
('OPACURLOpenInNewWindow','0',NULL,'If ON, URLs in the OPAC open in a new window','YesNo'),
314
('OPACURLOpenInNewWindow','0',NULL,'If ON, URLs in the OPAC open in a new window','YesNo'),
315
('OPACUserCSS','',NULL,'Add CSS to be included in the OPAC in an embedded <style> tag.','free'),
315
('OPACUserCSS','',NULL,'Add CSS to be included in the OPAC in an embedded <style> tag.','free'),
316
('opacuserjs','','70|10','Define custom javascript for inclusion in OPAC','Textarea'),
316
('OpacUserJS','','70|10','Define custom javascript for inclusion in OPAC','Textarea'),
317
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
317
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
318
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
318
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
319
('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'),
319
('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +1 lines)
Lines 182-188 OPAC: Link Here
182
            - for the OPAC's favicon. (This should be a complete URL, starting with <code>http://</code>.)
182
            - for the OPAC's favicon. (This should be a complete URL, starting with <code>http://</code>.)
183
        -
183
        -
184
            - "Include the following JavaScript on all pages in the OPAC:"
184
            - "Include the following JavaScript on all pages in the OPAC:"
185
            - pref: opacuserjs
185
            - pref: OpacUserJS
186
              type: textarea
186
              type: textarea
187
              class: code
187
              class: code
188
        -
188
        -
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-3 / +2 lines)
Lines 262-271 $(document).ready(function() { Link Here
262
</script>
262
</script>
263
[% PROCESS jsinclude %]
263
[% PROCESS jsinclude %]
264
264
265
[% IF ( opacuserjs ) %]
265
[% IF ( OpacUserJS ) %]
266
    <script type="text/javascript">
266
    <script type="text/javascript">
267
        //<![CDATA[
267
        //<![CDATA[
268
        [% opacuserjs %]
268
        [% OpacUserJS %]
269
        //]]>
269
        //]]>
270
    </script>
270
    </script>
271
[% END %]
271
[% END %]
272
- 

Return to bug 12160