config: add itemRequiresVideo and capabilities.canAddItems, rename capabilities.canDeleteItems to capabilities.canRemoveItems, update indiancinema config

This commit is contained in:
rolux 2013-02-25 15:53:49 +05:30
parent d70a2e8e1b
commit 6ca9d97575
4 changed files with 36 additions and 32 deletions

View file

@ -26,7 +26,7 @@
for items of a rights level up to and including x for items of a rights level up to and including x
*/ */
"capabilities": { "capabilities": {
"canDeleteItems": {"admin": true}, "canAddItems": {"staff": true, "admin": true},
"canDownloadVideo": {"guest": -1, "member": -1, "friend": -1, "staff": -1, "admin": -1}, "canDownloadVideo": {"guest": -1, "member": -1, "friend": -1, "staff": -1, "admin": -1},
"canEditAnnotations": {"staff": true, "admin": true}, "canEditAnnotations": {"staff": true, "admin": true},
"canEditEvents": {"staff": true, "admin": true}, "canEditEvents": {"staff": true, "admin": true},
@ -43,6 +43,7 @@
"canManageUsers": {"staff": true, "admin": true}, "canManageUsers": {"staff": true, "admin": true},
"canPlayClips": {"guest": 2, "member": 2, "friend": 4, "staff": 4, "admin": 4}, "canPlayClips": {"guest": 2, "member": 2, "friend": 4, "staff": 4, "admin": 4},
"canPlayVideo": {"guest": 1, "member": 1, "friend": 4, "staff": 4, "admin": 4}, "canPlayVideo": {"guest": 1, "member": 1, "friend": 4, "staff": 4, "admin": 4},
"canRemoveItems": {"admin": true},
"canSeeAccessed": {"staff": true, "admin": true}, "canSeeAccessed": {"staff": true, "admin": true},
"canSeeDebugMenu": {"staff": true, "admin": true}, "canSeeDebugMenu": {"staff": true, "admin": true},
"canSeeExtraItemViews": {"staff": true, "admin": true}, "canSeeExtraItemViews": {"staff": true, "admin": true},
@ -50,8 +51,7 @@
"canSeeItem": {"guest": 3, "member": 3, "friend": 4, "staff": 4, "admin": 4}, "canSeeItem": {"guest": 3, "member": 3, "friend": 4, "staff": 4, "admin": 4},
"canSeeSize": {"friend": true, "staff": true, "admin": true}, "canSeeSize": {"friend": true, "staff": true, "admin": true},
"canSeeSoftwareVersion": {"staff": true, "admin": true}, "canSeeSoftwareVersion": {"staff": true, "admin": true},
"canSendMail": {"staff": true, "admin": true}, "canSendMail": {"staff": true, "admin": true}
"canUploadVideo": {"guest": false, "member": false, "staff": true, "admin": true}
}, },
/* /*
clipKeys are the properties that clips can by sorted by. clipKeys are the properties that clips can by sorted by.
@ -569,6 +569,7 @@
"singular": "Movie", "singular": "Movie",
"plural": "Movies" "plural": "Movies"
}, },
"itemRequiresVideo": true,
"itemViews": [ "itemViews": [
{"id": "info", "title": "Info"}, {"id": "info", "title": "Info"},
{"id": "player", "title": "Player"}, {"id": "player", "title": "Player"},

View file

@ -26,7 +26,7 @@
for items of a rights level up to and including x for items of a rights level up to and including x
*/ */
"capabilities": { "capabilities": {
"canDeleteItems": {"admin": true}, "canAddItems": {"student": true, "staff": true, "admin": true}
"canDownloadVideo": {"guest": -1, "member": -1, "student": -1, "staff": -1, "admin": -1}, "canDownloadVideo": {"guest": -1, "member": -1, "student": -1, "staff": -1, "admin": -1},
"canEditAnnotations": {"staff": true, "admin": true}, "canEditAnnotations": {"staff": true, "admin": true},
"canEditEvents": {"student": true, "staff": true, "admin": true}, "canEditEvents": {"student": true, "staff": true, "admin": true},
@ -43,6 +43,7 @@
"canManageUsers": {"staff": true, "admin": true}, "canManageUsers": {"staff": true, "admin": true},
"canPlayClips": {"guest": 1, "member": 1, "student": 3, "staff": 3, "admin": 3}, "canPlayClips": {"guest": 1, "member": 1, "student": 3, "staff": 3, "admin": 3},
"canPlayVideo": {"guest": 1, "member": 1, "student": 3, "staff": 3, "admin": 3}, "canPlayVideo": {"guest": 1, "member": 1, "student": 3, "staff": 3, "admin": 3},
"canRemoveItems": {"staff": true, "admin": true},
"canSeeAccessed": {"student": true, "staff": true, "admin": true}, "canSeeAccessed": {"student": true, "staff": true, "admin": true},
"canSeeDebugMenu": {"student": true, "staff": true, "admin": true}, "canSeeDebugMenu": {"student": true, "staff": true, "admin": true},
"canSeeExtraItemViews": {"student": true, "staff": true, "admin": true}, "canSeeExtraItemViews": {"student": true, "staff": true, "admin": true},
@ -50,8 +51,7 @@
"canSeeItem": {"guest": 3, "member": 3, "student": 3, "staff": 3, "admin": 3}, "canSeeItem": {"guest": 3, "member": 3, "student": 3, "staff": 3, "admin": 3},
"canSeeSize": {"student": true, "staff": true, "admin": true}, "canSeeSize": {"student": true, "staff": true, "admin": true},
"canSeeSoftwareVersion": {"student": true, "staff": true, "admin": true}, "canSeeSoftwareVersion": {"student": true, "staff": true, "admin": true},
"canSendMail": {"staff": true, "admin": true}, "canSendMail": {"staff": true, "admin": true}
"canUploadVideo": {"guest": false, "member": false, "student": true, "staff": true, "admin": true}
}, },
/* /*
clipKeys are the properties that clips can by sorted by. clipKeys are the properties that clips can by sorted by.
@ -192,7 +192,7 @@
"sort": true "sort": true
}, },
{ {
"id": "productioncompany", "id": "productionCompany",
"title": "Studio", "title": "Studio",
"type": ["string"], "type": ["string"],
"autocomplete": true, "autocomplete": true,
@ -202,17 +202,6 @@
"sort": true, "sort": true,
"sortType": "person" "sortType": "person"
}, },
{
"id": "writer",
"title": "Writer",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
"filter": true,
"find": true,
"sort": true,
"sortType": "person"
},
{ {
"id": "producer", "id": "producer",
"title": "Producer", "title": "Producer",
@ -224,6 +213,17 @@
"sort": true, "sort": true,
"sortType": "person" "sortType": "person"
}, },
{
"id": "writer",
"title": "Writer",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
"filter": true,
"find": true,
"sort": true,
"sortType": "person"
},
{ {
"id": "cinematographer", "id": "cinematographer",
"title": "Cinematographer", "title": "Cinematographer",
@ -263,14 +263,6 @@
"sort": true, "sort": true,
"value": {"key": "actor", "type": "length"} "value": {"key": "actor", "type": "length"}
}, },
{
"id": "character",
"title": "Character",
"type": ["string"],
"autocomplete": true,
"find": true,
"sortType": "string"
},
{ {
"id": "name", "id": "name",
"title": "Name", "title": "Name",
@ -283,6 +275,14 @@
"title": "TV Series", "title": "TV Series",
"type": "boolean" "type": "boolean"
}, },
{
"id": "keyword",
"title": "Keyword",
"type": ["string"],
"autocomplete": true,
"filter": true,
"find": true
},
{ {
"id": "summary", "id": "summary",
"title": "Summary", "title": "Summary",
@ -579,6 +579,7 @@
"singular": "Movie", "singular": "Movie",
"plural": "Movies" "plural": "Movies"
}, },
"itemRequiresVideo": false,
"itemViews": [ "itemViews": [
{"id": "info", "title": "Info"}, {"id": "info", "title": "Info"},
{"id": "player", "title": "Player"}, {"id": "player", "title": "Player"},

View file

@ -24,7 +24,7 @@
for items of a rights level up to and including x for items of a rights level up to and including x
*/ */
"capabilities": { "capabilities": {
"canDeleteItems": {"admin": true}, "canAddItems": {"member": true, "staff": true, "admin": true},
"canDownloadVideo": {"guest": 0, "member": 0, "staff": 4, "admin": 4}, "canDownloadVideo": {"guest": 0, "member": 0, "staff": 4, "admin": 4},
"canEditAnnotations": {"staff": true, "admin": true}, "canEditAnnotations": {"staff": true, "admin": true},
"canEditEvents": {"staff": true, "admin": true}, "canEditEvents": {"staff": true, "admin": true},
@ -41,6 +41,7 @@
"canManageUsers": {"staff": true, "admin": true}, "canManageUsers": {"staff": true, "admin": true},
"canPlayClips": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canPlayClips": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canPlayVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canPlayVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canRemoveItems": {"admin": true},
"canSeeAccessed": {"staff": true, "admin": true}, "canSeeAccessed": {"staff": true, "admin": true},
"canSeeDebugMenu": {"staff": true, "admin": true}, "canSeeDebugMenu": {"staff": true, "admin": true},
"canSeeExtraItemViews": {"staff": true, "admin": true}, "canSeeExtraItemViews": {"staff": true, "admin": true},
@ -48,8 +49,7 @@
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canSeeSize": {"staff": true, "admin": true}, "canSeeSize": {"staff": true, "admin": true},
"canSeeSoftwareVersion": {"staff": true, "admin": true}, "canSeeSoftwareVersion": {"staff": true, "admin": true},
"canSendMail": {"staff": true, "admin": true}, "canSendMail": {"staff": true, "admin": true}
"canUploadVideo": {"guest": false, "member": true, "staff": true, "admin": true}
}, },
/* /*
clipKeys are the properties that clips can by sorted by. clipKeys are the properties that clips can by sorted by.
@ -486,6 +486,7 @@
"singular": "Video", "singular": "Video",
"plural": "Videos" "plural": "Videos"
}, },
"itemRequiresVideo": true,
"itemViews": [ "itemViews": [
{"id": "info", "title": "Info"}, {"id": "info", "title": "Info"},
{"id": "player", "title": "Player"}, {"id": "player", "title": "Player"},

View file

@ -24,7 +24,7 @@
for items of a rights level up to and including x for items of a rights level up to and including x
*/ */
"capabilities": { "capabilities": {
"canDeleteItems": {"admin": true}, "canAddItems": {"member": true, "staff": true, "admin": true},
"canDownloadVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canDownloadVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canEditAnnotations": {"staff": true, "admin": true}, "canEditAnnotations": {"staff": true, "admin": true},
"canEditEvents": {"staff": true, "admin": true}, "canEditEvents": {"staff": true, "admin": true},
@ -41,6 +41,7 @@
"canManageUsers": {"staff": true, "admin": true}, "canManageUsers": {"staff": true, "admin": true},
"canPlayClips": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canPlayClips": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canPlayVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canPlayVideo": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canRemoveItems": {"admin": true},
"canSeeAccessed": {"staff": true, "admin": true}, "canSeeAccessed": {"staff": true, "admin": true},
"canSeeDebugMenu": {"staff": true, "admin": true}, "canSeeDebugMenu": {"staff": true, "admin": true},
"canSeeExtraItemViews": {"staff": true, "admin": true}, "canSeeExtraItemViews": {"staff": true, "admin": true},
@ -48,8 +49,7 @@
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4}, "canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
"canSeeSize": {"staff": true, "admin": true}, "canSeeSize": {"staff": true, "admin": true},
"canSeeSoftwareVersion": {"staff": true, "admin": true}, "canSeeSoftwareVersion": {"staff": true, "admin": true},
"canSendMail": {"staff": true, "admin": true}, "canSendMail": {"staff": true, "admin": true}
"canUploadVideo": {"guest": false, "member": true, "staff": true, "admin": true}
}, },
/* /*
clipKeys are the properties that clips can by sorted by. clipKeys are the properties that clips can by sorted by.
@ -409,6 +409,7 @@
"singular": "Video", "singular": "Video",
"plural": "Videos" "plural": "Videos"
}, },
"itemRequiresVideo": true,
"itemViews": [ "itemViews": [
{"id": "info", "title": "Info"}, {"id": "info", "title": "Info"},
{"id": "player", "title": "Player"}, {"id": "player", "title": "Player"},