EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #07548
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] JavaScript & JQuery on EPrints
- To: <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] JavaScript & JQuery on EPrints
- From: James Kerwin <jkerwin2101@gmail.com>
- Date: Thu, 1 Nov 2018 14:38:58 +0000
Hi all,
This isn't exclusively an EPrints problem, but it's possible some of you may have experienced similar.
I'm putting some new institutional headers on the test repository and I have a problem with the JQuery line of code (src="" href="https://emea01.safelinks.protection.outlook.com/?url="" originalSrc="http://www.liverpool.ac.uk/files/js/common-scripts/jquery/jquery-3.1.0.min.js" shash="hKtVNBKI7qEzMb0uJhmy4jLeQg8gBhpJm/oB+4lr3lBYrDNp/LlWDxPjylekHnFrwLIAKoTW9OOvQjQaOLvCBDXfwXto+LMlTZDlPyxhASUO22JVbgOqEjM1VBWXioFuLycFg6vCYF3t4N3U3EJKrYG1fehpkGvpC1YqqQIKLCU=">www.liverpool.ac.uk/files/js/common-scripts/jquery/jquery-3.1.0.min.js") and the eprints "epc:pin ref="head"" element. Both of these were in the previous layout of the ../[ARCHIVE_ID/cfg/templatesdefault.xml file.
If I put the eprints pin before the JQuery call, the eprints JS is ignored. The small drop down "+" does nothing when clicked and so some parts of EPrints can't become visible to the user. If the pin is placed after the JQuery call, the headers aren't dynamic and can't be expanded etc.
Frustratingly, if I remove all references to _javascript_ in the file except for the eprints pin and the jquery call, it still behaves in the same way. People have suggested that it may be a clash between function/variable names, but I can't see where this clash could be. If I revert to the previous file, everything works as expected (headers and dropdowns despite the exact same files being called in the same order).
Has anybody experienced anything like this?
Thanks,
James
- Follow-Ups:
- [EP-tech] JavaScript & JQuery on EPrints
- From: James Kerwin <jkerwin2101@gmail.com>
- [EP-tech] JavaScript & JQuery on EPrints
- References:
- [EP-tech] JavaScript & JQuery on EPrints
- From: James Kerwin <jkerwin2101@gmail.com>
- [EP-tech] JavaScript & JQuery on EPrints
- Prev by Date: Re: [EP-tech] allow_oa change in Eprints 3.16
- Next by Date: Re: [EP-tech] JavaScript & JQuery on EPrints
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):