add importMetadata

This commit is contained in:
j 2016-08-09 16:04:39 +02:00
parent 9ee722aa6e
commit b28087d8e7
1 changed files with 15 additions and 0 deletions

View File

@ -55,6 +55,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"canEditUsers": {"admin": true},
"canExportAnnotations": {"member": true, "staff": true, "admin": true},
"canImportAnnotations": {"member": true, "staff": true, "admin": true},
"canImportItems": {"member": true, "staff": true, "admin": true},
"canManageDocuments": {"member": true, "staff": true, "admin": true},
"canManageEntities": {"member": true, "staff": true, "admin": true},
"canManagePlacesAndEvents": {"member": true, "staff": true, "admin": true},
@ -153,6 +154,20 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
{"id": "embeds", "title": "Embeds"}
],
/*
"importMetadata" defines what fields (as defined in "itemKeys") will get
populated with imported metadata. There is metadata for "title",
"description", "uploader", "date", "tags", "id", "url", and the value must
be a format string (like "{title} ({id})"). The type of the itemKeys must
be "string", ["string"], "text", "date" or "year". The last two only work
with "{date}".
*/
"importMetadata": {
"date": "{date}",
"topic": "{tags}",
"summary": "{description}",
"title": "{title}"
},
/*
"itemKeys" defines the metadata associated with each item. Required keys
are "*", "id" and "title". Annotation layers can be referenced too, which
makes them available in the find element. Adding a key with "annotations"