Update pandora config to align with upstream, closes #296

This commit is contained in:
Disassembler 2018-12-05 12:39:59 +01:00
parent b134f3c935
commit e17da9f060
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
2 changed files with 15 additions and 3 deletions

View File

@ -25,7 +25,7 @@ if [ ${VANILLA:-0} -eq 0 ]; then
cp srv/pandora/conf/config.jsonc /srv/pandora/conf cp srv/pandora/conf/config.jsonc /srv/pandora/conf
else else
chown 8002:8002 /srv/pandora/conf chown 8002:8002 /srv/pandora/conf
cp /var/lib/lxc/pandora/pandora/srv/pandora/pandora/config.pandora.jsonc /srv/pandora/conf cp /var/lib/lxc/pandora/pandora/srv/pandora/pandora/config.pandora.jsonc /srv/pandora/conf/config.jsonc
fi fi
cp srv/pandora/conf/gunicorn_config.py /srv/pandora/conf/gunicorn_config.py cp srv/pandora/conf/gunicorn_config.py /srv/pandora/conf/gunicorn_config.py
envsubst <srv/pandora/conf/local_settings.py >/srv/pandora/conf/local_settings.py envsubst <srv/pandora/conf/local_settings.py >/srv/pandora/conf/local_settings.py

View File

@ -10,10 +10,14 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
{ {
/* /*
"annotations" configures the annotation panel. "annotations" configures the annotation panel.
"separator" is the character, string or HTML tag that separates
annotations of type "string"
"showUsers": If true, include list of users in menu, so that "showUsers": If true, include list of users in menu, so that
annotations by specific users can be turned on and off annotations by specific users can be turned on and off
*/ */
"annotations": { "annotations": {
"separator": ";",
"showUsers": false "showUsers": false
}, },
/* /*
@ -63,6 +67,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"canManageHome": {"staff": true, "admin": true}, "canManageHome": {"staff": true, "admin": true},
"canManagePlacesAndEvents": {"member": true, "staff": true, "admin": true}, "canManagePlacesAndEvents": {"member": true, "staff": true, "admin": true},
"canManageTitlesAndNames": {"member": true, "staff": true, "admin": true}, "canManageTitlesAndNames": {"member": true, "staff": true, "admin": true},
"canManageTranslations": {"admin": true},
"canManageUsers": {"staff": true, "admin": true}, "canManageUsers": {"staff": true, "admin": true},
"canPlayClips": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canPlayClips": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canPlayVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canPlayVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
@ -102,7 +107,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"clipLayers": ["publicnotes", "keywords", "subtitles", "places", "events"], "clipLayers": ["publicnotes", "keywords", "subtitles", "places", "events"],
/* /*
"documentKeys" defines the metadata associated with each document. Required keys "documentKeys" defines the metadata associated with each document. Required keys
are "*", "id" and "title". are "*", "id" and "title".
A documentKey must have the following properties: A documentKey must have the following properties:
"id": The unique id of the key (as used by the server) "id": The unique id of the key (as used by the server)
"title": The title of the key (as displayed by the client) "title": The title of the key (as displayed by the client)
@ -589,6 +594,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"id": "keywords", "id": "keywords",
"title": "Keywords", "title": "Keywords",
"type": "layer", "type": "layer",
"autocomplete": true,
"filter": true, "filter": true,
"find": true "find": true
}, },
@ -873,6 +879,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"canPlayClips": If true, clips from this layer will play for users "canPlayClips": If true, clips from this layer will play for users
with canPlayClips access with canPlayClips access
"entity": ID of the referenced entity (if type is "entity") "entity": ID of the referenced entity (if type is "entity")
"getDefaults": function in pandora namespace that gets called
to populate defaults for new annotations. i.e. getCurrentFrameAnnotation
"hasEvents": If true, the calendar will be populated with matches from "hasEvents": If true, the calendar will be populated with matches from
this layer this layer
"hasPlaces": If true, the map will be populated with matches from this "hasPlaces": If true, the map will be populated with matches from this
@ -889,6 +897,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"title": "Keywords", "title": "Keywords",
"canAddAnnotations": {"member": true, "staff": true, "admin": true}, "canAddAnnotations": {"member": true, "staff": true, "admin": true},
"item": "Keyword", "item": "Keyword",
"autocomplete": true,
"overlap": true, "overlap": true,
"type": "string" "type": "string"
}, },
@ -965,7 +974,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
*/ */
"media": { "media": {
"importPosters": false, "importPosters": false,
"importFrames": false "importFrames": false
}, },
/* /*
"menuExtras" can be used to add extra functionality to the main menu bar. "menuExtras" can be used to add extra functionality to the main menu bar.
@ -1032,6 +1041,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"https": true, "https": true,
"id": "pandora", "id": "pandora",
"name": "pan.do/ra", "name": "pan.do/ra",
// Set to true to allow search engines to index the site
"public": false,
"sendReferrer": true, "sendReferrer": true,
"url": "pandora.spotter.vm" "url": "pandora.spotter.vm"
}, },
@ -1115,6 +1126,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"level": "guest", "level": "guest",
"ui": { "ui": {
"annotationsCalendarSize": 128, "annotationsCalendarSize": 128,
"annotationsHighlight": "none",
"annotationsMapSize": 128, "annotationsMapSize": 128,
"annotationsRange": "all", "annotationsRange": "all",
"annotationsSize": 256, "annotationsSize": 256,