<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>EPrints uses a library called prototype.js which clashes the function name "$".
<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.jquery.com%2Fusing-jquery-core%2Favoid-conflicts-other-libraries%2F&data=01%7C01%7C%7Cd1886dd1ee7a453da39408d640103a03%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=2nWWLOrBVDo1ETYbstBu8FWeoRV5PRV6FZWv%2FUBdis4%3D&reserved=0" originalsrc="https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/" shash="U13cRMOpi7w4ScF7+mkRk7Sx3XanD4MUfp/8nVrtTxo9IntOlwHVZC4NDjIX4/2ucsLSm2we39gJA2DzAGv4U4ooizZj0+FVfLGZnVtHRUE/Zlq6yJRS1WtegbSejpkaLuXVfOo1cv01psq2WPebsZowyO0aCKxKbXpRX07afKM=">https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/</a><br>
</p>
<br>
<div class="moz-cite-prefix">On 01/11/2018 14:38, James Kerwin via Eprints-tech wrote:<br>
</div>
<blockquote type="cite" cite="mid:EMEW3|79d51eff8b0283772ce89ba02526972fuA0EeK14eprints-tech-bounces|ecs.soton.ac.uk|CAKkNZ9AObMYz083twNFHOgycS9vL5KVdN=4uLf2fZbGHLfp5Cw@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>This isn't exclusively an EPrints problem, but it's possible some of you may have experienced similar.</div>
<div><br>
</div>
<div>I'm putting some new institutional headers on the test repository and I have a problem with the JQuery line of code (src="//<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.liverpool.ac.uk%2Ffiles%2Fjs%2Fcommon-scripts%2Fjquery%2Fjquery-3.1.0.min.js&data=01%7C01%7C%7Cd1886dd1ee7a453da39408d640103a03%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=4CL71yvDWE8YqaditVp6nAuE8028C%2FdRTcjceXL8DwE%3D&reserved=0" originalsrc="http://www.liverpool.ac.uk/files/js/common-scripts/jquery/jquery-3.1.0.min.js" shash="JQyMrxnHzZUbHn8APq9tTgxpCcjZ4sJsqMG7DZ4hehNkEQ1qcWclB7L6vBWvIEDCTMv/jjsOhDlppac84iEW5Flm5sXqWyd0fuRDgA+M20G0+INjM12HBNyN8aAILz3/Fa30CRlKYE9qJYbZsAIVxi6g4k/h3nSA6i2oU5wS/7k=" originalsrc="http://www.liverpool.ac.uk/files/js/common-scripts/jquery/jquery-3.1.0.min.js" shash="kCMUHGXSo3jgDzTj4WK6RqIWA5e6f1OhUCtqP/lxzSSxiZQW/0b6pSbJiX4beolphoPrnAv8sCCJ+DtRjK3gKtcsl9BKfxkXlwcflQDrCMIuDeKdwG/xPSk5q+1Ryvg8TfLR92g8lvC1XnVr9URFJ02pqEH13nXuQZZWeJN//Qc=" moz-do-not-send="true">www.liverpool.ac.uk/files/js/common-scripts/jquery/jquery-3.1.0.min.js</a>")
and the eprints "epc:pin ref="head"" element. Both of these were in the previous layout of the ../[ARCHIVE_ID/cfg/templatesdefault.xml file.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>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).</div>
<div><br>
</div>
<div>Has anybody experienced anything like this?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>James</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7C%7Cd1886dd1ee7a453da39408d640103a03%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=a53LbY500NcSnoqcLsVoel%2BvN9tlBJd7jpjQEaBMAS0%3D&reserved=0" originalsrc="http://www.eprints.org/tech.php/" shash="uEtLmHwsdtwA6s1pohvXMvqVzn2Vlz+FgRO3ICJWzpl5bbfOoTU2bZlSDBgklukKHrdE8P3rZb1BMggDJ3oSPqNWjMmCyXZ6YgdeW2YOSel1VaF0Tj3WoTqoLdStt93ggn608QaJW0CCf7VW/dcNWbex/O1KjAa8iljzd1aMCKw=">https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7C%7C6833a158e67e4440f9d308d64007eed8%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=ILYlxtesY9NfJMF0XoabBeBtSakPU8RMwUosk7Uu90o%3D&amp;reserved=0</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7C%7Cd1886dd1ee7a453da39408d640103a03%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=aNjFChnrqVCnxxxjFyCGgti8gE0GUHhBi1yjqX0bB5M%3D&reserved=0" originalsrc="http://wiki.eprints.org/" shash="TNP5G6/6a/p/yI9EDGVL8sH7Ew2KIc8MXR3KNpEySvw4T7G6/w2tEOJWUhFYydQ/KmjnubcRXUas4nORKcVZt2V6l90Nf73FmeOzvLvDCjCItoJW7LkWw7U423vOJ68yX5C/XTvpHORCvSBFf/Mn9+aR0gBsMUAaXnRKacIeVG8=">https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7C%7C6833a158e67e4440f9d308d64007eed8%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=DAJsWQte52XW394XelRgkMMjfLvdr0ylP2Q3TUKozSY%3D&amp;reserved=0</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7C%7Cd1886dd1ee7a453da39408d640103a03%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=RCY%2FcWYGGxzzXaG9floeqaUydo04kbXVwT7%2FF6GyTi8%3D&reserved=0" originalsrc="http://forum.eprints.org/" shash="HnE9+EhDMyt26RsKfiBsZI+nnHUEDiydZvrqLR72Ar6NbiMpLOPBOXNNakEx/ssD9Go/yehKiLgQmFtjVwMPg5gfoDfZ8rXgivgul/kkJWT2+BI66XN5mASgeudLDsPcWHW0frkh75gqY3hefMh3On4WZV8DuTuIEgjHR01R2dQ=">https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7C%7C6833a158e67e4440f9d308d64007eed8%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=IaQpbqXxadGGkioFCN3SzI%2Be%2FsScLMVxxN1HRo7hQy4%3D&amp;reserved=0</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Christopher Gutteridge <a class="moz-txt-link-rfc2396E" href="mailto:totl@soton.ac.uk"><totl@soton.ac.uk></a>
You should read our team blog at <a class="moz-txt-link-freetext" href="http://blog.soton.ac.uk/webteam/">http://blog.soton.ac.uk/webteam/</a></pre>
</body>
</html>