update menu and config
This commit is contained in:
parent
8a04bb9625
commit
90486ec774
2 changed files with 4 additions and 1 deletions
|
@ -55,6 +55,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
||||||
"canEditUsers": {"admin": true},
|
"canEditUsers": {"admin": true},
|
||||||
"canExportAnnotations": {"member": true, "staff": true, "admin": true},
|
"canExportAnnotations": {"member": true, "staff": true, "admin": true},
|
||||||
"canImportAnnotations": {"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},
|
"canManageDocuments": {"member": true, "staff": true, "admin": true},
|
||||||
"canManageEntities": {"member": true, "staff": true, "admin": true},
|
"canManageEntities": {"member": true, "staff": true, "admin": true},
|
||||||
"canManagePlacesAndEvents": {"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}".
|
with "{date}".
|
||||||
*/
|
*/
|
||||||
"importMetadata": {
|
"importMetadata": {
|
||||||
"keywords": "{tags}",
|
|
||||||
"summary": "{description}",
|
"summary": "{description}",
|
||||||
"title": "{title}"
|
"title": "{title}"
|
||||||
},
|
},
|
||||||
|
|
|
@ -387,6 +387,8 @@ pandora.ui.mainMenu = function() {
|
||||||
pandora.addItem();
|
pandora.addItem();
|
||||||
} else if (data.id == 'upload') {
|
} else if (data.id == 'upload') {
|
||||||
pandora.$ui.uploadVideoDialog = pandora.ui.uploadVideoDialog().open();
|
pandora.$ui.uploadVideoDialog = pandora.ui.uploadVideoDialog().open();
|
||||||
|
} else if (data.id == 'import') {
|
||||||
|
pandora.$ui.importMediaDialog = pandora.ui.importMediaDialog().open();
|
||||||
} else if (data.id == 'deletelist') {
|
} else if (data.id == 'deletelist') {
|
||||||
pandora.ui.deleteListDialog().open();
|
pandora.ui.deleteListDialog().open();
|
||||||
} else if (data.id == 'print') {
|
} else if (data.id == 'print') {
|
||||||
|
@ -1042,6 +1044,7 @@ pandora.ui.mainMenu = function() {
|
||||||
return { id: 'itemMenu', title: Ox._('Item'), items: [
|
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: '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: '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: 'selectall', title: Ox._('Select All {0}', [listItemsName]), disabled: !canSelect, keyboard: 'control a' },
|
||||||
{ id: 'selectnone', title: Ox._('Select None'), disabled: !canSelect, keyboard: 'shift control a' },
|
{ id: 'selectnone', title: Ox._('Select None'), disabled: !canSelect, keyboard: 'shift control a' },
|
||||||
|
|
Loading…
Reference in a new issue