adjustments for compliance with schema.org validator

Ref https://gitlab.com/oersi/metadata-form/-/issues/6
This commit is contained in:
Mirjan Hoffmann 2023-11-23 07:12:56 +01:00
parent 7454bb9431
commit c39aead268

View file

@ -684,11 +684,12 @@
const identifier = document.getElementById("inputUrl").value;
const datePublished = $("#datepicker1").datepicker("getDate");
let meta = {
"@context": "schema.org",
creativeWorkStatus: document.getElementById("inputStatus").value,
type: "LearningResource",
name: document.getElementById("inputTitle").value,
description: document.getElementById("inputDescription").value,
license: {id: document.getElementById("licenseUrl").value}
license: document.getElementById("licenseUrl").value
}
if (identifier) {
meta.id = identifier;