<div dir="ltr">Hei Seb, is there any plan to move to jQuery one day?<br><br>Denis<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 11:49 AM, Yuri <span dir="ltr">&lt;<a href="mailto:yurj@alfa.it" target="_blank">yurj@alfa.it</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Il 07/10/2013 11:35, Derek Lawrie ha scritto:<br>
<div class="im">&gt;<br>
&gt;<br>
&gt; I was just doing a simple test on the length of an array and when I<br>
&gt; run &#39;bin/generate_static&#39; against my repository I get this:<br>
&gt;<br>
&gt;     Failed to parse XML file:<br>
&gt;     /usr/share/eprints3/archives/myrepos/cfg/templates/default.xml:<br>
&gt;     Entity: line 9: parser error : StartTag: invalid element name<br>
&gt;           if(jQuery(&#39;#ep_tm_menu_tools li&#39;).length &lt; 2){<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div>default.xml must be an xml file. You&#39;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><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>----------------------<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<br><br></div>Digital Heritage 2013 - Workshops chair<br><a href="http://www.digitalheritage2013.org/" target="_blank">http://www.digitalheritage2013.org/</a></div>
</div>