Commit e88eae0b authored by Diegodlh's avatar Diegodlh
Browse files

Merge branch 'main' into dev

parents ae27c739 cb568f54
......@@ -27,14 +27,222 @@
"items": {
"title": "Template field",
"oneOf": [
{ "$ref": "#/definitions/fields/itemType" },
{ "$ref": "#/definitions/fields/title"},
{ "$ref": "#/definitions/fields/authorLast"},
{ "$ref": "#/definitions/fields/authorFirst"},
{ "$ref": "#/definitions/fields/date"},
{ "$ref": "#/definitions/fields/publishedIn"},
{ "$ref": "#/definitions/fields/publishedBy"},
{ "$ref": "#/definitions/fields/control"}
{
"title": "Item type field (mandatory)",
"description": "Type of the cited resource | Valid output: one of the Citoid/Zotero supported types (see https://aurimasv.github.io/z2csl/typeMap.xml)",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["itemType"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
{
"title": "Title field (mandatory)",
"description": "Title of the cited resource | Valid output: a single non-empty string",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["title"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
{
"title": "Author last names field",
"description": "Authors' last or full names | Valid output: one or more non-empty strings",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["authorLast"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
{
"title": "Author first names field",
"description": "Authors' first names | Valid output: one or more empty or non-empty strings",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["authorFirst"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
{
"title": "Date field",
"description": "Publishing date | Valid output: a single yyyy-mm-dd, yyyy-mm or yyyy value",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["date"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
{
"title": "Published in field",
"description": "Work containing the cited resource | Valid output: a single non-empty string",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["publishedIn"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
{
"title": "Published by field",
"description": "Publisher of the cited resource | Valid output: a single non-empty string",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["publishedBy"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
{
"title": "Language field",
"description": "Publishing language | Valid output: a single xx or xx-xx* language code",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["language"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
{
"title": "Control field",
"description": "Template applicability control | Valid output: a single non-empty string",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["control"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
}
]
}
}
......@@ -341,224 +549,6 @@
"description": "Whether transformation should be applied to each item of the input independently",
"options": { "infoText": "true: apply transformation to each item of the input independently; false: apply transformation to the entire input as a whole." },
"type": "boolean"
},
"fields": {
"itemType": {
"title": "Item type field (mandatory)",
"description": "Type of the cited resource | Valid output: one of the Citoid/Zotero supported types (see https://aurimasv.github.io/z2csl/typeMap.xml)",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["itemType"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
"title": {
"title": "Title field (mandatory)",
"description": "Title of the cited resource | Valid output: a single non-empty string",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["title"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
"authorLast": {
"title": "Author last names field",
"description": "Authors' last or full names | Valid output: one or more non-empty strings",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["authorLast"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
"authorFirst": {
"title": "Author first names field",
"description": "Authors' first names | Valid output: one or more empty or non-empty strings",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["authorFirst"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
"date": {
"title": "Date field",
"description": "Publishing date | Valid output: a single yyyy-mm-dd, yyyy-mm or yyyy value",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["date"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
"publishedIn": {
"title": "Published in field",
"description": "Work containing the cited resource | Valid output: a single non-empty string",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["publishedIn"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
"publishedBy": {
"title": "Published by field",
"description": "Publisher of the cited resource | Valid output: a single non-empty string",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["publishedBy"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
"language": {
"title": "Language field",
"description": "Publishing language | Valid output: a single xx or xx-xx* language code",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["language"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
},
"control": {
"title": "Control field",
"description": "Template applicability control | Valid output: a single non-empty string",
"type": "object",
"properties": {
"fieldname": {
"title": "Field name",
"type": "string",
"enum": ["control"],
"options": { "hidden": true }
},
"required": {
"$ref": "#/definitions/required"
},
"procedures": {
"$ref": "#/definitions/procedures"
}
},
"required": [
"fieldname",
"required",
"procedures"
]
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment