forked from gdcc/dataverse-previewers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed not working elements from RO-Crate lib
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -421,7 +421,7 @@ copied from https://unpkg.com/[email protected]/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 += `<a href="${path}">${view}</a>`; | ||
|
@@ -484,13 +484,13 @@ copied from https://unpkg.com/[email protected]/dist/ro-crate-dynamic.js ( | |
previews += `<iframe src='${p}' width='100%' height='500'></iframe>`; | ||
} else if (p.match(/(\.mp3)|(\.ogg?)|(\.wav)$/i)){ | ||
previews += `<audio controls><source src='${p}'/></audio>`; | ||
} else if (p.match(/(\.jpe?g)|(\.png)$/i)){ | ||
} /*else if (p.match(/(\.jpe?g)|(\.png)$/i)){ | ||
previews += `<img width='100%' style='object-fit: contain' src='${p}'/>`; | ||
} | ||
else if (p.match(/pdf$/i)){ | ||
previews += `<embed src="${p}" type="application/pdf" width="100%" height="600px" />`; | ||
|
||
} | ||
} */ | ||
} | ||
return previews; | ||
} | ||
|