EPrints Technical Mailing List Archive

Message: #02235


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Custom javascript


Il 07/10/2013 11:35, Derek Lawrie ha scritto:


I was just doing a simple test on the length of an array and when I run 'bin/generate_static' against my repository I get this:

    Failed to parse XML file:
    /usr/share/eprints3/archives/myrepos/cfg/templates/default.xml:
    Entity: line 9: parser error : StartTag: invalid element name
          if(jQuery('#ep_tm_menu_tools li').length < 2){




default.xml must be an xml file. You've to embed your code as xml, I think using CDATA should works. Check examples on the web, or put the js as an external file and load it from the template as you did already before.