diff --git a/pandora/config.indiancinema.jsonc b/pandora/config.indiancinema.jsonc index c63c7c44..36a7deae 100644 --- a/pandora/config.indiancinema.jsonc +++ b/pandora/config.indiancinema.jsonc @@ -391,11 +391,29 @@ "sort": true }, { - "id": "notes", - "title": "Notes", + "id": "comments", + "title": "Comments", "type": "text", "capability": "canEditMetadata" }, + { + "id": "annotations", + "title": "Annotations", + "type": "string", // fixme: not the best type for this magic key + "find": true + }, + { + "id": "keywords", + "title": "Keywords", + "type": "layer", + "find": true + }, + { + "id": "notes", + "title": "Notes", + "type": "layer", + "find": true + }, { "id": "subtitles", "title": "Subtitles", @@ -544,8 +562,7 @@ "id": "filename", "title": "Filename", "type": ["string"], - "capability": "canSeeFiles", - "find": true + "capability": "canSeeFiles" }, { "id": "created", diff --git a/pandora/config.padma.jsonc b/pandora/config.padma.jsonc index a6f7931c..719cead5 100644 --- a/pandora/config.padma.jsonc +++ b/pandora/config.padma.jsonc @@ -263,7 +263,7 @@ { "id": "annotations", "title": "Annotations", - "type": "string", + "type": "string", // fixme: not the best type for this magic key "find": true }, { diff --git a/static/js/pandora/infoView.indiancinema.js b/static/js/pandora/infoView.indiancinema.js index 78934e22..bd24e35e 100644 --- a/static/js/pandora/infoView.indiancinema.js +++ b/static/js/pandora/infoView.indiancinema.js @@ -400,14 +400,14 @@ pandora.ui.infoView = function(data) { .appendTo($statistics); renderRightsLevel(); - // Notes ------------------------------------------------------------------- + // Comments ---------------------------------------------------------------- if (canEdit) { $('
') .css({marginBottom: '4px'}) .append( - formatKey('Notes', 'statistics').options({ + formatKey('Comments', 'statistics').options({ tooltip: 'Only ' + Object.keys(pandora.site.capabilities.canEditMetadata).map(function(level, i) { return ( @@ -416,23 +416,23 @@ pandora.ui.infoView = function(data) { : ' and ' ) + Ox.toTitleCase(level) }).join('') - + ' can see and edit these notes' + + ' can see and edit these comments' }) ) .append( Ox.EditableContent({ clickLink: pandora.clickLink, - placeholder: formatLight('No notes'), + placeholder: formatLight('No comments'), tooltip: pandora.getEditTooltip(), type: 'textarea', - value: data.notes, + value: data.comments, width: 128 }) .bindEvent({ submit: function(event) { pandora.api.edit({ id: data.id, - notes: event.value + comments: event.value }, function(result) { // ... });