update menu and config

This commit is contained in:
rlx 2016-08-09 13:35:47 +02:00
parent 8a04bb9625
commit 90486ec774
2 changed files with 4 additions and 1 deletions

View file

@ -55,6 +55,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"canEditUsers": {"admin": true},
"canExportAnnotations": {"member": true, "staff": true, "admin": true},
"canImportAnnotations": {"member": true, "staff": true, "admin": true},
"canImportItems": {"member": true, "staff": true, "admin": true},
"canManageDocuments": {"member": true, "staff": true, "admin": true},
"canManageEntities": {"member": true, "staff": true, "admin": true},
"canManagePlacesAndEvents": {"member": true, "staff": true, "admin": true},
@ -161,7 +162,6 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
with "{date}".
*/
"importMetadata": {
"keywords": "{tags}",
"summary": "{description}",
"title": "{title}"
},

View file

@ -387,6 +387,8 @@ pandora.ui.mainMenu = function() {
pandora.addItem();
} else if (data.id == 'upload') {
pandora.$ui.uploadVideoDialog = pandora.ui.uploadVideoDialog().open();
} else if (data.id == 'import') {
pandora.$ui.importMediaDialog = pandora.ui.importMediaDialog().open();
} else if (data.id == 'deletelist') {
pandora.ui.deleteListDialog().open();
} else if (data.id == 'print') {
@ -1042,6 +1044,7 @@ pandora.ui.mainMenu = function() {
return { id: 'itemMenu', title: Ox._('Item'), items: [
{ id: 'add', title: Ox._('Add {0}', [Ox._(pandora.site.itemName.singular)]), disabled: pandora.site.itemRequiresVideo || !pandora.site.capabilities.canAddItems[pandora.user.level] },
{ id: 'upload', title: Ox._('Upload Video...'), disabled: !pandora.site.capabilities.canAddItems[pandora.user.level] },
{ id: 'import', title: Ox._('Import Video...'), disabled: !pandora.site.capabilities.canImportItems[pandora.user.level] },
{},
{ id: 'selectall', title: Ox._('Select All {0}', [listItemsName]), disabled: !canSelect, keyboard: 'control a' },
{ id: 'selectnone', title: Ox._('Select None'), disabled: !canSelect, keyboard: 'shift control a' },