From d6f27bb00a3806f073dbfb5e1f6e80997df64850 Mon Sep 17 00:00:00 2001 From: Demian Katz Date: Thu, 16 Jan 2025 10:52:32 -0500 Subject: [PATCH] Make files uniform. --- themes/bootstrap5/js/facets.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/bootstrap5/js/facets.js b/themes/bootstrap5/js/facets.js index 86e3a94d7cb..1bbd0475ef2 100644 --- a/themes/bootstrap5/js/facets.js +++ b/themes/bootstrap5/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[]'); }