mirror of
https://gitlab.com/comenius-institut/foerbico/metadata-form.git
synced 2025-12-07 23:34:31 +00:00
Merge branch 'schema-org-validator-adjustments' into 'master'
adjustments for compliance with schema.org validator See merge request oersi/metadata-form!8
This commit is contained in:
commit
84df936a5c
1 changed files with 2 additions and 1 deletions
|
|
@ -699,11 +699,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