Skip to content
Snippets Groups Projects
Commit 872672a8 authored by Demian Katz's avatar Demian Katz
Browse files

Bug fix.

parent b822fa08
No related merge requests found
......@@ -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 />');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment