diff --git a/themes/bootstrap3/js/openurl.js b/themes/bootstrap3/js/openurl.js index 28cd7ae7a8fe0f7df9067ba00774b1b0dad26068..16a707844e365581c6e34555fcdb85a250c71997 100644 --- a/themes/bootstrap3/js/openurl.js +++ b/themes/bootstrap3/js/openurl.js @@ -17,7 +17,7 @@ VuFind.register('openurl', function() { }); }; - var _embedOpenUrlLinks = function(element) { + var embedOpenUrlLinks = function(element) { // Extract the OpenURL associated with the clicked element: var openUrl = element.children('span.openUrl:first').attr('title'); @@ -53,11 +53,14 @@ VuFind.register('openurl', function() { // assign action to the openUrlEmbed link class container.find('.openUrlEmbed a').unbind('click').click(function() { - _embedOpenUrlLinks($(this)); + embedOpenUrlLinks($(this)); return false; }); container.find('.openUrlEmbed.openUrlEmbedAutoLoad a').trigger('click'); }; - return {init: init}; + return { + init: init, + embedOpenUrlLinks: embedOpenUrlLinks + }; });