Compare commits
No commits in common. "4833681e2890a0977390e4199896dc4897384100" and "505e300e6051fceb7a9c47ae2544ed35589b2b9b" have entirely different histories.
4833681e28
...
505e300e60
1 changed files with 1 additions and 19 deletions
|
|
@ -20,9 +20,7 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
||||||
margin = 16,
|
margin = 16,
|
||||||
nameKeys = [
|
nameKeys = [
|
||||||
"group",
|
"group",
|
||||||
"source",
|
"source"
|
||||||
"publication",
|
|
||||||
"format",
|
|
||||||
].concat(pandora.site.documentKeys.filter(function(key) {
|
].concat(pandora.site.documentKeys.filter(function(key) {
|
||||||
return key.sortType == 'person';
|
return key.sortType == 'person';
|
||||||
}).map(function(key) {
|
}).map(function(key) {
|
||||||
|
|
@ -33,13 +31,6 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
||||||
}).map(function(key){
|
}).map(function(key){
|
||||||
return key.id;
|
return key.id;
|
||||||
}),
|
}),
|
||||||
displayedKeys = [ // FIXME: can tis be a flag in the config?
|
|
||||||
'title', 'notes', 'name', 'description', 'id',
|
|
||||||
'user', 'rightslevel', 'timesaccessed',
|
|
||||||
'extension', 'dimensions', 'size', 'matches',
|
|
||||||
'created', 'modified', 'accessed',
|
|
||||||
'random', 'entity'
|
|
||||||
].concat(pandora.site.documentKeys.filter(key => { return key.fulltext }).map(key => key.id)),
|
|
||||||
statisticsWidth = 128,
|
statisticsWidth = 128,
|
||||||
|
|
||||||
$bar = Ox.Bar({size: 16})
|
$bar = Ox.Bar({size: 16})
|
||||||
|
|
@ -662,7 +653,6 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
||||||
|
|
||||||
function renderGroup(keys) {
|
function renderGroup(keys) {
|
||||||
var $element;
|
var $element;
|
||||||
keys.forEach(function(key) { displayedKeys.push(key) });
|
|
||||||
if (canEdit || keys.filter(function(key) {
|
if (canEdit || keys.filter(function(key) {
|
||||||
return data[key];
|
return data[key];
|
||||||
}).length) {
|
}).length) {
|
||||||
|
|
@ -675,7 +665,6 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
||||||
$('<span>').html(formatKey(key)).appendTo($element);
|
$('<span>').html(formatKey(key)).appendTo($element);
|
||||||
Ox.EditableContent({
|
Ox.EditableContent({
|
||||||
clickLink: pandora.clickLink,
|
clickLink: pandora.clickLink,
|
||||||
editable: canEdit,
|
|
||||||
format: function(value) {
|
format: function(value) {
|
||||||
return formatValue(key, value);
|
return formatValue(key, value);
|
||||||
},
|
},
|
||||||
|
|
@ -689,13 +678,6 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.appendTo($element);
|
.appendTo($element);
|
||||||
if (isMixed[key] && Ox.contains(listKeys, key)) {
|
|
||||||
pandora.ui.addRemoveKeyDialog({
|
|
||||||
ids: ui.collectionSelection,
|
|
||||||
key: key,
|
|
||||||
section: ui.section
|
|
||||||
}).appendTo($element)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$element.appendTo($text);
|
$element.appendTo($text);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue