VisualDataSchema:Article: Difference between revisions
Appearance
	
	
| No edit summary | No edit summary | ||
| (33 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
| { | { | ||
| 	"wiki": { | |||
| 		"type": "schema", | |||
| 		"uuid": "660c1eb9a1d8d", | |||
| 		"name": "Article" | |||
| 	}, | |||
| 	"properties": { | |||
| 		"title": { | |||
| 			"wiki": { | |||
| 				"name": "title", | |||
| 				"type": "property", | |||
| 				"multiple-items": false, | |||
| 				"required": true, | |||
| 				"label": "Title", | |||
| 				"label-parsed": "Title", | |||
| 				"visibility": "visible", | |||
| 				"preferred-input": "OO.ui.TextInputWidget", | |||
| 				"input-config": [], | |||
| 				"uuid": "660c1eb9a1d90" | |||
| 			}, | |||
| 			"type": "string", | |||
| 			"format": "text", | |||
| 			"title": "Title" | |||
| 		}, | |||
| 		"authors": { | |||
| 			"wiki": { | |||
| 				"name": "authors", | |||
| 				"min-items": 1, | |||
| 				"unique-items": false, | |||
| 				"type": "schema", | |||
| 				"uuid": "67cc0413acd18" | |||
| 			}, | |||
| 			"items": { | |||
| 				"type": "string", | |||
| 				"wiki": { | |||
| 					"name": "author", | |||
| 					"type": "property", | |||
| 					"multiple-items": true, | |||
| 					"label": "Author", | |||
| 					"help-message": "Can be multiple authors, created through the [[Add person]] form", | |||
| 					"default": [], | |||
| 					"uuid": "67cc03eb7ca75", | |||
| 					"visibility": "visible", | |||
| 					"preferred-input": "MenuTagSearchMultiselect", | |||
| 					"input-config": [], | |||
| 					"options-query": "[[first_name::\u003Cvalue\u003E~||last_name::\u003Cvalue\u003E~]]", | |||
| 					"query-schema": "Person", | |||
| 					"query-printouts": [ | |||
| 						"name" | |||
| 					], | |||
| 					"required": false, | |||
| 					"layout": "table" | |||
| 				}, | |||
| 				"format": "text", | |||
| 				"title": "Author", | |||
| 				"description": "Can be multiple authors, created through the \u003Ca href=\"/wiki/Add_person\" title=\"Add person\"\u003EAdd person\u003C/a\u003E form", | |||
| 				"default": [] | |||
| 			}, | |||
| 			"type": "array", | |||
| 			"minItems": 1, | |||
| 			"uniqueItems": false | |||
| 		}, | |||
| 		"date": { | |||
| 			"wiki": { | |||
| 				"name": "date", | |||
| 				"type": "property", | |||
| 				"multiple-items": false, | |||
| 				"label": "Date", | |||
| 				"label-parsed": "Date", | |||
| 				"visibility": "visible", | |||
| 				"preferred-input": "mw.widgets.DateInputWidget", | |||
| 				"input-config": [], | |||
| 				"required": false, | |||
| 				"uuid": "660c1eb9a1d98" | |||
| 			}, | |||
| 			"type": "string", | |||
| 			"format": "date", | |||
| 			"title": "Date" | |||
| 		}, | |||
| 		"abstract": { | |||
| 			"wiki": { | |||
| 				"name": "abstract", | |||
| 				"type": "property", | |||
| 				"multiple-items": false, | |||
| 				"label": "Abstract", | |||
| 				"uuid": "660c1eb9a1d9a", | |||
| 				"visibility": "visible", | |||
| 				"preferred-input": "OO.ui.MultilineTextInputWidget", | |||
| 				"input-config": [], | |||
| 				"required": false | |||
| 			}, | |||
| 			"type": "string", | |||
| 			"format": "textarea", | |||
| 			"title": "Abstract" | |||
| 		}, | |||
| 		"role": { | |||
| 			"wiki": { | |||
| 				"name": "role", | |||
| 				"type": "property", | |||
| 				"multiple-items": false, | |||
| 				"label": "Role", | |||
| 				"options-allow-null": true, | |||
| 				"label-parsed": "Role", | |||
| 				"visibility": "visible", | |||
| 				"preferred-input": "OO.ui.DropdownInputWidget", | |||
| 				"input-config": [], | |||
| 				"required": false, | |||
| 				"options-values-parsed": { | |||
| 					"": "", | |||
| 					"volunteer": "volunteer", | |||
| 					"project coordinator": "project coordinator", | |||
| 					"partecipant": "partecipant", | |||
| 					"other": "other" | |||
| 				}, | |||
| 				"uuid": "660c1eb9a1d9e" | |||
| 			}, | |||
| 			"type": "string", | |||
| 			"format": "text", | |||
| 			"title": "Role", | |||
| 			"enum": [ | |||
| 				"", | |||
| 				"volunteer", | |||
| 				"project coordinator", | |||
| 				"partecipant", | |||
| 				"other" | |||
| 			] | |||
| 		}, | |||
| 		"image": { | |||
| 			"wiki": { | |||
| 				"name": "image", | |||
| 				"type": "property", | |||
| 				"multiple-items": false, | |||
| 				"input-config": { | |||
| 					"namespace": 6 | |||
| 				}, | |||
| 				"label": "Image", | |||
| 				"uuid": "66100061f3eec", | |||
| 				"visibility": "visible", | |||
| 				"preferred-input": "mw.widgets.TitleInputWidget", | |||
| 				"required": false | |||
| 			}, | |||
| 			"type": "string", | |||
| 			"format": "text", | |||
| 			"title": "Image" | |||
| 		}, | |||
| 		"organization": { | |||
| 			"wiki": { | |||
| 				"type": "property", | |||
| 				"uuid": "67cc68d1ebbed", | |||
| 				"name": "organization", | |||
| 				"visibility": "visible", | |||
| 				"label": "organization", | |||
| 				"multiple-items": false, | |||
| 				"preferred-input": "LookupElement", | |||
| 				"input-config": [], | |||
| 				"options-query": "[[name::~\u003Cvalue\u003E~]]", | |||
| 				"query-schema": "Organization", | |||
| 				"query-printouts": [ | |||
| 					"name" | |||
| 				], | |||
| 				"required": false | |||
| 			}, | |||
| 			"type": "string", | |||
| 			"format": "text", | |||
| 			"title": "organization" | |||
| 		}, | |||
| 		"project": { | |||
| 			"wiki": { | |||
| 				"type": "property", | |||
| 				"uuid": "67c9caa1575f2", | |||
| 				"name": "project", | |||
| 				"visibility": "visible", | |||
| 				"label": "project", | |||
| 				"help-message": "select a project associated to the article...", | |||
| 				"multiple-items": false, | |||
| 				"preferred-input": "OO.ui.DropdownInputWidget", | |||
| 				"input-config": [], | |||
| 				"options-allow-null": false, | |||
| 				"options-query": "[[organization::\u003Corganization\u003E]][[project_number::+]]", | |||
| 				"query-schema": "Project", | |||
| 				"query-printouts": [ | |||
| 					"project_number" | |||
| 				], | |||
| 				"required": false | |||
| 			}, | |||
| 			"type": "string", | |||
| 			"format": "text", | |||
| 			"title": "project", | |||
| 			"description": "select a project associated to the article...", | |||
| 			"enum": [ | |||
| 				"2024-1-IT03-ESC51-VTJ-000227786", | |||
| 				"2023-2-IT03-ESC51-VTJ-000169977", | |||
| 				"2023-1-IT03-ESC51-VTJ-000139142" | |||
| 			] | |||
| 		} | |||
| 	}, | |||
| 	"required": [ | |||
| 		"title" | |||
| 	], | |||
| 	"type": "object" | |||
| } | } | ||
Latest revision as of 15:55, 11 June 2025
| wiki | 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| properties | 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| required | 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | "object" |