From 776ef3c6c691c5f3d789a029ee7d121b2a9a11db Mon Sep 17 00:00:00 2001 From: j Date: Thu, 16 Oct 2025 13:07:48 +0100 Subject: [PATCH] exact search for document and item keys on info page --- static/js/documentInfoView.js | 4 +++- static/js/infoView.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/documentInfoView.js b/static/js/documentInfoView.js index 8e2a20a9..1e95728d 100644 --- a/static/js/documentInfoView.js +++ b/static/js/documentInfoView.js @@ -423,8 +423,10 @@ 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 - ? '' + value + '' + ? '' + value + '' : value; }).join(', '); } diff --git a/static/js/infoView.js b/static/js/infoView.js index 440cb9b0..59cccc69 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -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 ? '' + value + '' + ) + op + pandora.escapeQueryValue(Ox.decodeHTMLEntities(linkValue[idx])) + '">' + value + '' : value; }).join(Ox.contains(specialListKeys, key) ? '; ' : ', '); }