link format

This commit is contained in:
j 2019-06-06 16:34:11 +01:00
parent 5106794047
commit 90aa328706
1 changed files with 4 additions and 4 deletions

View File

@ -427,14 +427,14 @@ pandora.ui.documentInfoView = function(data, isMixed) {
ret = pandora.formatDate(value);
} else if (nameKeys.indexOf(key) > -1) {
ret = formatLink(value.split(', '), key);
} else if (listKeys.indexOf(key) > -1) {
ret = formatLink(value.split(', '), key);
} else if (['type', 'publisher', 'format', 'source'].indexOf(key) > -1) {
ret = formatLink(value, key);
} else if (key == 'links') {
ret = value.split(', ').map(function(link) {
return '<a href="' + link + '">' + Ox.parseURL(link).host + '</a>';
}).join(', ');
} else if (listKeys.indexOf(key) > -1) {
ret = formatLink(value.split(', '), key);
} else if (['type', 'publisher', 'format', 'source'].indexOf(key) > -1) {
ret = formatLink(value, key);
} else {
if (isMixed[key]) {
ret = 'Mixed'