From b59a9c3122702dba481392a7a7e721610324c44c Mon Sep 17 00:00:00 2001 From: j Date: Tue, 9 Aug 2016 15:58:48 +0200 Subject: [PATCH] set canImportItems in config.*.jsonc --- pandora/config.0xdb.jsonc | 13 +++++++++++++ pandora/config.indiancinema.jsonc | 14 ++++++++++++++ pandora/config.padma.jsonc | 9 +++++++++ 3 files changed, 36 insertions(+) diff --git a/pandora/config.0xdb.jsonc b/pandora/config.0xdb.jsonc index 621e00471..da5140f2f 100644 --- a/pandora/config.0xdb.jsonc +++ b/pandora/config.0xdb.jsonc @@ -51,6 +51,7 @@ "canEditUsers": {"admin": true}, "canExportAnnotations": {"friend": true, "staff": true, "admin": true}, "canImportAnnotations": {"staff": true, "admin": true}, + "canImportItems": {}, "canManageDocuments": {"staff": true, "admin": true}, "canManageEntities": {"staff": true, "admin": true}, "canManagePlacesAndEvents": {"staff": true, "admin": true}, @@ -132,6 +133,18 @@ {"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": { + "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" diff --git a/pandora/config.indiancinema.jsonc b/pandora/config.indiancinema.jsonc index 3ca4de2ec..0fc624a9f 100644 --- a/pandora/config.indiancinema.jsonc +++ b/pandora/config.indiancinema.jsonc @@ -52,6 +52,8 @@ "canEditUsers": {"staff": true, "admin": true}, "canExportAnnotations": {"member": true, "researcher": true, "staff": true, "admin": true}, "canImportAnnotations": {"researcher": true, "staff": true, "admin": true}, + // import needs to handle itemRequiresVideo=false first + "canImportItems": {}, "canManageDocuments": {"member": true, "researcher": true, "staff": true, "admin": true}, "canManageEntities": {"member": true, "researcher": true, "staff": true, "admin": true}, "canManagePlacesAndEvents": {"member": true, "researcher": true, "staff": true, "admin": true}, @@ -137,6 +139,18 @@ {"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": { + "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" diff --git a/pandora/config.padma.jsonc b/pandora/config.padma.jsonc index 0b55196fd..7825e33c3 100644 --- a/pandora/config.padma.jsonc +++ b/pandora/config.padma.jsonc @@ -51,6 +51,7 @@ "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}, @@ -135,6 +136,14 @@ {"id": "texts", "title": "Texts"}, {"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}",