padma.json

This commit is contained in:
j 2011-02-22 17:42:26 +01:00
parent 72b8f86172
commit 1b8a3b37ce
2 changed files with 230 additions and 313 deletions

View file

@ -1,366 +1,302 @@
{ {
"findKeys": [
{"id": "all", "title": "All"},
{"id": "title", "title": "Title", "autocomplete": true, "autocompleteSortKey": "votes"},
{"id": "director", "title": "Director", "autocomplete": true},
{"id": "country", "title": "Country", "autocomplete": true},
{"id": "year", "title": "Year", "autocomplete": true},
{"id": "language", "title": "Language", "autocomplete": true},
{"id": "writer", "title": "Writer", "autocomplete": true},
{"id": "producer", "title": "Producer", "autocomplete": true},
{"id": "cinematographer", "title": "Cinematographer", "autocomplete": true},
{"id": "editor", "title": "Editor", "autocomplete": true},
{"id": "actor", "title": "Actor", "autocomplete": true},
{"id": "character", "title": "Character", "autocomplete": true},
{"id": "name", "title": "Name", "autocomplete": true},
{"id": "genre", "title": "Genre", "autocomplete": true},
{"id": "keyword", "title": "Keyword", "autocomplete": true},
{"id": "summary", "title": "Summary"},
{"id": "dialog", "title": "Dialog"}
],
"groups": [ "groups": [
{"id": "director", "title": "Director"}, {"id": "director", "title": "Director"},
{"id": "country", "title": "Country"}, {"id": "collection", "title": "Collection"},
{"id": "year", "title": "Year"}, {"id": "year", "title": "Year"},
{"id": "language", "title": "Language"}, {"id": "language", "title": "Language"},
{"id": "genre", "title": "Genre"}, {"id": "category", "title": "Category"},
{"id": "writer", "title": "Writer"}, {"id": "contributor", "title": "Contributor"},
{"id": "producer", "title": "Producer"},
{"id": "cinematographer", "title": "Cinematographer"}, {"id": "cinematographer", "title": "Cinematographer"},
{"id": "editor", "title": "Editor"}, {"id": "source", "title": "Source"},
{"id": "actor", "title": "Actor"},
{"id": "keyword", "title": "Keyword"} {"id": "keyword", "title": "Keyword"}
], ],
"itemKeys": [ "itemKeys": [
{ {
"id": "title", "id": "title",
"title": "Title", "title": "Title",
"type": "string", "type": "string",
"find": {"autocomplete": true, "autocompleteSortKey": "votes"}, "autocomplete": true,
"sort": {"removable": false, "type": "title", "width": 180} "autocompleteSortKey": "popularity",
"columnRequired": true,
"columnWidth": 180,
"find": true,
"sort": "title"
}, },
{ {
"id": "director", "id": "director",
"title": "Director", "title": "Director",
"type": ["string"], "type": ["string"],
"find": {"autocomplete": true}, "autocomplete": true,
"sort": {"removable": false, "type": "person", "width": 180}, "columnRequired": true,
"group": true "columnWidth": 180,
"find": true,
"group": true,
"sort": "person"
}, },
{ {
"id": "country", "id": "collection",
"title": "Country", "title": "Collection",
"type": ["string"], "type": "string",
"find": {"autocomplete": true}, "autocomplete": true,
"sort": {"type": "string", "width": 180}, "columnWidth": 120,
"find": true,
"group": true "group": true
}, },
{ {
"id": "year", "id": "year",
"title": "Year", "title": "Year",
"type": "year", "type": "year",
"find": {"autocomplete": true}, "autocomplete": true,
"sort": {"type": "year", "width": 180}, "columnWidth": 60,
"find": true,
"group": true "group": true
}, },
{ {
"id": "language", "id": "language",
"title": "Language", "title": "Language",
"type": ["string"], "type": ["string"],
"find": {"autocomplete": true}, "autocomplete": true,
"sort": {"type": "string", "width": 180}, "columnWidth": 120,
"find": true,
"group": true "group": true
}, },
{
"id": "writer",
"title": "Writer",
"type": ["string"],
"find": {"autocomplete": true},
"sort": {"type": "person", "width": 180},
"group": true
},
{
"id":
"producer",
"type": ["string"],
"title": "Producer",
"find": {"autocomplete": true},
"sort": {"type": "person", "width": 180},
"group": true
},
{
"id": "cinematographer",
"title": "Cinematographer",
"type": ["string"],
"find": {"autocomplete": true},
"sort": {"type": "person", "width": 180},
"group": true
},
{
"id": "editor",
"title": "Editor",
"type": ["string"],
"find": {"autocomplete": true},
"sort": {"type": "person", "width": 180},
"group": true
},
{
"id": "actor",
"title": "Actor",
"type": ["string"],
"find": {"autocomplete": true},
"group": true
},
{
"id": "character",
"title": "Character",
"type": ["string"],
"find": {"autocomplete": true}
},
{
"id": "name",
"title": "Name",
"type": ["string"],
"find": {"autocomplete": true}
},
{
"id": "numberofactors",
"title": "Number of Actors",
"sort": {"type": "integer", "width": 60},
"value": {"key": "actor", "type": "length"},
"type": "integer"
},
{
"id": "genre",
"title": "Genre",
"type": ["string"],
"find": {"autocomplete": true},
"sort": {"type": "string", "width": 180},
"group": true
},
{
"id": "keyword",
"title": "Keyword",
"type": ["string"],
"find": {"autocomplete": true},
"group": true
},
{
"id": "numberofkeywords",
"title": "Number of Keyword",
"type": "integer",
"sort": {"type": "integer", "width": 60},
"value": {"key": "keyword", "type": "length"}
},
{ {
"id": "runtime", "id": "runtime",
"title": "Runtime", "title": "Runtime",
"type": "integer", "type": "integer",
"sort": {"type": "integer", "width": 60}, "columnWidth": 60,
"format": {"type": "duration", "args": [0, "medium"]} "format": {"type": "duration", "args": [0, "medium"]}
}, },
{ {
"id": "summary", "id": "source",
"title": "Summary", "title": "Source",
"type": "text", "type": "string",
"group": false, "autocomplete": true,
"find": {} "columnWidth": 180,
"find": true,
"group": true
}, },
{ {
"id": "dialog", "id": "genre",
"title": "Dialog", "title": "Genre",
"type": ["string"],
"autocomplete": true,
"columnWidth": 120,
"find": true,
"group": true
},
{
"id": "keyword",
"title": "Keyword",
"type": ["string"],
"autocomplete": true,
"find": true,
"group": true
},
{
"id": "numberofkeywords",
"title": "Number of Keywords",
"type": "integer",
"columnWidth": 60,
"value": {"key": "keyword", "type": "length"}
},
{
"id": "description",
"title": "Description",
"type": "text", "type": "text",
"group": false, "find": true
"find": {}
}, },
{ {
"id": "wordsinsummary", "id": "wordsinsummary",
"title": "Words in Summary", "title": "Words in Summary",
"sort": {"type": "integer", "width": 60},
"type": "integer", "type": "integer",
"value": {"key": "summary", "type": "words"} "columnWidth": 60,
}, "value": {"key": "description", "type": "words"}
{
"id": "wordsintrivia",
"title": "Words in Trivia",
"type": "integer",
"sort": {"type": "integer", "width": 60},
"value": {"key": "trivia", "type": "words"}
}, },
{ {
"id": "releasedate", "id": "releasedate",
"title": "Release Date", "title": "Release Date",
"sort": {"type": "date", "width": 120},
"type": "date", "type": "date",
"columnWidth": 120,
"format": {"type": "date", "args": ["%a, %b %e, %Y"]} "format": {"type": "date", "args": ["%a, %b %e, %Y"]}
}, },
{
"id": "budget",
"title": "Budget",
"sort": {"type": "integer", "width": 90},
"type": "integer",
"format": {"type": "currency", "args": ["$", 0]}
},
{
"id": "gross",
"title": "Gross",
"sort": {"type": "integer", "width": 90},
"type": "integer",
"format": {"type": "currency", "args": ["$", 0]}
},
{
"id": "profit",
"title": "Profit",
"sort": {"type": "integer", "width": 90},
"type": "integer",
"format": {"type": "currency", "args": ["$", 0]}
},
{
"id": "rating",
"title": "Rating",
"sort": {"type": "float", "width": 60},
"type": "float",
"format": {"type": "percent", "args": [10, 2]}
},
{
"id": "votes",
"title": "Votes",
"sort": {"type": "integer", "width": 60},
"type": "integer",
"format": {"type": "percent", "args": [403824, 2]}
},
{ {
"id": "id", "id": "id",
"title": "ID", "title": "ID",
"sort": {"type": "string", "width": 90}, "type": "string",
"type": "string" "columnWidth": 90
}, },
{ {
"id": "aspectratio", "id": "location",
"title": "Aspect Ratio", "title": "Locations",
"sort": {"type": "float", "width": 90}, "type": "layer",
"type": "float" "find": true
},
{
"id": "keyword",
"title": "Keywords",
"type": "layer",
"find": true
},
{
"id": "description",
"title": "Descriptions",
"type": "layer",
"find": true
},
{
"id": "transcript",
"title": "Transcripts",
"type": "layer",
"find": true
}, },
{ {
"id": "duration", "id": "duration",
"title": "Duration", "title": "Duration",
"sort": {"type": "float", "width": 90}, "type": "float",
"type": "float" "columnWidth": 90,
}, "format": {"type": "duration", "args": [0, "short"]}
{
"id": "color",
"title": "Color",
"sort": {"type": "float", "width": 90},
"type": "float"
},
{
"id": "saturation",
"title": "Saturation",
"sort": {"type": "float", "width": 60},
"type": "float"
},
{
"id": "brightness",
"title": "Brightness",
"sort": {"type": "float", "width": 60},
"type": "float"
},
{
"id": "volume",
"title": "Volume",
"sort": {"type": "float", "width": 60},
"type": "float"
},
{
"id": "clips",
"title": "Clips",
"sort": {"type": "integer", "width": 60},
"type": "integer"
},
{
"id": "cuts",
"title": "Cuts",
"sort": {"type": "integer", "width": 60},
"type": "integer"
},
{
"id": "cutsperminute",
"title": "Cuts per Minute",
"sort": {"type": "float", "width": 60},
"type": "float"
},
{
"id": "words",
"title": "Words",
"sort": {"type": "integer", "width": 60},
"type": "integer"
},
{
"id": "wordsperminute",
"title": "Words per Minute",
"sort": {"type": "float", "width": 60},
"type": "float"
}, },
{ {
"id": "resolution", "id": "resolution",
"title": "Resolution", "title": "Resolution",
"sort": {"type": "integer", "width": 90}, "type": ["integer"],
"type": "integer" "columnWidth": 90
},
{
"id": "aspectratio",
"title": "Aspect Ratio",
"type": "float",
"columnWidth": 90,
"format": {"type": "unit", "args": [":1"]}
}, },
{ {
"id": "pixels", "id": "pixels",
"title": "Pixels", "title": "Pixels",
"type": "integer", "type": "integer",
"group": false, "columnWidth": 90,
"sort": {"type": "integer", "width": 60}, "format": {"type": "value", "args": ["px"]}
"auto": true },
{
"id": "hue",
"title": "Hue",
"type": "hue",
"columnWidth": 90,
"format": {"type": "color", "args": ["hue"]}
},
{
"id": "saturation",
"title": "Saturation",
"type": "float",
"columnWidth": 90,
"format": {"type": "color", "args": ["greyscale"]}
},
{
"id": "lightness",
"title": "Lightness",
"type": "float",
"columnWidth": 90,
"format": {"type": "color", "args": ["greyscale"]}
},
{
"id": "volume",
"title": "Volume",
"type": "float",
"columnWidth": 60
},
{
"id": "numberofcuts",
"title": "Number of Cuts",
"type": "integer",
"columnWidth": 60,
"value": {"key": "cuts", "type": "length"}
},
{
"id": "cutsperminute",
"title": "Cuts per Minute",
"type": "float",
"columnWidth": 60,
"value": {"key": "cuts", "type": "lengthperminute"}
},
{
"id": "words",
"title": "Words",
"type": "integer",
"columnWidth": 60,
"value": {"layer": "subtitles", "type": "words"}
},
{
"id": "wordsperminute",
"title": "Words per Minute",
"type": "float",
"columnWidth": 60,
"value": {"layer": "subtitles", "type": "wordsperminute"}
}, },
{ {
"id": "size", "id": "size",
"title": "Size", "title": "Size",
"sort": {"type": "integer", "width": 60}, "type": "integer",
"type": "integer" "columnWidth": 60,
"format": {"type": "value", "args": ["B"]},
"rightsLevel": 1
}, },
{ {
"id": "bitrate", "id": "bitrate",
"title": "Bitrate", "title": "Bitrate",
"sort": {"type": "integer", "width": 60}, "type": "integer",
"type": "integer" "columnWidth": 60,
"format": {"type": "unit", "args": ["kbps"]}
}, },
{ {
"id": "files", "id": "numberoffiles",
"title": "Files", "title": "Number of Files",
"sort": {"type": "integer", "width": 60}, "type": "integer",
"type": "integer" "columnWidth": 60,
"value": {"key": "files", "type": "length"},
"rightsLevel": 1
}, },
{ {
"id": "filename", "id": "filename",
"title": "Filename", "title": "Filename",
"sort": {"type": "string", "width": 180}, "type": ["string"],
"type": "string" "find": true,
"rightsLevel": 1
}, },
{ {
"id": "published", "id": "published",
"title": "Date Published", "title": "Date Published",
"sort": {"type": "date", "width": 90}, "type": "date",
"type": "date" "columnWidth": 90
}, },
{ {
"id": "modified", "id": "modified",
"title": "Date Modified", "title": "Date Modified",
"sort": {"type": "date", "width": 90}, "type": "date",
"type": "date" "columnWidth": 90
},
{
"id": "accessed",
"title": "Date Accessed",
"type": "date",
"columnWidth": 90
},
{
"id": "viewed",
"title": "Date Viewed",
"type": "date",
"columnWidth": 90
}, },
{ {
"id": "popularity", "id": "popularity",
"title": "Popularity", "title": "Popularity",
"sort": {"type": "float", "width": 60}, "type": "integer",
"type": "float" "columnWidth": 60,
"format": {"type": "percent", "args": ["auto", 2]}
} }
], ],
"itemName": { "itemName": {
"singular": "Movie", "singular": "Video",
"plural": "Movies" "plural": "Videos"
}, },
"itemViews": [ "itemViews": [
{"id": "info", "title": "Info"}, {"id": "info", "title": "Info"},
@ -373,8 +309,31 @@
{"id": "files", "title": "Files", "admin": true} {"id": "files", "title": "Files", "admin": true}
], ],
"layers": [ "layers": [
{"id": "privatenotes", "title": "Private Notes", "type": "text", "private": true}, {
{"id": "publicnotes", "title": "Public Notes", "type": "text"} "id": "location",
"title": "Locations",
"type": "location",
"overlap": true,
"private": true
},
{
"id": "keyword",
"title": "Keywords",
"overlap": true,
"type": "text"
},
{
"id": "description",
"title": "Descriptions",
"type": "text",
"overlay": true
},
{
"id": "transcript",
"title": "Transcripts",
"type": "text",
"overlay": true
}
], ],
"listViews": [ "listViews": [
{"id": "list", "title": "as List"}, {"id": "list", "title": "as List"},
@ -399,51 +358,8 @@
{"id": "news", "title": "News"}, {"id": "news", "title": "News"},
{"id": "tour", "title": "Take a Tour"}, {"id": "tour", "title": "Take a Tour"},
{"id": "faq", "title": "Frequently Asked Questions"}, {"id": "faq", "title": "Frequently Asked Questions"},
{"id": "terms", "title": "Terms of Service"} {"id": "terms", "title": "Terms of Service"},
], {"id": "license", "title": "License"}
"sortKeys": [
{"id": "title", "title": "Title", "width": 180, "removable": false, "type": "title"},
{"id": "director", "title": "Director", "width": 180, "removable": false, "type": "person"},
{"id": "country", "title": "Country", "width": 120, "type": "string"},
{"id": "year", "title": "Year", "width": 60, "type": "year"},
{"id": "language", "title": "Language", "width": 120, "type": "string"},
{"id": "runtime", "title": "Runtime", "width": 60, "type": "integer", "format": {"type": "duration", "args": [0, "medium"]}},
{"id": "writer", "title": "Writer", "width": 180, "type": "person"},
{"id": "producer", "title": "Producer", "width": 180, "type": "person"},
{"id": "cinematographer", "title": "Cinematographer", "width": 180, "type": "person"},
{"id": "editor", "title": "Editor", "width": 180, "type": "person"},
{"id": "numberofactors", "title": "Number of Actors", "width": 60, "key": "actor", "type": "length"},
{"id": "genre", "title": "Genre", "width": 120, "type": "string"},
{"id": "numberofkeywords", "title": "Number of Keywords", "width": 60, "key": "keyword", "type": "length"},
{"id": "wordsinsummary", "title": "Words in Summary", "width": 60, "key": "summary", "type": "words"},
{"id": "wordsintrivia", "title": "Words in Trivia", "width": 60, "key": "trivia", "type": "words"},
{"id": "releasedate", "title": "Release Date", "width": 120, "type": "date", "format": {"type": "date", "args": ["%a, %b %e, %Y"]}},
{"id": "budget", "title": "Budget", "width": 90, "type": "integer", "format": {"type": "currency", "args": ["$", 0]}},
{"id": "gross", "title": "Gross", "width": 90, "type": "integer", "format": {"type": "currency", "args": ["$", 0]}},
{"id": "profit", "title": "Profit", "width": 90, "type": "integer", "format": {"type": "currency", "args": ["$", 0]}},
{"id": "rating", "title": "Rating", "width": 60, "type": "float", "format": {"type": "percent", "args": [10, 2]}},
{"id": "votes", "title": "Votes", "width": 60, "type": "integer", "format": {"type": "percent", "args": [403824, 2]}},
{"id": "id", "title": "ID", "width": 90, "type": "string"},
{"id": "aspectratio", "title": "Aspect Ratio", "width": 90, "type": "float"},
{"id": "duration", "title": "Duration", "width": 90, "type": "float"},
{"id": "color", "title": "Color", "width": 90, "type": "float"},
{"id": "saturation", "title": "Saturation", "width": 60, "type": "float"},
{"id": "brightness", "title": "Brightness", "width": 60, "type": "float"},
{"id": "volume", "title": "Volume", "width": 60, "type": "float"},
{"id": "clips", "title": "Clips", "width": 60, "type": "integer"},
{"id": "cuts", "title": "Cuts", "width": 60, "type": "integer"},
{"id": "cutsperminute", "title": "Cuts per Minute", "width": 60, "type": "float"},
{"id": "words", "title": "Words", "width": 60, "type": "integer"},
{"id": "wordsperminute", "title": "Words per Minute", "width": 60, "type": "float"},
{"id": "resolution", "title": "Resolution", "width": 90, "type": "integer"},
{"id": "pixels", "title": "Pixels", "width": 90, "type": "integer"},
{"id": "size", "title": "Size", "width": 90, "type": "integer"},
{"id": "bitrate", "title": "Bitrate", "width": 90, "type": "integer"},
{"id": "files", "title": "Files", "width": 60, "type": "integer"},
{"id": "filename", "title": "Filename", "width": 180, "type": "string"},
{"id": "published", "title": "Date Published", "width": 90, "type": "date"},
{"id": "modified", "title": "Date Modified", "width": 90, "type": "date"},
{"id": "popularity", "title": "Popularity", "type": "float"}
], ],
"totals": [ "totals": [
{"id": "items"}, {"id": "items"},
@ -479,7 +395,7 @@
"annotationsSize": 256, "annotationsSize": 256,
"findKey": "", "findKey": "",
"findQuery": {"conditions": [], "operator": ""}, "findQuery": {"conditions": [], "operator": ""},
"groups": ["director", "country", "year", "language", "genre"], "groups": ["director", "collection", "source", "language", "category"],
"groupsQuery": {"conditions": [], "operator": "|"}, "groupsQuery": {"conditions": [], "operator": "|"},
"groupsSize": 176, "groupsSize": 176,
"item": "", "item": "",
@ -488,7 +404,7 @@
"listQuery": {"conditions": [], "operator": ""}, "listQuery": {"conditions": [], "operator": ""},
"lists": { "lists": {
"": { "": {
"columns": ["id", "title", "director", "country", "year", "language", "runtime", "genre"], "columns": ["title", "director", "country", "year", "language", "runtime", "genre"],
"columnWidth": {}, "columnWidth": {},
"listView": "icons", "listView": "icons",
"selected": [], "selected": [],
@ -524,5 +440,6 @@
"videoSize": "small" "videoSize": "small"
}, },
"username": "" "username": ""
} },
"userLevels": ["guest", "member", "staff", "admin"]
} }

View file

@ -1,10 +1,10 @@
{% extends "admin/base.html" %} {% extends "admin/base.html" %}
{% load i18n %} {% load i18n %}
{% block title %}{{ title }} | pan.do/ra{% endblock %} {% block title %}{{ title }} | Pan.do/ra{% endblock %}
{% block branding %} {% block branding %}
<h1 id="site-name">0xdb.org</h1> <h1 id="site-name">Pan.do/ra</h1>
{% endblock %} {% endblock %}
{% block nav-global %}{% endblock %} {% block nav-global %}{% endblock %}