Bug 12160: Rename opacuserjs with OPACUserJS

Test plan:
Same as previous patch for opacuserjs

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

NOTE: Worked before and after updatedatabase.pl, though after
      is less confusing to the programmer unaware of case-insensitivity.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2015-04-27 16:06:37 +02:00 committed by Tomas Cohen Arazi
parent 767edc6bb9
commit 7b0792584e
5 changed files with 7 additions and 6 deletions

View File

@ -510,7 +510,7 @@ sub get_template_and_user {
opacheader => "" . C4::Context->preference("opacheader"),
opaclanguagesdisplay => "" . C4::Context->preference("opaclanguagesdisplay"),
opacreadinghistory => C4::Context->preference("opacreadinghistory"),
opacuserjs => C4::Context->preference("opacuserjs"),
OPACUserJS => C4::Context->preference("OPACUserJS"),
opacuserlogin => "" . C4::Context->preference("opacuserlogin"),
ShowReviewer => C4::Context->preference("ShowReviewer"),
ShowReviewerPhoto => C4::Context->preference("ShowReviewerPhoto"),
@ -1182,7 +1182,7 @@ sub checkauth {
OpacFavicon => C4::Context->preference("OpacFavicon"),
opacreadinghistory => C4::Context->preference("opacreadinghistory"),
opaclanguagesdisplay => C4::Context->preference("opaclanguagesdisplay"),
opacuserjs => C4::Context->preference("opacuserjs"),
OPACUserJS => C4::Context->preference("OPACUserJS"),
opacbookbag => "" . C4::Context->preference("opacbookbag"),
OpacCloud => C4::Context->preference("OpacCloud"),
OpacTopissue => C4::Context->preference("OpacTopissue"),

View File

@ -0,0 +1 @@
UPDATE systempreferences SET variable="OPACUserJS" where variable="opacuserjs"

View File

@ -317,7 +317,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('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'),
('OPACURLOpenInNewWindow','0',NULL,'If ON, URLs in the OPAC open in a new window','YesNo'),
('OPACUserCSS','',NULL,'Add CSS to be included in the OPAC in an embedded <style> tag.','free'),
('opacuserjs','','70|10','Define custom javascript for inclusion in OPAC','Textarea'),
('OPACUserJS','','70|10','Define custom javascript for inclusion in OPAC','Textarea'),
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'),

View File

@ -182,7 +182,7 @@ OPAC:
- for the OPAC's favicon. (This should be a complete URL, starting with <code>http://</code>.)
-
- "Include the following JavaScript on all pages in the OPAC:"
- pref: opacuserjs
- pref: OPACUserJS
type: textarea
class: code
-

View File

@ -262,10 +262,10 @@ $(document).ready(function() {
</script>
[% PROCESS jsinclude %]
[% IF ( opacuserjs ) %]
[% IF ( OPACUserJS ) %]
<script type="text/javascript">
//<![CDATA[
[% opacuserjs %]
[% OPACUserJS %]
//]]>
</script>
[% END %]