diff --git a/themes/bootstrap3/js/doi.js b/themes/bootstrap3/js/doi.js index 98287f28612311f5a013d0cf461c3a6a016e14d7..6c91efe2401712fe2eaca07c7bc98d7aed18762b 100644 --- a/themes/bootstrap3/js/doi.js +++ b/themes/bootstrap3/js/doi.js @@ -24,7 +24,7 @@ VuFind.register('doi', function Doi() { .done(function embedDoiLinksDone(response) { elements.each(function populateDoiLinks(x, doiEl) { var currentDoi = $(doiEl).data('doi'); - if ("undefined" !== response.data[currentDoi]) { + if ("undefined" !== typeof response.data[currentDoi]) { $(doiEl).empty(); for (var i = 0; i < response.data[currentDoi].length; i++) { var newLink = $('<a />');