improvent to groups and context browser

This commit is contained in:
rolux 2011-01-03 06:44:38 +00:00
commit 19f6c7d82f
4 changed files with 414 additions and 316 deletions

View file

@ -18,7 +18,19 @@
{"id": "summary", "title": "Summary"},
{"id": "dialog", "title": "Dialog"}
],
"groups": ["director", "country", "year", "language", "genre"],
"groups": [
{"id": "director", "title": "Director"},
{"id": "country", "title": "Country"},
{"id": "year", "title": "Year"},
{"id": "language", "title": "Language"},
{"id": "genre", "title": "Genre"},
{"id": "writer", "title": "Writer"},
{"id": "producer", "title": "Producer"},
{"id": "cinematographer", "title": "Cinematographer"},
{"id": "editor", "title": "Editor"},
{"id": "actor", "title": "Actor"},
{"id": "keyword", "title": "Keyword"}
],
"itemName": {
"singular": "Movie",
"plural": "Movies"
@ -61,48 +73,48 @@
{"id": "featured", "title": "Featured Lists"}
],
"sortKeys": [
{"id": "title", "title": "Title", "operator": "", "align": "left", "width": 180, "removable": false},
{"id": "director", "title": "Director", "operator": "", "align": "left", "width": 180, "removable": false},
{"id": "country", "title": "Country", "operator": "", "align": "left", "width": 120},
{"id": "year", "title": "Year", "operator": "-", "align": "right", "width": 60},
{"id": "language", "title": "Language", "operator": "", "align": "left", "width": 120},
{"id": "runtime", "title": "Runtime", "operator": "-", "align": "right", "width": 60},
{"id": "writer", "title": "Writer", "operator": "", "align": "left", "width": 180},
{"id": "producer", "title": "Producer", "operator": "", "align": "left", "width": 180},
{"id": "cinematographer", "title": "Cinematographer", "operator": "", "align": "left", "width": 180},
{"id": "editor", "title": "Editor", "operator": "", "align": "left", "width": 180},
{"id": "actors", "title": "Number of Actors", "operator": "-", "align": "right", "width": 60},
{"id": "genre", "title": "Genre", "operator": "", "align": "left", "width": 120},
{"id": "keywords", "title": "Number of Keywords", "operator": "-", "align": "right", "width": 60},
{"id": "summary", "title": "Words in Summary", "operator": "-", "align": "right", "width": 60},
{"id": "trivia", "title": "Words in Trivia", "operator": "-", "align": "right", "width": 60},
{"id": "releasedate", "title": "Release Date", "operator": "-", "align": "left", "width": 90},
{"id": "budget", "title": "Budget", "operator": "-", "align": "right", "width": 90},
{"id": "gross", "title": "Gross", "operator": "-", "align": "right", "width": 90},
{"id": "profit", "title": "Profit", "operator": "-", "align": "right", "width": 90},
{"id": "rating", "title": "Rating", "operator": "-", "align": "right", "width": 60},
{"id": "votes", "title": "Votes", "operator": "-", "align": "right", "width": 90},
{"id": "id", "title": "ID", "operator": "", "align": "left", "width": 90},
{"id": "aspectratio", "title": "Aspect Ratio", "operator": "-", "align": "left", "width": 90},
{"id": "duration", "title": "Duration", "operator": "-", "align": "right", "width": 90},
{"id": "color", "title": "Color", "operator": "", "align": "left", "width": 90},
{"id": "saturation", "title": "Saturation", "operator": "-", "align": "right", "width": 60},
{"id": "brightness", "title": "Brightness", "operator": "-", "align": "right", "width": 60},
{"id": "volume", "title": "Volume", "operator": "-", "align": "right", "width": 60},
{"id": "clips", "title": "Clips", "operator": "-", "align": "right", "width": 60},
{"id": "cuts", "title": "Cuts", "operator": "-", "align": "right", "width": 60},
{"id": "cutsperminute", "title": "Cuts per Minute", "operator": "-", "align": "right", "width": 60},
{"id": "words", "title": "Words", "operator": "-", "align": "right", "width": 60},
{"id": "wordsperminute", "title": "Words per Minute", "operator": "-", "align": "right", "width": 60},
{"id": "resolution", "title": "Resolution", "operator": "-", "align": "left", "width": 90},
{"id": "pixels", "title": "Pixels", "operator": "-", "align": "right", "width": 90},
{"id": "size", "title": "Size", "operator": "-", "align": "right", "width": 90},
{"id": "bitrate", "title": "Bitrate", "operator": "-", "align": "right", "width": 90},
{"id": "files", "title": "Files", "operator": "-", "align": "right", "width": 60},
{"id": "filename", "title": "Filename", "operator": "", "align": "left", "width": 180},
{"id": "published", "title": "Date Published", "operator": "-", "align": "left", "width": 90},
{"id": "modified", "title": "Date Modified", "operator": "-", "align": "left", "width": 90},
{"id": "popularity", "title": "Popularity", "operator": "-", "align": "left", "width": 60}
{"id": "title", "title": "Title", "width": 180, "removable": false, "type": "title", "autocompleteSortKey": "votes"},
{"id": "director", "title": "Director", "width": 180, "removable": false, "type": "person"},
{"id": "country", "title": "Country", "width": 120, "type": "text"},
{"id": "year", "title": "Year", "width": 60, "type": "year"},
{"id": "language", "title": "Language", "width": 120, "type": "text"},
{"id": "runtime", "title": "Runtime", "width": 60, "type": "integer"},
{"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": "actors", "title": "Number of Actors", "width": 60, "type": "person"},
{"id": "genre", "title": "Genre", "width": 120, "type": "text"},
{"id": "keyword", "title": "Number of Keywords", "width": 60, "type": "integer"},
{"id": "summary", "title": "Words in Summary", "width": 60, "type": "words"},
{"id": "trivia", "title": "Words in Trivia", "width": 60, "type": "words"},
{"id": "releasedate", "title": "Release Date", "width": 90, "type": "date"},
{"id": "budget", "title": "Budget", "width": 90, "type": "integer"},
{"id": "gross", "title": "Gross", "width": 90, "type": "integer"},
{"id": "profit", "title": "Profit", "width": 90, "type": "integer"},
{"id": "rating", "title": "Rating", "width": 60, "type": "float"},
{"id": "votes", "title": "Votes", "width": 90, "type": "integer"},
{"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": "text"},
{"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": [
{"id": "items"},
@ -118,6 +130,7 @@
"ui": {
"columns": ["id", "title", "director", "country", "year", "language", "genre"],
"findQuery": {"conditions": [], "operator": ""},
"groups": ["director", "country", "year", "language", "genre"],
"groupsQuery": {"conditions": [], "operator": "|"},
"groupsSize": 176,
"item": "",