pandora/pandora/config.pandora.jsonc

948 lines
35 KiB
Text
Raw Normal View History

/*
2014-12-20 16:32:36 +00:00
-------------------------------------------------------------------------------
pan.do/ra Configuration
-------------------------------------------------------------------------------
2014-12-21 11:59:58 +00:00
You can edit this file. Most changes are effective immediately; everything that
2014-12-21 14:47:47 +00:00
affects the database layout (adding a new item key, annotation layer etc.) will
2014-12-21 11:59:58 +00:00
require a server restart. You may also want to take a look at the configuration
2014-12-20 16:55:19 +00:00
examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
*/
2011-02-22 14:47:59 +00:00
{
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"annotations" configures the annotation panel.
"showUsers": If true, include list of users in menu, so that
annotations by specific users can be turned on and off
2014-12-01 16:36:48 +00:00
*/
2012-01-12 10:39:19 +00:00
"annotations": {
"showUsers": false
2012-01-12 10:39:19 +00:00
},
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"cantPlay" specifies the UI for clips or videos that a user is not allowed
to play.
"icon": Symbol name (see https://oxjs.org/#examples/symbols/live)
"link": URL loaded on click (for example "/rights", if "rights" is
defined in "sitePages")
"text": Text shown on mouseover
2014-12-01 16:36:48 +00:00
*/
"cantPlay": {
2014-12-20 16:32:36 +00:00
"icon": "noCopyright",
"link": "",
"text": ""
},
/*
2014-12-20 16:32:36 +00:00
"capabilities" are permissions per user level.
Depending on the capability, this is either global:
{level: true} means a user of that level has the capability
or related to the rights levels of items or texts:
{level: x} means a user of that level has the capability for items or
texts of a rights level up to and including x
*/
"capabilities": {
"canAddItems": {"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},
2014-11-18 18:16:28 +00:00
"canEditEntities": {"staff": true, "admin": true},
2012-01-12 19:32:54 +00:00
"canEditEvents": {"staff": true, "admin": true},
2013-02-19 15:22:12 +00:00
"canEditFeaturedEdits": {"staff": true, "admin": true},
"canEditFeaturedLists": {"staff": true, "admin": true},
2013-02-16 01:20:40 +00:00
"canEditFeaturedTexts": {"staff": true, "admin": true},
"canEditMedia": {"staff": true, "admin": true},
"canEditMetadata": {"staff": true, "admin": true},
2012-01-12 19:32:54 +00:00
"canEditPlaces": {"staff": true, "admin": true},
2014-06-04 07:34:36 +00:00
"canEditRightsLevel": {"member": true, "staff": true, "admin": true},
"canEditSitePages": {"staff": true, "admin": true},
"canEditUsers": {"admin": true},
"canExportAnnotations": {"member": true, "staff": true, "admin": true},
2012-02-22 16:50:42 +00:00
"canImportAnnotations": {"member": true, "staff": true, "admin": true},
"canManageDocuments": {"member": true, "staff": true, "admin": true},
2014-11-20 13:19:33 +00:00
"canManageEntities": {"member": true, "staff": true, "admin": true},
"canManagePlacesAndEvents": {"member": true, "staff": true, "admin": true},
2013-02-19 15:22:12 +00:00
"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},
2013-02-28 12:18:04 +00:00
"canReadText": {"guest": 0, "member": 0, "staff": 1, "admin": 1},
"canRemoveItems": {"admin": true},
"canSeeAccessed": {"staff": true, "admin": true},
"canSeeDebugMenu": {"staff": true, "admin": true},
"canSeeExtraItemViews": {"staff": true, "admin": true},
"canSeeMedia": {"staff": true, "admin": true},
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canSeeSize": {"staff": true, "admin": true},
"canSeeSoftwareVersion": {"staff": true, "admin": true},
"canSendMail": {"staff": true, "admin": true}
},
/*
2014-12-20 16:32:36 +00:00
"clipKeys" are the properties that clips can be sorted by (the values are
populated automatically). If "sortOperator" is not specified, it will be
"+" (ascending) for strings and "-" (descending) for numbers.
*/
"clipKeys": [
{"id": "text", "title": "Text", "type": "string"},
{"id": "position", "title": "Position", "type": "float", "sortOperator": "+"},
{"id": "duration", "title": "Duration", "type": "float"},
{"id": "hue", "title": "Hue", "type": "float", "sortOperator": "+"},
{"id": "saturation", "title": "Saturation", "type": "float"},
{"id": "lightness", "title": "Lightness", "type": "float"},
{"id": "volume", "title": "Volume", "type": "float"}
],
/*
2014-12-20 16:32:36 +00:00
"clipLayers" is the ordered list of public layers that will appear as the
text of clips (in grid view, below the icon). Excluding a layer from this
list means it will not be included in find annotations.
*/
2012-06-18 10:01:05 +00:00
"clipLayers": ["publicnotes", "keywords", "subtitles"],
2014-12-01 16:23:11 +00:00
/*
2014-12-20 16:32:36 +00:00
"entities" can be used to store arbitrary data. They can be referenced in
annotations, info view, or elsewhere. Each entry defines a specific class
of entity object, its properties and their types (for example an "actor"
2014-12-21 14:47:47 +00:00
with "name", "biography", "portrait" etc). The HTML representation for
2014-12-20 16:32:36 +00:00
entities can be customized by adding "/static/js/entity.SITENAME.js".
Each entity has the following properties:
2014-12-21 11:53:29 +00:00
"id": Unique internal ID (can be referenced in "layers")
2014-12-20 16:32:36 +00:00
"title": Human-readable title
"keys": List of properties
"sortType": Optional. If set to "person" or "title", then the sort
order can be configured in "Manage Names" or "Manage Titles"
Each key has the properties "id", "title" and "type". "type" can be
"boolean", "number", "string", "text", "document" (reference to the id of a
document added via "Manage Documents") or ["string"] (list of strings).
2014-12-21 11:53:29 +00:00
"id" and "name" keys are required. If "additionalNames" is present, these
2014-12-20 16:32:36 +00:00
will act as synonyms when autocompleting values entered as annotations.
2014-12-01 16:23:11 +00:00
*/
2014-12-21 14:47:47 +00:00
"entities": [
{
"id": "people",
"title": "People",
"keys": [
{"id": "id", "title": "ID", "type": "string"},
{"id": "name", "title": "Name", "type": "string"},
{"id": "additionalNames", "title": "Additional Names", "type": ["string"]},
{"id": "biography", "title": "Biography", "type": "text"},
{"id": "portrait", "title": "Portrait", "type": "document"}
],
"sortType": "person"
}
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
If "flags" is set to true, then filters for countries and languages will
appear with a flag icon.
2014-12-01 16:36:48 +00:00
*/
"flags": false,
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"help" specifies the sections of the help dialog.
2014-12-01 16:36:48 +00:00
*/
2013-03-04 10:07:37 +00:00
"help": [
{"id": "help", "title": "Help"},
{"id": "accounts", "title": "Accounts"},
{"id": "navigation", "title": "Navigation"},
{"id": "views", "title": "Views"},
{"id": "timelines", "title": "Timelines"},
2013-03-04 10:07:37 +00:00
{"id": "clips", "title": "Clips"},
{"id": "maps", "title": "Maps"},
{"id": "calendars", "title": "Calendars"},
{"id": "find", "title": "Find"},
2013-03-04 10:07:37 +00:00
{"id": "filters", "title": "Filters"},
{"id": "lists", "title": "Lists"},
{"id": "player", "title": "Player"},
{"id": "editor", "title": "Editor"},
{"id": "documents", "title": "Documents"},
2014-11-19 16:05:23 +00:00
{"id": "entities", "title": "Entities"},
{"id": "edits", "title": "Edits"},
2013-03-04 10:07:37 +00:00
{"id": "texts", "title": "Texts"},
{"id": "embeds", "title": "Embeds"}
2013-03-04 10:07:37 +00:00
],
/*
2014-12-20 16:32:36 +00:00
"itemKeys" defines the metadata associated with each item. Required keys
are "*", "id" and "title". Adding a key with "random" as id will produce a
random value; this can be used for a "random" sort order.
2014-12-20 16:32:36 +00:00
An itemKey must have the following properties:
2014-12-21 11:53:29 +00:00
"id": The unique id of the key (as known by the server)
2014-12-20 16:32:36 +00:00
"title": The title of the key (as displayed by the client)
"type": Can be "boolean", "date", "enum", "float", "hue", "integer",
"layer", "string", "text", "time" or ["..."] (list of values of
this type). If type is "layer", this is a reference to the
annotations layer with the same id.
and can have any of the following properties:
"additionalSort": Ordered list of {key, operator} objects, where key is
another itemKey and operator is "+" or "-". This can be used to
override user.ui.listSort when results are sorted by this key.
2014-12-20 16:39:24 +00:00
"autocomplete": If true, the find element will provide autocomplete
2014-12-20 16:32:36 +00:00
"autocompleteSort": Sort order of autocomplete suggestions
"capability": A capability required to see data for this key
"columnRequired": If true, the column can't be removed from list view
2014-12-20 16:39:24 +00:00
"columnWidth": Default column width in px. If absent, no column for
this key can be added in list view.
2014-12-20 16:32:36 +00:00
"filter": If true, one can filter results by this key
"find": If true, this key will appear as an option in the find element
"format": {type: string, args: [value, value, ...]}, used for special
formatting. This will invoke Ox.formatType(args). For details, see
https://oxjs.org/#doc/Ox.formatArea etc.
"secondaryId": If true, loading the URL "/value" will redirect to the
2014-12-20 16:39:24 +00:00
corresponding item, in case there is an exact match for this key
2014-12-20 16:32:36 +00:00
"sort": If true, one can sort results by this key
2014-12-20 16:39:24 +00:00
"sortOperator": Sort order ("+" or "-"), in case it differs from the
2014-12-20 16:32:36 +00:00
default for the key's type ("+" for strings, "-" for numbers)
"sortType": Special sort type ("person" or "title") which can be
2014-12-20 16:39:24 +00:00
further configured in "Manage Names" or "Manage Titles"
2014-12-20 19:54:57 +00:00
"value": {key: string, type: string} or {layer: string, type: string},
for keys whose value is derived from other keys or layers (like
"number of actors" or "words per minute"). Possible values for type
2014-12-20 16:32:36 +00:00
are "length", "lengthperminute", "words", and "wordsperminute".
Alternatively, "value" can be set to the string "capability", which
results in an itemKey whose boolean value indicates the presence or
absence of a userLevel-dependent capability. This can be used to
create queries and lists like "all items this user can play" etc.
"values": [value, value, ...] Ordered list of values, in case "type" is
"enum"
*/
2011-02-22 14:47:59 +00:00
"itemKeys": [
{
"id": "*",
"title": "All",
"type": "text",
"find": true
},
2011-02-22 16:42:26 +00:00
{
2011-02-22 14:47:59 +00:00
"id": "title",
"title": "Title",
"type": "string",
2011-02-22 16:42:26 +00:00
"autocomplete": true,
"autocompleteSort": [{"key": "timesaccessed", "operator": "-"}],
2011-02-22 16:42:26 +00:00
"columnRequired": true,
"columnWidth": 180,
"find": true,
"sort": true,
"sortType": "title"
2011-02-22 14:47:59 +00:00
},
2012-01-12 19:32:54 +00:00
{
"id": "name",
2012-06-18 10:01:05 +00:00
"title": "Name",
2012-01-12 19:32:54 +00:00
"type": ["string"],
"autocomplete": true,
"find": true
},
2011-02-22 14:47:59 +00:00
{
"id": "director",
"title": "Director",
"type": ["string"],
2011-02-22 16:42:26 +00:00
"autocomplete": true,
"columnRequired": true,
"columnWidth": 180,
"filter": true,
"sort": true,
"sortType": "person"
2011-02-22 14:47:59 +00:00
},
{
"id": "featuring",
"title": "Featuring",
"type": ["string"],
"autocomplete": true,
"columnRequired": true,
"columnWidth": 180,
"filter": true,
"sort": true,
"sortType": "person"
},
2011-02-22 14:47:59 +00:00
{
"id": "language",
"title": "Language",
"type": ["string"],
2011-02-22 16:42:26 +00:00
"autocomplete": true,
"columnWidth": 120,
"filter": true,
"find": true,
"sort": true
2011-02-22 14:47:59 +00:00
},
{
"id": "country",
2013-07-11 12:38:11 +00:00
"title": "Country",
"type": "string",
"autocomplete": true,
"columnWidth": 180,
"filter": true,
"find": true,
"sort": true
},
{
"id": "year",
"title": "Year",
2012-06-18 10:01:05 +00:00
"type": "year",
2014-12-20 16:32:36 +00:00
"additionalSort": [
{"key": "director", "operator": "+"},
{"key": "title", "operator": "+"}
],
2012-06-18 10:01:05 +00:00
"autocomplete": true,
"columnWidth": 60,
"filter": true,
"find": true,
"sort": true
},
2011-02-22 14:47:59 +00:00
{
2012-02-16 10:30:52 +00:00
"id": "summary",
"title": "Summary",
2011-02-22 14:47:59 +00:00
"type": "text",
2011-02-22 16:42:26 +00:00
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "notes",
"title": "Notes",
"type": "text",
"capability": "canEditMetadata"
},
2011-02-22 14:47:59 +00:00
{
2011-02-22 16:42:26 +00:00
"id": "id",
"title": "ID",
"type": "string",
"columnWidth": 90,
"sort": true
2011-02-22 14:47:59 +00:00
},
2012-02-16 10:30:52 +00:00
{
"id": "keywords",
"title": "Keywords",
"type": "layer",
"filter": true,
2012-02-16 10:30:52 +00:00
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "subtitles",
"title": "Subtitles",
2012-02-16 10:30:52 +00:00
"type": "layer",
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "publicnotes",
2012-06-18 10:01:05 +00:00
"title": "Notes",
2012-02-16 10:30:52 +00:00
"type": "layer",
"find": true
2011-02-22 14:47:59 +00:00
},
{
2012-02-20 17:42:13 +00:00
"id": "numberofannotations",
"title": "Annotations",
"type": "integer",
"columnWidth": 60,
"sort": true
2012-02-20 17:42:13 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "duration",
"title": "Duration",
"type": "time",
2011-02-22 16:42:26 +00:00
"columnWidth": 90,
"format": {"type": "duration", "args": [0, "short"]},
"sort": true
2011-02-22 16:42:26 +00:00
},
{
"id": "resolution",
"title": "Resolution",
"type": ["integer"],
"columnWidth": 90,
"format": {"type": "resolution", "args": ["px"]},
"sort": true
2011-02-22 14:47:59 +00:00
},
{
"id": "aspectratio",
"title": "Aspect Ratio",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 90,
2012-07-02 14:11:58 +00:00
"format": {"type": "unit", "args": [":1", 3]},
"sort": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "pixels",
"title": "Pixels",
"type": "integer",
"columnWidth": 90,
"format": {"type": "value", "args": ["px"]},
"sort": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "hue",
"title": "Hue",
"type": "hue",
"columnWidth": 90,
"format": {"type": "color", "args": ["hue"]},
"sort": true,
"sortOperator": "+"
2011-02-22 14:47:59 +00:00
},
{
"id": "saturation",
"title": "Saturation",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 90,
"format": {"type": "color", "args": ["saturation"]},
"sort": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "lightness",
"title": "Lightness",
"type": "float",
"columnWidth": 90,
"format": {"type": "color", "args": ["lightness"]},
"sort": true
2011-02-22 14:47:59 +00:00
},
{
"id": "volume",
"title": "Volume",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 60,
"format": {"type": "color", "args": ["lightness"]},
"sort": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "numberofcuts",
"title": "Number of Cuts",
"type": "integer",
"columnWidth": 60,
"format": {"type": "number", "args": []},
"sort": true,
2011-02-22 16:42:26 +00:00
"value": {"key": "cuts", "type": "length"}
2011-02-22 14:47:59 +00:00
},
{
"id": "cutsperminute",
"title": "Cuts per Minute",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 60,
"format": {"type": "number", "args": [3]},
"sort": true,
2011-02-22 16:42:26 +00:00
"value": {"key": "cuts", "type": "lengthperminute"}
2011-02-22 14:47:59 +00:00
},
{
"id": "words",
"title": "Number of Words",
2011-02-22 16:42:26 +00:00
"type": "integer",
"columnWidth": 60,
"format": {"type": "number", "args": []},
"sort": true,
2011-02-22 16:42:26 +00:00
"value": {"layer": "subtitles", "type": "words"}
2011-02-22 14:47:59 +00:00
},
{
"id": "wordsperminute",
"title": "Words per Minute",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 60,
"format": {"type": "number", "args": [3]},
"sort": true,
2011-02-22 16:42:26 +00:00
"value": {"layer": "subtitles", "type": "wordsperminute"}
2011-02-22 14:47:59 +00:00
},
{
"id": "size",
"title": "Size",
2011-02-22 16:42:26 +00:00
"type": "integer",
"capability": "canSeeMedia",
2011-02-22 16:42:26 +00:00
"columnWidth": 60,
"format": {"type": "value", "args": ["B"]},
"sort": true
2011-02-22 14:47:59 +00:00
},
{
"id": "bitrate",
"title": "Bitrate",
2011-02-22 16:42:26 +00:00
"type": "integer",
"columnWidth": 60,
2012-06-04 10:33:58 +00:00
"format": {"type": "value", "args": ["bps"]},
"sort": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "numberoffiles",
"title": "Number of Files",
"type": "integer",
"capability": "canSeeMedia",
2011-02-22 16:42:26 +00:00
"columnWidth": 60,
"sort": true,
"value": {"key": "files", "type": "length"}
2011-02-22 14:47:59 +00:00
},
2012-02-16 14:13:08 +00:00
{
"id": "user",
"title": "User",
"type": "string",
"capability": "canSeeMedia",
2012-06-13 16:01:32 +00:00
"find": true
},
{
"id": "created",
"title": "Date Created",
"type": "date",
"columnWidth": 120,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]},
"sort": true
},
2011-02-22 14:47:59 +00:00
{
"id": "modified",
2012-03-27 14:59:20 +00:00
"title": "Last Modified",
2011-02-22 16:42:26 +00:00
"type": "date",
"columnWidth": 90,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]},
"sort": true
2011-02-22 16:42:26 +00:00
},
{
"id": "accessed",
2012-03-27 14:59:20 +00:00
"title": "Last Accessed",
2011-02-22 16:42:26 +00:00
"type": "date",
"capability": "canSeeAccessed",
"columnWidth": 90,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]},
"sort": true
2011-02-22 16:42:26 +00:00
},
{
2011-11-10 20:19:15 +00:00
"id": "timesaccessed",
"title": "Times Accessed",
2011-02-22 16:42:26 +00:00
"type": "integer",
"capability": "canSeeAccessed",
"columnWidth": 60,
"format": {"type": "number", "args": []},
"sort": true
2011-11-10 20:19:15 +00:00
},
{
"id": "rightslevel",
"title": "Rights Level",
"type": "enum",
"columnWidth": 90,
"format": {"type": "ColorLevel", "args": [
["Public", "Restricted", "Private"]
]},
"sort": true,
"sortOperator": "+",
"values": ["Public", "Restricted", "Private", "Unknown"]
2012-02-15 20:48:08 +00:00
},
{
"id": "random",
"title": "Random",
"type": "integer",
"sort": true
}
2011-02-22 14:47:59 +00:00
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"itemName" specifies the name of items ("Movies", "Videos" or similar).
Note that anything excessively long may cause layout errors.
2014-12-01 16:36:48 +00:00
*/
2011-02-22 14:47:59 +00:00
"itemName": {
2011-02-22 16:42:26 +00:00
"singular": "Video",
"plural": "Videos"
2011-02-22 14:47:59 +00:00
},
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"itemRequiresVideo" regulates if items without video can be created. If set
to true, the only way to add a new item is to upload a new video.
2014-12-01 16:36:48 +00:00
*/
"itemRequiresVideo": true,
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"itemTitleKeys" is a list of itemKeys required to compose the item title
displayed at the top of the screen. This title can be customized by adding
"/static/js/getItemTitle.SITENAME.js".
2014-12-01 16:36:48 +00:00
*/
"itemTitleKeys": ["title", "director", "year"],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"itemViews" is an ordered list of available item views. Implemented views
are "info", "documents", "player", "editor", "timeline", "clips", "map",
"calendar", "data" and "media".
2014-12-01 16:36:48 +00:00
*/
2011-02-22 14:47:59 +00:00
"itemViews": [
{"id": "info", "title": "Info"},
{"id": "player", "title": "Player"},
{"id": "editor", "title": "Editor"},
2012-04-18 08:32:58 +00:00
{"id": "timeline", "title": "Timeline"},
{"id": "clips", "title": "Clips"},
2011-02-22 14:47:59 +00:00
{"id": "map", "title": "Map"},
{"id": "calendar", "title": "Calendar"},
{"id": "documents", "title": "Documents"},
{"id": "data", "title": "Data"},
{"id": "media", "title": "Media"}
2011-02-22 14:47:59 +00:00
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"language" is the default language for annotations of type "text". Text in
other languages can be added via markup, for example:
<span lang="fr">Voilà!</span>
2014-12-01 16:36:48 +00:00
*/
"language": "en",
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"languages" is the list of languages that the interface can be switched to.
Currently, localization exists for "ar", "el", "en" and "hi".
2014-12-01 16:36:48 +00:00
*/
"languages": ["ar", "el", "en", "hi"],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"layers" defines the types of time-based annotations that can be entered.
Required keys are:
"id": Internal ID
"item": Name of one such annotation (singular)
"title": Display title
"type": Can be "entity", "string" or "text" (strings cannot contain
line breaks, text can contain HTML markup).
Optional keys are:
2014-12-21 11:53:29 +00:00
"canAddAnnotations": Permissions per user level
2014-12-20 16:32:36 +00:00
"entity": ID of the referenced entity (if type is "entity")
"hasEvents": If true, the calendar will be populated with matches from
this layer
"hasPlaces": If true, the map will be populated with matches from this
layer
"isSubtitles": If true, this layer will be displayed as subtitles
"overlap": If true, overlapping annotations are allowed. Note that
enforcement of "overlap": false is not implemented
"showInfo": If true, user and creation time will be displayed in the
tooltip that appears on mouseover.
2014-12-01 16:36:48 +00:00
*/
2011-02-22 14:47:59 +00:00
"layers": [
2012-06-13 16:01:32 +00:00
{
"id": "keywords",
"title": "Keywords",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
"item": "Keyword",
"overlap": true,
"type": "string"
},
2011-02-22 16:42:26 +00:00
{
"id": "privatenotes",
"title": "Private Notes",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
2012-06-16 16:44:29 +00:00
"item": "Private Note",
"overlap": true,
"private": true,
"showInfo": true,
"type": "text"
},
{
"id": "publicnotes",
2012-06-18 10:01:05 +00:00
"title": "Notes",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
2012-06-16 16:44:29 +00:00
"item": "Public Note",
"overlap": true,
"showInfo": true,
"type": "text"
2011-02-22 16:42:26 +00:00
},
{
"id": "subtitles",
"title": "Subtitles",
"canAddAnnotations": {"staff": true, "admin": true},
"hasEvents": true,
"hasPlaces": true,
"isSubtitles": true,
"item": "Subtitle",
"type": "text"
2011-02-22 16:42:26 +00:00
}
2011-02-22 14:47:59 +00:00
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"itemViews" is an ordered list of available list views. Implemented views
are "list", "grid", "timelines", "clips", "clip", "map" and "calendar".
2014-12-01 16:36:48 +00:00
*/
2011-02-22 14:47:59 +00:00
"listViews": [
{"id": "list", "title": "as List"},
2011-12-30 09:21:43 +00:00
{"id": "grid", "title": "as Grid"},
2011-02-22 14:47:59 +00:00
{"id": "timelines", "title": "with Timelines"},
2012-04-18 08:32:58 +00:00
{"id": "clips", "title": "with Clips"},
2011-02-22 14:47:59 +00:00
{"id": "clip", "title": "as Clips"},
{"id": "map", "title": "on Map"},
{"id": "calendar", "title": "on Calendar"}
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:55:19 +00:00
"media" defines additional media that gets added when importing items.
"importPosters": If true, a poster file will be imported (if present)
"importFrames": If true, 3 full-resolution frames per file will be
imported. This is useful to render high-resolution icons and
posters for an instance that has only low-resolution video.
2014-12-01 16:36:48 +00:00
*/
2011-08-11 14:15:56 +00:00
"media": {
"importPosters": false,
"importFrames": false
2011-08-11 14:15:56 +00:00
},
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:55:19 +00:00
"menuExtras" can be used to add extra functionality to the main menu bar.
2014-12-20 20:09:37 +00:00
The plug-in architecture is not yet finalized, documentation forthcoming.
2014-12-01 16:36:48 +00:00
*/
2013-08-08 13:01:45 +00:00
"menuExtras": [
"user",
2014-12-20 16:32:36 +00:00
// "locale",
2013-08-08 13:01:45 +00:00
"reload"
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"personalLists" specifies which pre-defined lists a new member will have
after signup. "title" is required. If "query" is present, this defines a
smart list. "query" can be any pan.do/ra query object, see /api/find for
further documentation. If you need to reference the username (for example
in order to include a default "My Videos" list), you can use the syntax
{"user": "{username}"}
2014-12-01 16:36:48 +00:00
*/
"personalLists": [
{"title": "Favorites"}
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:55:19 +00:00
"posters" contains details about the poster icons. "ratio" is the default
ratio (used to display a placeholder while poster icons are loading).
2014-12-01 16:36:48 +00:00
*/
"posters": {
"ratio": 0.625
},
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"rightsLevel" defines which initial rights level will be assigned to items
and texts created by users of these user levels.
2014-12-01 16:36:48 +00:00
*/
"rightsLevel": {"member": 2, "staff": 2, "admin": 2},
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:55:19 +00:00
"rightsLevels" is an ordered list of rights levels, one of which will be
assigned to each item.
2014-12-01 16:36:48 +00:00
*/
"rightsLevels": [
{"name": "Public", "color": [128, 255, 128]},
{"name": "Restricted", "color": [255, 192, 128]},
{"name": "Private", "color": [255, 128, 128]}
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 19:34:28 +00:00
"site" contains various settings for this instance. In "email", "contact"
if the address in the contact form (to), "system" is the address used by
the system (from).
Note that "videoprefix" (subdomains to serve the video files from) gets
populated automatically and can be left empty.
2014-12-01 16:36:48 +00:00
*/
2011-02-22 14:47:59 +00:00
"site": {
"description": "This is a demo of pan.do/ra - a free, open source media archive. It allows you to manage large, decentralized collections of video, to collaboratively create metadata and time-based annotations, and to serve your archive as a cutting-edge web application.",
"email": {
// E-mail address in contact form (to)
"contact": "system@pandora.local",
"footer": "-- \npan.do/ra - http://pan.do/ra",
"prefix": "pan.do/ra News -",
// E-mail address uses by the system (from)
"system": "system@pandora.local"
},
2013-02-24 09:17:03 +00:00
"https": false,
"id": "pandora",
2012-06-18 10:01:05 +00:00
"name": "Demo",
"sendReferrer": true,
"url": "pandora.local",
"videoprefix": ""
2011-02-22 14:47:59 +00:00
},
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"sitePages" defines the sections of the main site dialog. If "news" is
present, this will add an interface to add news items. If "contact" is
present, this will add an interface to contact the site owners.
2014-12-01 16:36:48 +00:00
*/
2011-02-22 14:47:59 +00:00
"sitePages": [
{"id": "about", "title": "About"},
{"id": "news", "title": "News"},
2014-12-20 16:32:36 +00:00
// {"id": "tour", "title": "Take a Tour"},
2011-02-22 14:47:59 +00:00
{"id": "faq", "title": "Frequently Asked Questions"},
2011-02-22 16:42:26 +00:00
{"id": "terms", "title": "Terms of Service"},
{"id": "license", "title": "License"},
{"id": "contact", "title": "Contact"}
2011-02-22 14:47:59 +00:00
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"sites" specifies which other pan.do/ra instances, if any, will appear in
the user interface for creating embeds. This allows for easier creation of
cross-instance references.
2014-12-01 16:36:48 +00:00
*/
"sites": [
2013-02-24 09:17:03 +00:00
{"name": "0xDB", "url": "0xdb.org", "https": true},
{"name": "Pad.ma", "url": "pad.ma", "https": true},
{"name": "Indiancine.ma", "url": "indiancine.ma", "https": true}
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"textRightsLevels" defines a list of rights levels for texts.
2014-12-01 16:36:48 +00:00
*/
"textRightsLevels": [
{"name": "Public", "color": [128, 255, 128]},
{"name": "Private", "color": [255, 128, 128]}
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"themes" is a list of themes that the user interface can be switched to.
Currently available themes are "oxlight", "oxmedium" and "oxdark". The
default theme can be set in user.ui.theme.
2014-12-01 16:36:48 +00:00
*/
2013-02-10 11:51:59 +00:00
"themes": ["oxlight", "oxmedium", "oxdark"],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"timelines" is a list of timeline types. Implemented types are "antialias",
"slitscal", "keyframes" and "auto".
2014-12-01 16:36:48 +00:00
*/
2012-03-17 06:31:34 +00:00
"timelines": [
{"id": "antialias", "title": "Anti-Alias"},
{"id": "slitscan", "title": "Slit-Scan"},
2012-06-20 16:57:55 +00:00
{"id": "keyframes", "title": "Keyframes"},
{"id": "audio", "title": "Waveform"}
2012-03-17 06:31:34 +00:00
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"totals" specifies which totals are displayed in the status bar at the
bottom of list views. Possible ids are "duration", "files", "items",
"pixels" and "size". Adding a capability limits the display of a specific
total to users of the corresponding user levels.
2014-12-01 16:36:48 +00:00
*/
2011-02-22 14:47:59 +00:00
"totals": [
{"id": "items"},
{"id": "files", "capability": "canSeeMedia"},
{"id": "duration", "capability": "canSeeMedia"},
{"id": "size", "capability": "canSeeMedia"},
2011-02-22 14:47:59 +00:00
{"id": "pixels"}
],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
If "tv" is set to true, then in TV mode, the site logo will be displayed in
the corner of the screen.
2014-12-01 16:36:48 +00:00
*/
2011-12-20 13:08:30 +00:00
"tv": {
"showLogo": false
},
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
The "user" object contains the default user settings. "ui" is the default
interface state for new users, and after selecting "Reset UI Settings" in
Preferences -> Advanced. This is the place to configure various defaults,
like the site-wide language and theme, the default list and item views, the
default set of filters, etc.
2014-12-20 19:51:46 +00:00
Please make sure that in case you rename or remove entries that are
referenced in "ui", you update them here as well.
2014-12-01 16:36:48 +00:00
*/
2011-02-22 14:47:59 +00:00
"user": {
"level": "guest",
"ui": {
"annotationsCalendarSize": 128,
"annotationsMapSize": 128,
2012-06-18 10:01:05 +00:00
"annotationsRange": "all",
2011-02-22 14:47:59 +00:00
"annotationsSize": 256,
"annotationsSort": "position",
2013-03-06 14:09:18 +00:00
"calendarFind": "",
"calendarSelection": "",
"clipColumns": 2,
"columns": {
"Colors": {
"columns": ["title", "director", "language", "hue", "saturation", "brightness"],
"columnWidth": {}
2011-02-22 14:47:59 +00:00
}
},
"document": "",
2014-01-07 06:49:17 +00:00
"documents": {},
"documentSize": 256,
2014-01-19 06:44:19 +00:00
"documentsSelection": {},
"documentsSort": [{"key": "name", "operator": "+"}],
"documentsView": "grid",
"edit": "",
"edits": {},
"editSelection": [],
"editSort": [
{"key": "index", "operator": "+"},
{"key": "year", "operator": "+"},
{"key": "director", "operator": "+"},
2014-02-09 06:42:21 +00:00
{"key": "title", "operator": "+"},
{"key": "position", "operator": "+"},
{"key": "duration", "operator": "+"}
],
"editView": "list",
2013-02-21 09:48:30 +00:00
"embedSize": 256,
2014-12-01 16:23:11 +00:00
"entity": "",
"entitiesSelection": {},
"entitiesType": "",
"filters": [
2012-06-18 10:01:05 +00:00
{"id": "director", "sort": [{"key": "items", "operator": "-"}]},
{"id": "country", "sort": [{"key": "items", "operator": "-"}]},
2012-06-13 16:01:32 +00:00
{"id": "year", "sort": [{"key": "name", "operator": "-"}]},
2012-06-18 10:01:05 +00:00
{"id": "featuring", "sort": [{"key": "items", "operator": "-"}]},
{"id": "keywords", "sort": [{"key": "items", "operator": "-"}]}
],
"filtersSize": 176,
"find": {"conditions": [], "operator": "&"},
2012-04-17 12:02:32 +00:00
"followPlayer": true,
"help": "",
2012-06-18 10:01:05 +00:00
"icons": "posters",
"infoIconSize": 256,
"item": "",
"itemFind": "",
"itemSort": [{"key": "position", "operator": "+"}],
"itemView": "info",
"listColumns": ["title", "director", "year", "language", "duration"],
"listColumnWidth": {},
"listSelection": [],
2011-12-29 12:42:19 +00:00
"listSort": [{"key": "title", "operator": "+"}],
"listView": "grid",
"lists": {},
"locale": "en",
"mapFind": "",
"mapSelection": "",
"onload": "",
"page": "",
2013-07-11 15:15:00 +00:00
"part": {
"api": "",
2014-01-17 13:49:11 +00:00
"documents": "",
2013-07-11 15:15:00 +00:00
"faq": "",
"help": "",
2013-07-11 18:01:31 +00:00
"news": "",
2013-08-08 11:00:47 +00:00
"preferences": "",
2013-07-11 18:01:31 +00:00
"tv": ""
2013-07-11 15:15:00 +00:00
},
2011-02-22 14:47:59 +00:00
"section": "items",
"sequenceMode": "shape",
"sequenceSort": [{"key": "director", "operator": "+"}],
"showAdvancedEmbedOptions": false,
2011-02-22 14:47:59 +00:00
"showAnnotations": true,
2012-01-13 16:26:07 +00:00
"showAnnotationsCalendar": true,
"showAnnotationsMap": true,
"showBrowser": true,
2014-12-20 20:15:42 +00:00
"showCalendarControls": false,
"showClips": true,
2014-01-06 12:37:15 +00:00
"showDocument": true,
"showFilters": true,
"showIconBrowser": false,
2011-02-22 14:47:59 +00:00
"showInfo": true,
"showLayers": {
"keywords": true,
2012-06-18 10:01:05 +00:00
"privatenotes": true,
"publicnotes": true,
"subtitles": true
},
"showMapControls": false,
"showMapLabels": false,
2011-02-22 14:47:59 +00:00
"showFolder": {
"edits": {
"personal": true,
"favorite": true,
"featured": true,
"volumes": true
},
2011-02-22 14:47:59 +00:00
"items": {
"personal": true,
"favorite": true,
"featured": true,
"volumes": true
2013-02-18 09:31:17 +00:00
},
2013-02-16 01:20:40 +00:00
"texts": {
"personal": true,
"favorite": true,
"featured": true
}
2011-02-22 14:47:59 +00:00
},
2014-01-18 10:55:23 +00:00
"showReflections": true,
2011-02-22 14:47:59 +00:00
"showSidebar": true,
"showSitePosters": false,
"showTimeline": true,
2011-02-22 14:47:59 +00:00
"sidebarSize": 256,
"text": "",
"texts": {},
2013-02-10 11:51:59 +00:00
"theme": "oxmedium",
"updateAdvancedFindResults": false,
"videoLoop": false,
2012-03-06 20:15:03 +00:00
"videoMuted": false,
"videoPoints": {},
2011-12-27 13:52:16 +00:00
"videoResolution": 240,
"videoScale": "fit",
"videoSize": "small",
"videoSubtitles": true,
2012-03-17 06:31:34 +00:00
"videoTimeline": "antialias",
"videoView": "player",
"videoVolume": 1
},
"username": "",
"volumes": []
2011-02-22 16:42:26 +00:00
},
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"userLevels" is an ordered list of user classes. The first entry is for
unregistered visitors.
2014-12-01 16:36:48 +00:00
*/
2011-08-19 14:43:05 +00:00
"userLevels": ["guest", "member", "staff", "admin"],
2014-12-01 16:36:48 +00:00
/*
2014-12-20 16:32:36 +00:00
"video" contains the video settings.
"formats": Supported video formats. Should be ["webm", "mp4"], or
["webm"] in case iDevices are not part of the audience
"previewRatio": Aspect ratio used in the info panel in the bottom left
corner of the screen
"resolutions": List of video resolutions. Supported values are 96, 144,
240, 288, 360, 432, 480, 720 and 1080.
"torrent": If true, video downloads are offered via BitTorrent
2014-12-01 16:36:48 +00:00
*/
2011-08-19 14:43:05 +00:00
"video": {
"formats": ["webm", "mp4"],
2012-01-30 21:16:58 +00:00
"previewRatio": 1.3333333333,
2014-12-20 16:32:36 +00:00
"resolutions": [240, 480],
"torrent": true
2011-08-19 14:43:05 +00:00
}
}