link format
This commit is contained in:
parent
5106794047
commit
90aa328706
1 changed files with 4 additions and 4 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue