diff --git a/static/js/info.js b/static/js/info.js
index 6262817..3263a81 100644
--- a/static/js/info.js
+++ b/static/js/info.js
@@ -51,7 +51,7 @@ oml.ui.info = function() {
$('
')
.addClass('OxSelectable')
.css({fontWeight: 'bold'})
- .text((data.author || []).join(', '))
+ .text(oml.formatAuthor(data.author))
.appendTo(that);
$('
')
.addClass('OxSelectable')
diff --git a/static/js/utils.js b/static/js/utils.js
index 5a7a24f..a838e53 100644
--- a/static/js/utils.js
+++ b/static/js/utils.js
@@ -582,6 +582,17 @@ oml.enableDragAndDrop = function($list, canMove) {
};
+oml.formatAuthor = function(author) {
+ var isEditor = false;
+ return (author || []).map(function(value) {
+ if (Ox.endsWith(value, ' (Ed.)')) {
+ isEditor = true;
+ value = value.slice(0, -6);
+ }
+ return value;
+ }).join(', ') + (isEditor ? ' (Ed.)' : '');
+};
+
oml.getEditTooltip = function(title) {
return function(e) {
var $target = $(e.target);