pandora/pandora/config.pandora.jsonc

626 lines
21 KiB
Text
Raw Normal View History

/*
Pan.do/ra Settings
You can edit this file.
*/
2011-02-22 14:47:59 +00:00
{
"additionalSort": [
{"key": "title", "operator": "+"}
],
2012-01-12 10:39:19 +00:00
"annotations": {
"showUsers": false
2012-01-12 10:39:19 +00:00
},
"cantPlay": {
"icon": "",
"link": "",
"text": ""
},
/*
Capabilities are per user level.
They can either be general:
{level: true} means a user of that level has the capability)
or related to items:
{level: x} means a user of that level has the capability
for items of a rights level up to and including x
*/
"capabilities": {
"canDeleteItems": {"admin": true},
"canDownloadVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canEditAnnotations": {"staff": true, "admin": true},
2012-01-12 19:32:54 +00:00
"canEditEvents": {"staff": true, "admin": true},
"canEditFeaturedLists": {"staff": true, "admin": true},
"canEditMetadata": {"staff": true, "admin": true},
2012-01-12 19:32:54 +00:00
"canEditPlaces": {"staff": true, "admin": true},
"canEditSitePages": {"staff": true, "admin": true},
"canEditUsers": {"admin": true},
2012-02-22 16:50:42 +00:00
"canImportAnnotations": {"member": true, "staff": true, "admin": true},
"canManageTitlesAndNames": {"member": true, "staff": true, "admin": true},
"canManagePlacesAndEvents": {"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},
"canSeeAccessed": {"staff": true, "admin": true},
"canSeeDebugMenu": {"staff": true, "admin": true},
"canSeeExtraItemViews": {"staff": true, "admin": true},
"canSeeFiles": {"staff": true, "admin": true},
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canSeeSize": {"staff": true, "admin": true},
2012-03-06 22:05:21 +00:00
"canSendMail": {"staff": true, "admin": true},
"canUploadVideo": {"guest": false, "member": true, "staff": true, "admin": true}
},
/*
clipKeys are the properties that clips can by sorted by.
If sortOperator is not specified, it will be + for strings and - 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"}
],
/*
clipLayers is the ordered list of public layers that will appear as the
text of clips. Excluding a layer from this list means it will not be
2012-02-01 12:01:39 +00:00
included in find annotations. // FIXME: the last bit is not implemented.
*/
2012-06-13 16:01:32 +00:00
"clipLayers": ["transcripts", "keywords", "places", "events", "descriptions"],
// fixme: either this, or filter: true in itemKeys, but not both
"filters": [
{"id": "director", "title": "Director", "type": "string"},
{"id": "country", "title": "Country", "type": "string"},
2012-06-13 16:01:32 +00:00
{"id": "year", "title": "Year", "type": "string"},
{"id": "language", "title": "Languages", "type": "string"},
{"id": "featuring", "title": "Featuring", "type": "string"},
{"id": "keywords", "title": "Keywords", "type": "string"}
2011-02-22 14:47:59 +00:00
],
/*
An itemKey must have the following properties:
id: The id of the key (as known by the server)
title: The title of the key (as displayed by the client)
type: text, string, float, integer, or array of any of these
and can have any of the following properties:
autocomplete: If true, find element will autocomplete
autocompleteSortKey: The key that suggestions will be sorted by
capability: A capability required to see this key
columnRequired: If true, the column can't be removed
columnWidth: Default column width in px
filter: if true, one can filter results by this key
find: If true, this key will appear as a find option
format: {type: "...", args: [...]}, for special formatting
(Ox.formatType(args) will be called)
sort: If true, one can sort results by this key
sortOperator: sort operator (+, -), in case it differs from the
default for the key's type (+ for strings, - for numbers)
sortType: special sort type (title, person)
value: {key: "...", type: "..."}, for keys that are derived
from other keys (like number of actors), or "capability"
*/
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,
2011-11-12 08:57:51 +00:00
"autocompleteSortKey": "timesaccessed",
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-13 16:01:32 +00:00
"title": "People",
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,
"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",
"title": "Contry",
"type": "string",
"autocomplete": true,
"columnWidth": 180,
"filter": true,
"find": true,
"sort": true
},
{
"id": "year",
"title": "Year",
2012-06-13 16:01:32 +00:00
"type": "string",
"columnWidth": 120,
"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
},
{
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",
"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-13 16:01:32 +00:00
"title": "Public 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": "float",
"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,
"format": {"type": "unit", "args": [":1"]},
"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": "canSeeFiles",
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": "canSeeFiles",
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": "canSeeFiles",
2012-06-13 16:01:32 +00:00
"find": true
},
{
"id": "filename",
"title": "Filename",
"type": ["string"],
"capability": "canSeeFiles",
"find": true
2011-02-22 14:47:59 +00:00
},
{
"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": "date", "args": ["%Y-%m-%d %H:%M:%S"]},
"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
],
"itemName": {
2011-02-22 16:42:26 +00:00
"singular": "Video",
"plural": "Videos"
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": "data", "title": "Data"},
{"id": "files", "title": "Files"}
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},
"item": "Note",
"overlap": true,
"private": true,
"showInfo": true,
"type": "text"
},
{
"id": "publicnotes",
2012-06-13 16:01:32 +00:00
"title": "Public Notes",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
"item": "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
],
"listViews": [
{"id": "list", "title": "as List"},
2011-12-30 09:21:43 +00:00
{"id": "grid", "title": "as Grid"},
//{"id": "info", "title": "with Info"},
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"},
2012-01-12 10:39:19 +00:00
//{"id": "maps", "title": "with Maps"},
//{"id": "calendars", "title": "with Calendars"},
2011-02-22 14:47:59 +00:00
{"id": "clip", "title": "as Clips"},
//{"id": "video", "title": "as Video"},
2011-02-22 14:47:59 +00:00
{"id": "map", "title": "on Map"},
{"id": "calendar", "title": "on Calendar"}
],
2011-08-11 14:15:56 +00:00
"media": {
"importPosters": false,
"importFrames": false
2011-08-11 14:15:56 +00:00
},
"personalLists": [
{"title": "Favorites"}
],
"rightsLevel": {"member": 2, "staff": 2, "admin": 2},
"rightsLevels": [
{"name": "Public", "color": [128, 255, 128]},
{"name": "Restricted", "color": [255, 192, 128]},
{"name": "Private", "color": [255, 128, 128]}
],
"sendReferrer": true,
2011-02-22 14:47:59 +00:00
"site": {
"description": "pan.do/ra is 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"
},
"id": "pandora",
2012-06-13 16:01:32 +00:00
"name": "pan.do/ra",
"url": "pandora.local",
"videoprefix": ""
2011-02-22 14:47:59 +00:00
},
"sitePages": [
{"id": "about", "title": "About"},
{"id": "news", "title": "News"},
//{"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
],
2012-03-17 06:31:34 +00:00
"timelines": [
{"id": "antialias", "title": "Anti-Alias"},
{"id": "slitscan", "title": "Slit-Scan"},
{"id": "keyframes", "title": "Key Frames"},
{"id": "audio", "title": "Audio"}
],
2011-02-22 14:47:59 +00:00
"totals": [
{"id": "items"},
{"id": "files", "admin": true},
{"id": "duration", "admin": true},
{"id": "size", "admin": true},
{"id": "pixels"}
],
2011-12-20 13:08:30 +00:00
"tv": {
"showLogo": false
},
2011-02-22 14:47:59 +00:00
"user": {
"level": "guest",
"ui": {
"annotationsCalendarSize": 128,
"annotationsFont": "small",
"annotationsMapSize": 128,
2012-06-13 16:01:32 +00:00
"annotationsRange": "position",
2011-02-22 14:47:59 +00:00
"annotationsSize": 256,
"annotationsSort": "position",
"clipsColumns": 2,
"columns": {
"Colors": {
"columns": ["title", "director", "language", "hue", "saturation", "brightness"],
"columnWidth": {}
2011-02-22 14:47:59 +00:00
}
},
"filters": [
2012-06-13 16:01:32 +00:00
{"id": "director", "sort": [{"key": "name", "operator": "+"}]},
{"id": "country", "sort": [{"key": "name", "operator": "+"}]},
{"id": "year", "sort": [{"key": "name", "operator": "-"}]},
{"id": "featuring", "sort": [{"key": "name", "operator": "+"}]},
{"id": "keywords", "sort": [{"key": "items", "operator": "-"}]}
],
"filtersSize": 176,
"find": {"conditions": [], "operator": "&"},
2012-04-17 12:02:32 +00:00
"followPlayer": true,
2012-06-13 16:01:32 +00:00
"icons": "frames",
"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": {},
"mapFind": "",
"mapSelection": "",
"page": "",
2011-02-22 14:47:59 +00:00
"section": "items",
"sequenceMode": "shape",
"sequenceSort": [{"key": "director", "operator": "+"}],
2011-02-22 14:47:59 +00:00
"showAnnotations": true,
2012-01-13 16:26:07 +00:00
"showAnnotationsCalendar": true,
"showAnnotationsMap": true,
"showBrowser": true,
"showCalendarControls": true, // fixme: should be false
"showFilters": true,
2012-01-15 15:05:37 +00:00
"showFlags": false,
"showHome": true,
"showIconBrowser": false,
2011-02-22 14:47:59 +00:00
"showInfo": true,
"showLayers": {
2012-06-13 16:01:32 +00:00
"places": false,
"events": false,
"keywords": true,
2012-06-13 16:01:32 +00:00
"descriptions": true,
"transcripts": true
},
"showMapControls": false,
"showMapLabels": false,
2011-02-22 14:47:59 +00:00
"showFolder": {
"items": {
"personal": true,
"favorite": true,
"featured": true,
"volumes": 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,
2011-08-19 15:37:37 +00:00
"theme": "classic",
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",
2012-03-17 06:31:34 +00:00
"videoTimeline": "antialias",
"videoView": "player",
"videoVolume": 1
},
"username": "",
"volumes": []
2011-02-22 16:42:26 +00:00
},
2011-08-19 14:43:05 +00:00
"userLevels": ["guest", "member", "staff", "admin"],
"video": {
2011-08-20 10:06:18 +00:00
"download": true,
"formats": ["webm"],
2012-01-30 21:16:58 +00:00
"previewRatio": 1.3333333333,
2012-04-19 16:14:43 +00:00
//supported resolutions are
//1080, 720, 480, 432, 360, 288, 240, 144, 96
2011-08-19 14:43:05 +00:00
"resolutions": [480, 240, 96]
}
}