Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DSpace 1.7.0 ships with a hardcoded http:// link for JQuery. While awaiting the implementation of this fix in an upcoming release, you can solve by in the following file: lib/core/page-structure.xsl, in the add javascript addJavascript template. In this file, you will need to replace

Code Block

<!-- Grab Google CDN jQuery. fall back to local if necessary. Also use same http / https as site --> 
   <script<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">&#160;</script>

with

Code Block

        <script type="text/javascript">
 
          var  <xsl:text disable-output-escaping="yes">var JsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
           document document.write(unescape("%3Cscript src='" + JsHost + "ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
   </script> xsl:text>
    <script>!window.jQuery && document.write('<script src="/dspace/static/js/jquery-1.4.2.min.js"><\/script>')</script>     </script>


Thanks Peter Dietz for providing this fix.