This commit is contained in:
j 2024-03-08 12:45:05 +00:00
parent 4833681e28
commit 80ba23b5aa

View file

@ -554,6 +554,10 @@ pandora.ui.documentInfoView = function(data, isMixed) {
var ret; var ret;
if (key == 'date' && (!value || value.split('-').length < 4)) { if (key == 'date' && (!value || value.split('-').length < 4)) {
ret = pandora.formatDate(value); 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) { } else if (nameKeys.indexOf(key) > -1) {
ret = formatLink(value.split(', '), key); ret = formatLink(value.split(', '), key);
} else if (listKeys.indexOf(key) > -1) { } else if (listKeys.indexOf(key) > -1) {