Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz authored Jan 16, 2025
1 parent 7e95412 commit f21b85e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions themes/bootstrap3/js/facets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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[]');
}

Expand Down

0 comments on commit f21b85e

Please sign in to comment.