From ae913a49ad01a01b59316d7b2284d812c5ce23fc Mon Sep 17 00:00:00 2001 From: kouralex <1723419+kouralex@users.noreply.github.com> Date: Mon, 28 Nov 2022 17:40:04 +0200 Subject: [PATCH] respect skosmos:showNotation setting in autocomplete dropdown --- resource/js/docready.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resource/js/docready.js b/resource/js/docready.js index c94842d67..74b628afc 100644 --- a/resource/js/docready.js +++ b/resource/js/docready.js @@ -665,6 +665,8 @@ $(function() { // DOCUMENT READY if (item.hiddenLabel && hasNonHiddenMatch[item.uri]) { return null; } // do not show the label language when it's same or in the same subset as the ui language. if (item.lang && (item.lang === qlang || item.lang.indexOf(qlang + '-') === 0)) { delete(item.lang); } + // do not show notation code if is not requested + if (false === window.showNotation && 'notation' in item) { delete(item.notation); } if (item.type) { var toBeRemoved = null; item.typeLabel = item.type;