mirror of
https://gitlab.com/comenius-institut/foerbico/metadata-form.git
synced 2025-12-07 23:34:31 +00:00
adjustments for compliance with schema.org validator
Ref https://gitlab.com/oersi/metadata-form/-/issues/6
This commit is contained in:
parent
7454bb9431
commit
c39aead268
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue