exact search for document and item keys on info page
This commit is contained in:
parent
541aa201bf
commit
776ef3c6c6
2 changed files with 6 additions and 2 deletions
|
|
@ -528,10 +528,12 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
linkValue = linkValue || value
|
||||
linkValue = Ox.isArray(linkValue) ? linkValue: [linkValue]
|
||||
return (Ox.isArray(value) ? value : [value]).map(function(value, idx) {
|
||||
var itemKey = Ox.getObjectById(pandora.site.itemKeys, key),
|
||||
op = itemKey && itemKey.filter ? '==' : '=';
|
||||
return key
|
||||
? '<a href="/' + (
|
||||
key == 'alternativeTitles' ? 'title' : key
|
||||
) + '=' + pandora.escapeQueryValue(Ox.decodeHTMLEntities(linkValue[idx])) + '">' + value + '</a>'
|
||||
) + op + pandora.escapeQueryValue(Ox.decodeHTMLEntities(linkValue[idx])) + '">' + value + '</a>'
|
||||
: value;
|
||||
}).join(Ox.contains(specialListKeys, key) ? '; ' : ', ');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue