pandora/pandora/padma.jsonc

595 lines
19 KiB
Text
Raw Normal View History

/*
Pan.do/ra Settings
You can edit this file.
*/
2011-02-22 14:47:59 +00:00
{
/*
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": {
// "canClickMap": {"friend": true, "staff": true, "admin": true},
"canDeleteItems": {"admin": true},
"canDownloadVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canEditAnnotations": {"staff": true, "admin": true},
"canEditFeaturedLists": {"staff": true, "admin": true},
"canEditMetadata": {"staff": true, "admin": true},
"canEditSitePages": {"staff": true, "admin": true},
"canEditUsers": {"admin": true},
"canPlayClips": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canPlayVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canSeeDebugMenu": {"staff": true, "admin": true},
"canSeeFiles": {"staff": true, "admin": true},
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
2011-12-29 12:42:19 +00:00
"canSeeExtraItemViews": {"friend": true, "staff": true, "admin": true},
"canSendMail": {"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"}
],
// fixme: either this, or filter: true in itemKeys, but not both
"filters": [
{"id": "source", "title": "Sources", "type": "string"},
{"id": "project", "title": "Projects", "type": "string"},
2012-01-09 09:55:52 +00:00
{"id": "topic", "title": "Topics", "type": "string"},
{"id": "name", "title": "People", "type": "string"},
{"id": "keywords", "title": "Keywords", "type": "string"},
{"id": "language", "title": "Languages", "type": "string"},
2011-12-27 09:40:11 +00:00
{"id": "places", "title": "Places", "type": "string"},
{"id": "year", "title": "Years", "type": "integer"},
{"id": "director", "title": "Directors", "type": "string"},
{"id": "cinematographer", "title": "Cinematographers", "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
find: If true, will appear as a find option
filter: if true, one can filter results by this key
format: {type: "...", args: [...]}, for special formatting
(Ox.formatType(args) will be called)
sort: special sort rule (title, person)
sortOperator: sort operator (+, -), in case it differs from the
default for the key's type (+ for strings, - for numbers)
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": "title"
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,
2011-02-22 16:42:26 +00:00
"find": true,
"sort": "person"
2011-02-22 14:47:59 +00:00
},
2011-12-29 12:42:19 +00:00
{
"id": "cinematographer",
"title": "Cinematographer",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
"filter": true,
"find": true,
"sort": "person"
},
{
"id": "features",
"title": "Features",
"type": ["string"],
"autocomplete": true,
"columnRequired": true,
"columnWidth": 180,
"filter": true,
"find": true,
"sort": "person"
},
{
"id": "name",
"title": "Name",
"type": ["string"],
"autocomplete": true,
"find": true
},
2011-02-22 14:47:59 +00:00
{
"id": "project",
"title": "Project",
2011-02-22 16:42:26 +00:00
"type": "string",
"autocomplete": true,
"columnWidth": 120,
"filter": true,
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "year",
"title": "Year",
"type": "year",
2011-02-22 16:42:26 +00:00
"autocomplete": true,
"columnWidth": 60,
"filter": true,
"find": true
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
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "runtime",
"title": "Runtime",
"type": "time",
2011-02-22 16:42:26 +00:00
"columnWidth": 60,
"format": {"type": "duration", "args": [0, "medium"]}
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "source",
"title": "Source",
"type": "string",
"autocomplete": true,
"columnWidth": 180,
"filter": true,
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "topic",
"title": "Topic",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
"filter": true,
"find": true
},
{
"id": "location",
"title": "Location",
"type": "string",
"autocomplete": true,
"columnWidth": 180,
"filter": true,
"find": true
},
2011-02-22 14:47:59 +00:00
{
2011-02-22 16:42:26 +00:00
"id": "description",
"title": "Description",
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": "wordsinsummary",
"title": "Words in Summary",
"type": "integer",
2011-02-22 16:42:26 +00:00
"columnWidth": 60,
"value": {"key": "description", "type": "words"}
2011-02-22 14:47:59 +00:00
},
{
2011-11-10 20:19:15 +00:00
"id": "created",
"title": "Date Created",
2011-02-22 14:47:59 +00:00
"type": "date",
2011-02-22 16:42:26 +00:00
"columnWidth": 120,
2011-02-22 14:47:59 +00:00
"format": {"type": "date", "args": ["%a, %b %e, %Y"]}
},
{
2011-02-22 16:42:26 +00:00
"id": "id",
"title": "ID",
"type": "string",
"columnWidth": 90
2011-02-22 14:47:59 +00:00
},
{
2011-12-27 09:40:11 +00:00
"id": "places",
"title": "Places",
2011-02-22 16:42:26 +00:00
"type": "layer",
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "keywords",
2011-02-22 16:42:26 +00:00
"title": "Keywords",
"type": "layer",
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "descriptions",
2011-02-22 16:42:26 +00:00
"title": "Descriptions",
"type": "layer",
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "transcripts",
2011-02-22 16:42:26 +00:00
"title": "Transcripts",
"type": "layer",
"find": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "duration",
"title": "Duration",
"type": "float",
"columnWidth": 90,
"format": {"type": "duration", "args": [0, "short"]}
},
{
"id": "resolution",
"title": "Resolution",
"type": ["integer"],
"columnWidth": 90
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"]}
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"]}
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"]}
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": ["greyscale"]}
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": ["greyscale"]}
2011-02-22 14:47:59 +00:00
},
{
"id": "volume",
"title": "Volume",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 60
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,
"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,
"value": {"key": "cuts", "type": "lengthperminute"}
2011-02-22 14:47:59 +00:00
},
{
"id": "words",
"title": "Words",
2011-02-22 16:42:26 +00:00
"type": "integer",
"columnWidth": 60,
"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,
"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"]}
2011-02-22 14:47:59 +00:00
},
{
"id": "bitrate",
"title": "Bitrate",
2011-02-22 16:42:26 +00:00
"type": "integer",
"columnWidth": 60,
"format": {"type": "unit", "args": ["kbps"]}
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,
"value": {"key": "files", "type": "length"}
2011-02-22 14:47:59 +00:00
},
{
"id": "filename",
"title": "Filename",
2011-02-22 16:42:26 +00:00
"type": ["string"],
"capability": "canSeeFiles",
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "modified",
"title": "Date Modified",
2011-02-22 16:42:26 +00:00
"type": "date",
"columnWidth": 90
},
{
"id": "accessed",
"title": "Date Accessed",
"type": "date",
"columnWidth": 90
},
{
2011-11-10 20:19:15 +00:00
"id": "timesaccessed",
"title": "Times Accessed",
2011-02-22 16:42:26 +00:00
"type": "integer",
2011-11-10 20:19:15 +00:00
"columnWidth": 60
},
{
"id": "rightslevel",
"title": "Rights Level",
"type": "enum",
"columnWidth": 90,
"format": {"type": "ColorLevel", "args": [
["Public", "Restricted", "Private"]
]},
"sortOperator": "+",
"values": ["Public", "Restricted", "Private", "Unknown"]
}
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": "clips", "title": "Clips"},
{"id": "video", "title": "Video"},
2011-02-22 14:47:59 +00:00
{"id": "timeline", "title": "Timeline"},
{"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": [
2011-02-22 16:42:26 +00:00
{
2011-12-27 09:40:11 +00:00
"id": "places",
"title": "Places",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
2012-01-11 12:22:59 +00:00
"item": "Place",
"overlap": true,
"type": "place"
},
{
"id": "events",
"title": "Events",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
2012-01-11 12:22:59 +00:00
"item": "Event",
"overlap": true,
"type": "event"
2011-02-22 16:42:26 +00:00
},
{
"id": "keywords",
2011-02-22 16:42:26 +00:00
"title": "Keywords",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
2012-01-11 12:22:59 +00:00
"item": "Keyword",
2011-02-22 16:42:26 +00:00
"overlap": true,
2011-12-26 14:30:30 +00:00
"type": "string"
2011-02-22 16:42:26 +00:00
},
{
"id": "descriptions",
2011-02-22 16:42:26 +00:00
"title": "Descriptions",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
2012-01-11 12:22:59 +00:00
"item": "Description",
"overlay": true,
"type": "text"
2011-02-22 16:42:26 +00:00
},
{
"id": "transcripts",
2011-02-22 16:42:26 +00:00
"title": "Transcripts",
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
2012-01-11 12:22:59 +00:00
"item": "Transcript",
"overlay": true,
"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": "clips", "title": "with Clips"},
{"id": "timelines", "title": "with Timelines"},
{"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": {
"importMoviePosters": false,
"importPosterFrames": false
},
"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": "Pad.ma is an online archive of densely text-annotated video material, primarily footage and not finished films. The entire collection is searchable and viewable online, and is free to download for non-commercial use.",
"email": {
// E-mail address in contact form (to)
"contact": "pad.ma@pad.ma",
2011-12-18 09:27:15 +00:00
"footer": "-- \nPad.ma - http://pad.ma",
"prefix": "Pad.ma Newsletter -",
// E-mail address uses by the system (from)
"system": "system@pad.ma"
},
"id": "padma",
"name": "Pad.ma",
"url": "pad.ma",
"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
],
"totals": [
{"id": "items"},
{"id": "runtime"},
{"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": {
"annotationsFont": "small",
"annotationsRange": "position",
2011-02-22 14:47:59 +00:00
"annotationsSize": 256,
"annotationsSort": "position",
"clipsColumns": 2,
"columns": {
"Colors": {
"columns": ["title", "director", "location", "source", "hue", "saturation", "brightness"],
"columnWidth": {}
2011-02-22 14:47:59 +00:00
}
},
"filters": [
{"id": "source", "sort": [{"key": "name", "operator": "+"}]},
{"id": "project", "sort": [{"key": "name", "operator": "+"}]},
{"id": "topic", "sort": [{"key": "items", "operator": "-"}]},
2012-01-09 09:55:52 +00:00
{"id": "name", "sort": [{"key": "items", "operator": "-"}]},
{"id": "keywords", "sort": [{"key": "items", "operator": "-"}]},
2011-12-27 09:40:11 +00:00
{"id": "places", "sort": [{"key": "items", "operator": "-"}]}
],
"filtersSize": 176,
"find": {"conditions": [], "operator": "&"},
2011-12-28 12:35:10 +00:00
"icons": "frames",
"infoIconSize": 256,
"item": "",
"itemFind": {"conditions": [], "operator": "&"},
"itemSort": [{"key": "position", "operator": "+"}],
"itemView": "info",
2012-01-09 09:55:52 +00:00
"listColumns": ["title", "director", "location", "source", "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",
"showAnnotations": true,
"showBrowser": true,
"showCalendarControls": true, // fixme: should be false
"showFilters": true,
"showFlags": true,
"showHome": true,
"showIconBrowser": false,
2011-02-22 14:47:59 +00:00
"showInfo": true,
"showLayers": {
"places": true,
"events": true,
"keywords": true,
"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",
"videoPoints": {},
2011-12-27 13:52:16 +00:00
"videoResolution": 240,
"videoScale": "fit",
"videoMuted": false,
"videoSize": "small",
"videoView": "video",
"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,
2011-08-19 21:03:35 +00:00
"formats": ["webm", "mp4"],
2011-08-19 14:43:05 +00:00
"resolutions": [480, 240, 96]
}
2011-02-22 14:47:59 +00:00
}