This commit is contained in:
j 2024-03-08 12:45:05 +00:00
parent 4833681e28
commit 80ba23b5aa
1 changed files with 4 additions and 0 deletions

View File

@ -554,6 +554,10 @@ pandora.ui.documentInfoView = function(data, isMixed) {
var ret;
if (key == 'date' && (!value || value.split('-').length < 4)) {
ret = pandora.formatDate(value);
} else if (key == 'links') {
ret = value.split(', ').map(function(link) {
return '<a href="' + link + '">' + Ox.parseURL(link).host + '</a>';
}).join(', ');
} else if (nameKeys.indexOf(key) > -1) {
ret = formatLink(value.split(', '), key);
} else if (listKeys.indexOf(key) > -1) {