From f21b85e34eaa2597b738f27bb285a7ee1884e55a Mon Sep 17 00:00:00 2001 From: Demian Katz Date: Thu, 16 Jan 2025 10:52:18 -0500 Subject: [PATCH] Add comment. --- themes/bootstrap3/js/facets.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/bootstrap3/js/facets.js b/themes/bootstrap3/js/facets.js index 86e3a94d7cb..1bbd0475ef2 100644 --- a/themes/bootstrap3/js/facets.js +++ b/themes/bootstrap3/js/facets.js @@ -171,6 +171,8 @@ VuFind.register('multiFacetsSelection', function multiFacetsSelection() { * @returns string */ function normalizeSearchQueryKey(key) { + // Advanced search parameters could take one of two forms -- e.g. lookfor0[] or lookfor0[0]; this + // regular expression normalizes them to the more common non-indexed form for uniform comparisons. return key.replace(/(bool|lookfor|type)(\d+)\[\d+\]/, '$1$2[]'); }