exact match if it has a filter
This commit is contained in:
parent
cc48cc2f22
commit
c71a2c3ff0
1 changed files with 4 additions and 1 deletions
|
@ -470,8 +470,11 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
|||
|
||||
function formatLink(value, key) {
|
||||
return (Ox.isArray(value) ? value : [value]).map(function(value) {
|
||||
var documentKey = Ox.getObjectById(pandora.site.documentKeys, key),
|
||||
op = documentKey && documentKey.filter ? '==' : '=';
|
||||
|
||||
return key
|
||||
? '<a href="/documents/' + key + '=' + value + '">' + value + '</a>'
|
||||
? '<a href="/documents/' + key + op + value + '">' + value + '</a>'
|
||||
: value;
|
||||
}).join(', ');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue