From: <in...@fl...> - 2014-07-21 08:57:22
|
I am preparing an upgrade from the Vufind 1.x trunk to the upcoming 2.3 version. Most of the changes that needed code tweaks are now available through configurations files! Thanks for all your great work in the last years! Is it possible to load an embedded linkresolver onload instead of onclick in result-list.phtml and core.phtml? I found this code in openurl.js $(document).ready(function() { // assign action to the openUrlWindow link class $('a.openUrlWindow').click(function(){ var params = extractParams($(this).attr('class')); var settings = params.window_settings; window.open($(this).attr('href'), 'openurl', settings); return false; }); // assign action to the openUrlEmbed link class $('a.openUrlEmbed').click(function(){ var params = extractParams($(this).attr('class')); var openUrl = $(this).children('span.openUrl:first').attr('title'); $(this).hide(); loadResolverLinks($('#openUrlEmbed'+params.openurl_id).show(), openUrl); return false; }); }); Thanks for any pointers to tweak this JQuery code! Markus Fischer |