diff --git a/invenio_previewer/extensions/pdfjs.py b/invenio_previewer/extensions/pdfjs.py index 34a5591..a7119be 100644 --- a/invenio_previewer/extensions/pdfjs.py +++ b/invenio_previewer/extensions/pdfjs.py @@ -27,5 +27,5 @@ def preview(file): file=file, html_tags='dir="ltr" mozdisallowselectionprint moznomarginboxes', css_bundles=["pdfjs_css.css"], - js_bundles=["fullscreen_js.js", "open_pdf.js"], + js_bundles=current_previewer.js_bundles + ["open_pdf.js", "fullscreen_js.js"], ) diff --git a/invenio_previewer/templates/semantic-ui/invenio_previewer/pdfjs.html b/invenio_previewer/templates/semantic-ui/invenio_previewer/pdfjs.html index 746f2d5..80efe98 100644 --- a/invenio_previewer/templates/semantic-ui/invenio_previewer/pdfjs.html +++ b/invenio_previewer/templates/semantic-ui/invenio_previewer/pdfjs.html @@ -18,7 +18,6 @@ {{ super() }} - {%- endblock %} diff --git a/invenio_previewer/webpack.py b/invenio_previewer/webpack.py index d6e9942..3594848 100644 --- a/invenio_previewer/webpack.py +++ b/invenio_previewer/webpack.py @@ -67,9 +67,9 @@ "prism_css": "./scss/invenio_previewer/prismjs.scss", "open_pdf": "./js/invenio_previewer/open_pdf.js", "bottom_js": "./js/invenio_previewer/bottom.js", + "pdfjs_css": "./css/invenio_previewer/pdfjs/viewer.css", "zip_css": "./scss/invenio_previewer/zip.scss", "bottom_css": "./scss/invenio_previewer/bottom.scss", - "pdfjs_css": "./css/invenio_previewer/pdfjs/viewer.css", "simple_image_css": "./scss/invenio_previewer/simple_image.scss", "txt_css": "./scss/invenio_previewer/txt.scss", "videojs_js": "./node_modules/video.js/dist/video.min.js",