Bug 12663: (QA followup)
authorNick Clemens <nick@bywatersolutions.com>
Thu, 31 Mar 2016 19:48:23 +0000 (19:48 +0000)
committerBrendan Gallagher <bredan@bywatersolutions.com>
Fri, 22 Apr 2016 00:57:44 +0000 (00:57 +0000)
    Insert SCOUserCSS/JS 'after' OPACUserCSS/JS rather than 'instead of'
    i.e. Remove IF/ELSE and use 2 IF

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc

index 47918a4..287b0c7 100644 (file)
 [% IF ( bidi ) %]
     <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />
 [% END %]
+[% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
 [% IF SCO_login %]
     [% SET SCOUserCSS = Koha.Preference('SCOUserCSS') %]
     [% IF SCOUserCSS %]
         <style type="text/css">[% SCOUserCSS %]</style>
     [% END %]
-[% ELSE %]
-    [% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
 [% END %]
 <link rel="unapi-server" type="application/xml" title="unAPI" href="[% OPACBaseURL %]/cgi-bin/koha/unapi" />
 [% PROCESS cssinclude %]
index aae5c24..9e7a15c 100644 (file)
@@ -266,6 +266,13 @@ $(document).ready(function() {
 });
 </script>
 [% PROCESS jsinclude %]
+[% IF ( OPACUserJS ) %]
+    <script type="text/javascript">
+        //<![CDATA[
+        [% OPACUserJS %]
+        //]]>
+    </script>
+[% END %]
 [% IF SCO_login %]
     [% SET SCOUserJS = Koha.Preference('SCOUserJS') %]
     [% IF ( SCOUserJS ) %]
@@ -275,14 +282,6 @@ $(document).ready(function() {
             //]]>
         </script>
     [% END %]
-[% ELSE %]
-    [% IF ( OPACUserJS ) %]
-        <script type="text/javascript">
-            //<![CDATA[
-            [% OPACUserJS %]
-            //]]>
-        </script>
-    [% END %]
 [% END %]
 </body>
 </html>