Live notes, so an incomplete, partial record of what actually happened.
Tags: acbookweek
My asides in {}
Stream/Deck:
jQuery(document).ready(function($) { | |
var ezProxyBase = 'http://ezproxy.sussex.ac.uk/login?qurl='; | |
if (location.href.search(/\/items\//)!= -1 ) | |
{ | |
$("#mainResourceDetails tr#doi td span.fieldValue a").each(function() { | |
var doiLink = $(this).attr("href").replace(/\/link\?url=/,''); // get the uri encoded doi link - this will be the url param of the actual link, so chop off that bit. | |
var newLink = ezProxyBase + doiLink; // create the new location by prepending the ezProxyBase | |
$(this).attr("href","/link?url="+encodeURIComponent(newLink)); | |
}); | |
} |