1 define(function(require) {
6 var Dialog = require('views/dialog/dialog'),
7 View = require('plugins/core/metadataEditor/view');
10 return function(ctx) {
12 name: 'showMetadataEditor',
14 doc: {type: 'context', name: 'document'}
18 label: gettext('Metadata'),
19 execute: function(callback, params) {
21 var dialog = Dialog.create({
22 title: gettext('Document Metadata'),
23 executeButtonText: gettext('Close'),
24 cssClass: 'metadataEditor'
26 view = new View(params.doc.root, ctx.config);
28 dialog.setContentView(view.dom);
29 dialog.on('execute', function(e) {
34 getState: function(params) {