update config, fix poster
This commit is contained in:
parent
fa9835117c
commit
d1addb6626
2 changed files with 172 additions and 109 deletions
280
config.jsonc
280
config.jsonc
|
@ -38,47 +38,47 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
texts of a rights level up to and including x
|
||||
*/
|
||||
"capabilities": {
|
||||
"canAddItems": {"member": true, "staff": true, "admin": true},
|
||||
"canAddDocuments": {"member": true, "staff": true, "admin": true},
|
||||
"canDownloadVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
||||
"canEditAnnotations": {"staff": true, "admin": true},
|
||||
"canEditDocuments": {"staff": true, "admin": true},
|
||||
"canEditEntities": {"staff": true, "admin": true},
|
||||
"canEditEvents": {"staff": true, "admin": true},
|
||||
"canEditFeaturedCollections": {"staff": true, "admin": true},
|
||||
"canEditFeaturedEdits": {"staff": true, "admin": true},
|
||||
"canEditFeaturedLists": {"staff": true, "admin": true},
|
||||
"canEditFeaturedTexts": {"staff": true, "admin": true},
|
||||
"canEditMedia": {"staff": true, "admin": true},
|
||||
"canEditMetadata": {"staff": true, "admin": true},
|
||||
"canEditPlaces": {"staff": true, "admin": true},
|
||||
"canEditRightsLevel": {"member": true, "staff": true, "admin": true},
|
||||
"canEditSitePages": {"staff": true, "admin": true},
|
||||
"canAddItems": {"member": true, "admin": true},
|
||||
"canAddDocuments": {"member": true, "admin": true},
|
||||
"canDownloadVideo": {"guest": 1, "member": 1, "admin": 1},
|
||||
"canEditAnnotations": {"member": true, "admin": true},
|
||||
"canEditDocuments": {"member": true, "admin": true},
|
||||
"canEditEntities": {"member": true, "admin": true},
|
||||
"canEditEvents": {"member": true, "admin": true},
|
||||
"canEditFeaturedCollections": {"admin": true},
|
||||
"canEditFeaturedEdits": {"admin": true},
|
||||
"canEditFeaturedLists": {"admin": true},
|
||||
"canEditFeaturedTexts": {"admin": true},
|
||||
"canEditMedia": {"member": true, "admin": true},
|
||||
"canEditMetadata": {"member": true, "admin": true},
|
||||
"canEditPlaces": {"member": true, "admin": true},
|
||||
"canEditRightsLevel": {"admin": true},
|
||||
"canEditSitePages": {"admin": true},
|
||||
"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},
|
||||
"canManageHome": {"staff": true, "admin": true},
|
||||
"canManagePlacesAndEvents": {"member": true, "staff": true, "admin": true},
|
||||
"canManageTitlesAndNames": {"member": true, "staff": true, "admin": true},
|
||||
"canManageUsers": {"staff": true, "admin": true},
|
||||
"canPlayClips": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
||||
"canPlayVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
||||
"canReadText": {"guest": 0, "member": 0, "staff": 1, "admin": 1},
|
||||
"canRemoveItems": {"staff": true, "admin": true},
|
||||
"canRemoveDocuments": {"staff": true, "admin": true},
|
||||
"canSeeAccessed": {"staff": true, "admin": true},
|
||||
"canSeeAllTasks": {"staff": true, "admin": true},
|
||||
"canSeeDebugMenu": {"staff": true, "admin": true},
|
||||
"canSeeExtraItemViews": {"staff": true, "admin": true},
|
||||
"canSeeMedia": {"staff": true, "admin": true},
|
||||
"canSeeDocument": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
||||
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
||||
"canSeeSize": {"staff": true, "admin": true},
|
||||
"canSeeSoftwareVersion": {"staff": true, "admin": true},
|
||||
"canSendMail": {"staff": true, "admin": true}
|
||||
"canExportAnnotations": {"member": true, "admin": true},
|
||||
"canImportAnnotations": {"member": true, "admin": true},
|
||||
"canImportItems": {"member": true, "admin": true},
|
||||
"canManageDocuments": {"member": true, "admin": true},
|
||||
"canManageEntities": {"member": true, "admin": true},
|
||||
"canManageHome": {"admin": true},
|
||||
"canManagePlacesAndEvents": {"member": true, "admin": true},
|
||||
"canManageTitlesAndNames": {"member": true, "admin": true},
|
||||
"canManageUsers": {"admin": true},
|
||||
"canPlayClips": {"guest": 1, "member": 1, "admin": 1},
|
||||
"canPlayVideo": {"guest": 1, "member": 1, "admin": 1},
|
||||
"canReadText": {"guest": 1, "member": 1, "admin": 1},
|
||||
"canRemoveItems": {"admin": true},
|
||||
"canRemoveDocuments": {"admin": true},
|
||||
"canSeeAccessed": {"admin": true},
|
||||
"canSeeAllTasks": {"admin": true},
|
||||
"canSeeDebugMenu": {"admin": true},
|
||||
"canSeeExtraItemViews": {"admin": true},
|
||||
"canSeeMedia": {"admin": true},
|
||||
"canSeeDocument": {"guest": 0, "member": 0, "admin": 1},
|
||||
"canSeeItem": {"guest": 0, "member": 0, "admin": 1},
|
||||
"canSeeSize": {"admin": true},
|
||||
"canSeeSoftwareVersion": {"admin": true},
|
||||
"canSendMail": {"admin": true}
|
||||
},
|
||||
/*
|
||||
"clipKeys" are the properties that clips can be sorted by (the values are
|
||||
|
@ -99,7 +99,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
text of clips (in grid view, below the icon). Excluding a layer from this
|
||||
list means it will not be included in find annotations.
|
||||
*/
|
||||
"clipLayers": ["publicnotes", "keywords", "subtitles"],
|
||||
"clipLayers": ["subtitles", "tags", "publicnotes"],
|
||||
/*
|
||||
"documentKeys" defines the metadata associated with each document. Required keys
|
||||
are "*", "id" and "title".
|
||||
|
@ -163,6 +163,28 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"autocomplete": true,
|
||||
"columnWidth": 256
|
||||
},
|
||||
{
|
||||
"id": "work",
|
||||
"operator": "+",
|
||||
"title": "Work",
|
||||
"type": "string",
|
||||
"find": true,
|
||||
"sort": true,
|
||||
"sortType": "title",
|
||||
"autocomplete": true,
|
||||
"columnWidth": 256
|
||||
},
|
||||
{
|
||||
"id": "version",
|
||||
"operator": "+",
|
||||
"title": "Ver",
|
||||
"type": "string",
|
||||
"find": true,
|
||||
"sort": true,
|
||||
"sortType": "title",
|
||||
"autocomplete": true,
|
||||
"columnWidth": 256
|
||||
},
|
||||
{
|
||||
"id": "type",
|
||||
"operator": "+",
|
||||
|
@ -186,6 +208,18 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"autocomplete": true,
|
||||
"columnWidth": 256
|
||||
},
|
||||
{
|
||||
"id": "versionauthor",
|
||||
"operator": "+",
|
||||
"title": "Version Author",
|
||||
"type": ["string"],
|
||||
"filter": true,
|
||||
"find": true,
|
||||
"sort": true,
|
||||
"sortType": "person",
|
||||
"autocomplete": true,
|
||||
"columnWidth": 256
|
||||
},
|
||||
{
|
||||
"id": "publisher",
|
||||
"operator": "+",
|
||||
|
@ -214,21 +248,6 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
//"format": {"type": "date", "args": ["%a, %b %e, %Y"]},
|
||||
"sort": true
|
||||
},
|
||||
{
|
||||
"id": "series",
|
||||
"title": "Series",
|
||||
"type": "string",
|
||||
"columnWidth": 128,
|
||||
"find": true,
|
||||
"sort": true
|
||||
},
|
||||
{
|
||||
"id": "edition",
|
||||
"title": "Edition",
|
||||
"type": "string",
|
||||
"columnWidth": 128,
|
||||
"find": true
|
||||
},
|
||||
{
|
||||
"id": "language",
|
||||
"title": "Language",
|
||||
|
@ -238,6 +257,24 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"find": true,
|
||||
"sort": true
|
||||
},
|
||||
{
|
||||
"id": "keywords",
|
||||
"title": "Keywords",
|
||||
"type": ["string"],
|
||||
"autocomplete": true,
|
||||
"filter": true,
|
||||
"find": true,
|
||||
"sort": true
|
||||
},
|
||||
{
|
||||
"id": "description",
|
||||
"operator": "+",
|
||||
"title": "Description",
|
||||
"type": "text",
|
||||
"find": true,
|
||||
"sort": true,
|
||||
"columnWidth": 256
|
||||
},
|
||||
{
|
||||
"id": "id",
|
||||
"operator": "+",
|
||||
|
@ -274,15 +311,6 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"format": {"type": "value", "args": ["B"]},
|
||||
"columnWidth": 64
|
||||
},
|
||||
{
|
||||
"id": "description",
|
||||
"operator": "+",
|
||||
"title": "Description",
|
||||
"type": "text",
|
||||
"find": true,
|
||||
"sort": true,
|
||||
"columnWidth": 256
|
||||
},
|
||||
{
|
||||
"id": "matches",
|
||||
"operator": "-",
|
||||
|
@ -355,14 +383,13 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"documentRightsLevel" defines which initial rights level will be assigned to documents
|
||||
created by users of these user levels.
|
||||
*/
|
||||
"documentRightsLevel": {"member": 0, "staff": 0, "admin": 0},
|
||||
"documentRightsLevel": {"member": 1, "admin": 1},
|
||||
/*
|
||||
"documentRightsLevels" is an ordered list of rights levels, one of which will be
|
||||
assigned to each document.
|
||||
*/
|
||||
"documentRightsLevels": [
|
||||
{"name": "Public", "color": [128, 255, 128]},
|
||||
{"name": "Restricted", "color": [255, 212, 128]},
|
||||
{"name": "Private", "color": [255, 128, 128]}
|
||||
],
|
||||
/*
|
||||
|
@ -502,6 +529,30 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"sort": true,
|
||||
"sortType": "title"
|
||||
},
|
||||
{
|
||||
"id": "work",
|
||||
"title": "Work",
|
||||
"type": "string",
|
||||
"autocomplete": true,
|
||||
"autocompleteSort": [{"key": "timesaccessed", "operator": "-"}],
|
||||
"columnRequired": true,
|
||||
"columnWidth": 180,
|
||||
"find": true,
|
||||
"sort": true,
|
||||
"sortType": "title"
|
||||
},
|
||||
{
|
||||
"id": "version",
|
||||
"title": "Version",
|
||||
"type": "string",
|
||||
"autocomplete": true,
|
||||
"autocompleteSort": [{"key": "timesaccessed", "operator": "-"}],
|
||||
"columnRequired": true,
|
||||
"columnWidth": 180,
|
||||
"find": true,
|
||||
"sort": true,
|
||||
"sortType": "title"
|
||||
},
|
||||
{
|
||||
"id": "name",
|
||||
"title": "Name",
|
||||
|
@ -510,8 +561,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"find": true
|
||||
},
|
||||
{
|
||||
"id": "director",
|
||||
"title": "Director",
|
||||
"id": "author",
|
||||
"title": "Author",
|
||||
"type": ["string"],
|
||||
"autocomplete": true,
|
||||
"columnRequired": true,
|
||||
|
@ -521,8 +572,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"sortType": "person"
|
||||
},
|
||||
{
|
||||
"id": "featuring",
|
||||
"title": "Featuring",
|
||||
"id": "workauthor",
|
||||
"title": "Work Author",
|
||||
"type": ["string"],
|
||||
"autocomplete": true,
|
||||
"columnRequired": true,
|
||||
|
@ -531,6 +582,30 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"sort": true,
|
||||
"sortType": "person"
|
||||
},
|
||||
{
|
||||
"id": "location",
|
||||
"title": "Location",
|
||||
"type": "string",
|
||||
"autocomplete": true,
|
||||
"columnWidth": 180,
|
||||
"filter": true,
|
||||
"find": true,
|
||||
"sort": true
|
||||
},
|
||||
{
|
||||
"id": "date",
|
||||
"title": "Date",
|
||||
"type": "date",
|
||||
"additionalSort": [
|
||||
{"key": "director", "operator": "+"},
|
||||
{"key": "title", "operator": "+"}
|
||||
],
|
||||
"autocomplete": true,
|
||||
"columnWidth": 60,
|
||||
"filter": true,
|
||||
"find": true,
|
||||
"sort": true
|
||||
},
|
||||
{
|
||||
"id": "language",
|
||||
"title": "Language",
|
||||
|
@ -542,33 +617,17 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"sort": true
|
||||
},
|
||||
{
|
||||
"id": "country",
|
||||
"title": "Country",
|
||||
"type": "string",
|
||||
"id": "keywords",
|
||||
"title": "Keywords",
|
||||
"type": ["string"],
|
||||
"autocomplete": true,
|
||||
"columnWidth": 180,
|
||||
"filter": true,
|
||||
"find": true,
|
||||
"flag": "country",
|
||||
"sort": true
|
||||
},
|
||||
{
|
||||
"id": "year",
|
||||
"title": "Year",
|
||||
"type": "year",
|
||||
"additionalSort": [
|
||||
{"key": "director", "operator": "+"},
|
||||
{"key": "title", "operator": "+"}
|
||||
],
|
||||
"autocomplete": true,
|
||||
"columnWidth": 60,
|
||||
"filter": true,
|
||||
"find": true,
|
||||
"sort": true
|
||||
},
|
||||
{
|
||||
"id": "summary",
|
||||
"title": "Summary",
|
||||
"id": "description",
|
||||
"title": "Description",
|
||||
"type": "text",
|
||||
"find": true
|
||||
},
|
||||
|
@ -586,21 +645,27 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"sort": true
|
||||
},
|
||||
{
|
||||
"id": "keywords",
|
||||
"title": "Keywords",
|
||||
"id": "tags",
|
||||
"title": "Tags",
|
||||
"type": "layer",
|
||||
"filter": true,
|
||||
"find": true
|
||||
},
|
||||
{
|
||||
"id": "subtitles",
|
||||
"title": "Subtitles",
|
||||
"id": "privatenotes",
|
||||
"title": "Private Notes",
|
||||
"type": "layer",
|
||||
"find": true
|
||||
},
|
||||
{
|
||||
"id": "publicnotes",
|
||||
"title": "Notes",
|
||||
"title": "Public Notes",
|
||||
"type": "layer",
|
||||
"find": true
|
||||
},
|
||||
{
|
||||
"id": "subtitles",
|
||||
"title": "Subtitles",
|
||||
"type": "layer",
|
||||
"find": true
|
||||
},
|
||||
|
@ -871,17 +936,17 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
*/
|
||||
"layers": [
|
||||
{
|
||||
"id": "keywords",
|
||||
"title": "Keywords",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"item": "Keyword",
|
||||
"id": "tags",
|
||||
"title": "Tags",
|
||||
"canAddAnnotations": {"member": true, "admin": true},
|
||||
"item": "Tag",
|
||||
"overlap": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"id": "privatenotes",
|
||||
"title": "Private Notes",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"canAddAnnotations": {"member": true, "admin": true},
|
||||
"item": "Private Note",
|
||||
"overlap": true,
|
||||
"private": true,
|
||||
|
@ -890,8 +955,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
},
|
||||
{
|
||||
"id": "publicnotes",
|
||||
"title": "Notes",
|
||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||
"title": "Public Notes",
|
||||
"canAddAnnotations": {"member": true, "admin": true},
|
||||
"item": "Public Note",
|
||||
"overlap": true,
|
||||
"showInfo": true,
|
||||
|
@ -900,7 +965,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
{
|
||||
"id": "subtitles",
|
||||
"title": "Subtitles",
|
||||
"canAddAnnotations": {"staff": true, "admin": true},
|
||||
"canAddAnnotations": {"member": true, "admin": true},
|
||||
"canPlayClips": true,
|
||||
"hasEvents": true,
|
||||
"hasPlaces": true,
|
||||
|
@ -969,14 +1034,13 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"rightsLevel" defines which initial rights level will be assigned to items
|
||||
and texts created by users of these user levels.
|
||||
*/
|
||||
"rightsLevel": {"member": 2, "staff": 2, "admin": 2},
|
||||
"rightsLevel": {"member": 1, "admin": 1},
|
||||
/*
|
||||
"rightsLevels" is an ordered list of rights levels, one of which will be
|
||||
assigned to each item.
|
||||
*/
|
||||
"rightsLevels": [
|
||||
{"name": "Public", "color": [128, 255, 128]},
|
||||
{"name": "Restricted", "color": [255, 192, 128]},
|
||||
{"name": "Private", "color": [255, 128, 128]}
|
||||
],
|
||||
/*
|
||||
|
@ -1238,7 +1302,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
|||
"userLevels" is an ordered list of user classes. The first entry is for
|
||||
unregistered visitors.
|
||||
*/
|
||||
"userLevels": ["guest", "member", "staff", "admin"],
|
||||
"userLevels": ["guest", "member", "admin"],
|
||||
/*
|
||||
"video" contains the video settings.
|
||||
"formats": Supported video formats.
|
||||
|
|
|
@ -50,7 +50,6 @@ def render_poster(data, poster):
|
|||
title = title.replace(key, value)
|
||||
director = director.replace(key, value)
|
||||
year = str(data.get('year', ''))
|
||||
title = data.get('title', '')
|
||||
duration = data.get('duration')
|
||||
id = data['id']
|
||||
frame = data.get('frame')
|
||||
|
|
Loading…
Reference in a new issue