diff --git a/themes/bootstrap3/js/embedded_record.js b/themes/bootstrap3/js/embedded_record.js index 20633b0dbfd739b9dc9cb9f176e4c19f8461cbcd..2040a5c1d9ef0642d369162f1e953a57f7ce7c1d 100644 --- a/themes/bootstrap3/js/embedded_record.js +++ b/themes/bootstrap3/js/embedded_record.js @@ -67,7 +67,6 @@ VuFind.register('embedded', function embedded() { function ajaxLoadTab(tabid, _click) { var click = _click || false; var $tab = $('#' + tabid); - console.log($tab); var $result = $tab.closest('.result'); if ($result.length === 0) { return true; diff --git a/themes/bootstrap3/js/preview.js b/themes/bootstrap3/js/preview.js index 1d9c0b716d0f73cca668b793d623f27b7f10910e..779047ac1ae4a64f83db51e9bcdbc7dbce489192 100644 --- a/themes/bootstrap3/js/preview.js +++ b/themes/bootstrap3/js/preview.js @@ -48,10 +48,10 @@ function applyPreviewUrl($link, url) { function processBookInfo(booksInfo, previewClass, viewOptions) { for (var bibkey in booksInfo) { - if (bookInfo[bibkey]) { - if (viewOptions.indexOf(bookInfo[bibkey].preview) >= 0) { + if (booksInfo[bibkey]) { + if (viewOptions.indexOf(booksInfo[bibkey].preview) >= 0) { applyPreviewUrl( - $('.' + previewClass + '.' + bibkey), bookInfo[bibkey].preview_url + $('.' + previewClass + '.' + bibkey), booksInfo[bibkey].preview_url ); } } @@ -66,9 +66,9 @@ function processGBSBookInfo(booksInfo) { if (viewOptions.tab && viewOptions.tab.length > 0) { // check for "embeddable: true" in bookinfo for (var bibkey in booksInfo) { - if (bookInfo[bibkey]) { - if (viewOptions.tab.indexOf(bookInfo[bibkey].preview) >= 0 - && (bookInfo[bibkey].embeddable)) { + if (booksInfo[bibkey]) { + if (viewOptions.tab.indexOf(booksInfo[bibkey].preview) >= 0 + && (booksInfo[bibkey].embeddable)) { // make tab visible $('ul.nav-tabs li.hidden a.preview').parent().removeClass('hidden'); }