<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"><<a href="mailto:yurj@alfa.it" target="_blank">yurj@alfa.it</a>></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">><br>
><br>
> I was just doing a simple test on the length of an array and when I<br>
> run 'bin/generate_static' against my repository I get this:<br>
><br>
> Failed to parse XML file:<br>
> /usr/share/eprints3/archives/myrepos/cfg/templates/default.xml:<br>
> Entity: line 9: parser error : StartTag: invalid element name<br>
> if(jQuery('#ep_tm_menu_tools li').length < 2){<br>
><br>
><br>
><br>
<br>
</div>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><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>