From 5ee5aa2add89285a5445d931c3098344466410d9 Mon Sep 17 00:00:00 2001 From: Eryk Kulikowski Date: Fri, 13 Oct 2023 18:29:08 +0200 Subject: [PATCH] removed not working elements from RO-Crate lib --- previewers/betatest/js/ro-crate-dynamic.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/previewers/betatest/js/ro-crate-dynamic.js b/previewers/betatest/js/ro-crate-dynamic.js index 01cb758..8fbff05 100644 --- a/previewers/betatest/js/ro-crate-dynamic.js +++ b/previewers/betatest/js/ro-crate-dynamic.js @@ -421,7 +421,7 @@ copied from https://unpkg.com/ro-crate-html-js@1.4.19/dist/ro-crate-dynamic.js ( } } } else if ( types.includes("File") || types.includes("ImageObject") || types.includes("MediaObject") || path === "ro-crate-metadata.jsonld"){ - view = "⬇️ Download: "; + //view = "⬇️ Download: "; } if (view){ idLink += `${view}`; @@ -484,13 +484,13 @@ copied from https://unpkg.com/ro-crate-html-js@1.4.19/dist/ro-crate-dynamic.js ( previews += ``; } else if (p.match(/(\.mp3)|(\.ogg?)|(\.wav)$/i)){ previews += ``; - } else if (p.match(/(\.jpe?g)|(\.png)$/i)){ + } /*else if (p.match(/(\.jpe?g)|(\.png)$/i)){ previews += ``; } else if (p.match(/pdf$/i)){ previews += ``; - } + } */ } return previews; }