<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>+1 :o)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I&#8217;ve been pondering this &#8211; anyone fancy a &#8216;what&#8217;s in EPrints Javascript and can we hack it into jQuery&#8217; day sometime?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Also, in answer to the initial query, if you place a javascript file in ~/archives/ARCHIVEID/cfg/static/javascript/auto/, it should get picked up (there may already be a &#8216;90_local.js&#8217; file in there you can add to as well.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] <b>On Behalf Of </b>Denis Pitzalis<br><b>Sent:</b> 07 October 2013 12:02<br><b>To:</b> Eprints Tech Mailing List<br><b>Subject:</b> [EP-tech] Re: Custom javascript<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>Hei Seb, is there any plan to move to jQuery one day?<br><br>Denis<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>On Mon, Oct 7, 2013 at 11:49 AM, Yuri &lt;<a href="mailto:yurj@alfa.it" target="_blank">yurj@alfa.it</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>Il 07/10/2013 11:35, Derek Lawrie ha scritto:<o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>&gt;<br>&gt;<br>&gt; I was just doing a simple test on the length of an array and when I<br>&gt; run 'bin/generate_static' against my repository I get this:<br>&gt;<br>&gt; &nbsp; &nbsp; Failed to parse XML file:<br>&gt; &nbsp; &nbsp; /usr/share/eprints3/archives/myrepos/cfg/templates/default.xml:<br>&gt; &nbsp; &nbsp; Entity: line 9: parser error : StartTag: invalid element name<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(jQuery('#ep_tm_menu_tools li').length &lt; 2){<br>&gt;<br>&gt;<br>&gt;<o:p></o:p></p></div><p class=MsoNormal>default.xml must be an xml file. You've to embed your code as xml, I<br>think using CDATA should works. Check examples on the web, or put the js<br>as an external file and load it from the template as you did already before.<br>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>*** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.php/</a><br>*** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a><o:p></o:p></p></div><p class=MsoNormal><br><br clear=all><br>-- <o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>----------------------<br>Denis Pitzalis, PhD<br>Web Lead Developer<br><br>UNESCO - <a href="http://www.unesco.org" target="_blank">http://www.unesco.org</a> <br>Paris, France - Tel: +33145681816<o:p></o:p></p></div><p class=MsoNormal>Digital Heritage 2013 - Workshops chair<br><a href="http://www.digitalheritage2013.org/" target="_blank">http://www.digitalheritage2013.org/</a><o:p></o:p></p></div></div></div></body></html>