[EP-tech] Re: Custom javascript

John Salter J.Salter at leeds.ac.uk
Mon Oct 7 12:22:31 BST 2013

+1 :o)
I've been pondering this - anyone fancy a 'what's in EPrints Javascript and can we hack it into jQuery' day sometime?

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 '90_local.js' file in there you can add to as well.


From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Denis Pitzalis
Sent: 07 October 2013 12:02
To: Eprints Tech Mailing List
Subject: [EP-tech] Re: Custom javascript

Hei Seb, is there any plan to move to jQuery one day?


On Mon, Oct 7, 2013 at 11:49 AM, Yuri <yurj at alfa.it<mailto:yurj at alfa.it>> wrote:
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.
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

Denis Pitzalis, PhD
Web Lead Developer

UNESCO - http://www.unesco.org
Paris, France - Tel: +33145681816
Digital Heritage 2013 - Workshops chair
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20131007/d24e0654/attachment.html 

More information about the Eprints-tech mailing list