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

(-)a/C4/Auth.pm (-2 / +2 lines)
Lines 509-515 sub get_template_and_user { Link Here
509
            opacheader                            => "" . C4::Context->preference("opacheader"),
509
            opacheader                            => "" . C4::Context->preference("opacheader"),
510
            opaclanguagesdisplay                  => "" . C4::Context->preference("opaclanguagesdisplay"),
510
            opaclanguagesdisplay                  => "" . C4::Context->preference("opaclanguagesdisplay"),
511
            opacreadinghistory                    => C4::Context->preference("opacreadinghistory"),
511
            opacreadinghistory                    => C4::Context->preference("opacreadinghistory"),
512
            opacuserjs                            => C4::Context->preference("opacuserjs"),
512
            OPACUserJS                            => C4::Context->preference("OPACUserJS"),
513
            opacuserlogin                         => "" . C4::Context->preference("opacuserlogin"),
513
            opacuserlogin                         => "" . C4::Context->preference("opacuserlogin"),
514
            ShowReviewer                          => C4::Context->preference("ShowReviewer"),
514
            ShowReviewer                          => C4::Context->preference("ShowReviewer"),
515
            ShowReviewerPhoto                     => C4::Context->preference("ShowReviewerPhoto"),
515
            ShowReviewerPhoto                     => C4::Context->preference("ShowReviewerPhoto"),
Lines 1181-1187 sub checkauth { Link Here
1181
        OpacFavicon                           => C4::Context->preference("OpacFavicon"),
1181
        OpacFavicon                           => C4::Context->preference("OpacFavicon"),
1182
        opacreadinghistory                    => C4::Context->preference("opacreadinghistory"),
1182
        opacreadinghistory                    => C4::Context->preference("opacreadinghistory"),
1183
        opaclanguagesdisplay                  => C4::Context->preference("opaclanguagesdisplay"),
1183
        opaclanguagesdisplay                  => C4::Context->preference("opaclanguagesdisplay"),
1184
        opacuserjs                            => C4::Context->preference("opacuserjs"),
1184
        OPACUserJS                            => C4::Context->preference("OPACUserJS"),
1185
        opacbookbag                           => "" . C4::Context->preference("opacbookbag"),
1185
        opacbookbag                           => "" . C4::Context->preference("opacbookbag"),
1186
        OpacCloud                             => C4::Context->preference("OpacCloud"),
1186
        OpacCloud                             => C4::Context->preference("OpacCloud"),
1187
        OpacTopissue                          => C4::Context->preference("OpacTopissue"),
1187
        OpacTopissue                          => C4::Context->preference("OpacTopissue"),
(-)a/installer/data/mysql/atomicupdate/Bug_12160-Rename_pref_opacuserjs_to_OPACUserJS.sql (+1 lines)
Line 0 Link Here
1
UPDATE systempreferences SET variable="OPACUserJS" where variable="opacuserjs"
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 316-322 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
316
('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'),
316
('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'),
317
('OPACURLOpenInNewWindow','0',NULL,'If ON, URLs in the OPAC open in a new window','YesNo'),
317
('OPACURLOpenInNewWindow','0',NULL,'If ON, URLs in the OPAC open in a new window','YesNo'),
318
('OPACUserCSS','',NULL,'Add CSS to be included in the OPAC in an embedded <style> tag.','free'),
318
('OPACUserCSS','',NULL,'Add CSS to be included in the OPAC in an embedded <style> tag.','free'),
319
('opacuserjs','','70|10','Define custom javascript for inclusion in OPAC','Textarea'),
319
('OPACUserJS','','70|10','Define custom javascript for inclusion in OPAC','Textarea'),
320
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
320
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
321
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
321
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
322
('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'),
322
('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