forked from 0x2620/pandora
pass raw date value to query, fixes #2375
This commit is contained in:
parent
df44b0daf4
commit
679160e641
1 changed files with 4 additions and 3 deletions
|
@ -536,10 +536,11 @@ pandora.ui.infoView = function(data) {
|
||||||
return '<span class="OxLight">' + str + '</span>';
|
return '<span class="OxLight">' + str + '</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatLink(key, value) {
|
function formatLink(key, value, linkValue) {
|
||||||
|
linkValue = linkValue || value;
|
||||||
return (Ox.isArray(value) ? value : [value]).map(function(value) {
|
return (Ox.isArray(value) ? value : [value]).map(function(value) {
|
||||||
return key
|
return key
|
||||||
? '<a href="/' + key + '=' + value + '">' + value + '</a>'
|
? '<a href="/' + key + '=' + linkValue + '">' + value + '</a>'
|
||||||
: value;
|
: value;
|
||||||
}).join(', ');
|
}).join(', ');
|
||||||
}
|
}
|
||||||
|
@ -558,7 +559,7 @@ pandora.ui.infoView = function(data) {
|
||||||
if (nameKeys.indexOf(key) > -1) {
|
if (nameKeys.indexOf(key) > -1) {
|
||||||
key = 'name';
|
key = 'name';
|
||||||
}
|
}
|
||||||
return formatLink(key, ret);
|
return formatLink(key, ret, key == 'date' && value);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRightsLevelElement(rightsLevel) {
|
function getRightsLevelElement(rightsLevel) {
|
||||||
|
|
Loading…
Reference in a new issue