diff --git a/pandora/config.0xdb.jsonc b/pandora/config.0xdb.jsonc index 621e0047..da5140f2 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 3ca4de2e..0fc624a9 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 0b55196f..7825e33c 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}",