]> git.koha-community.org Git - koha.git/commit
Bug 37244: Facets should not impact library pulldown.
authorAndreas Jonsson <andreas.jonsson@kreablo.se>
Wed, 3 Jul 2024 13:15:40 +0000 (13:15 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 5 Jul 2024 13:48:07 +0000 (15:48 +0200)
commita6457c14aad50ad3d1b0a855f0ce0875500f432e
treecd0789d7d3c2698cf955accdbcb28954b7107753
parenta84a5fc7d0a1e476707607dddd158b7b9bdbb549
Bug 37244: Facets should not impact library pulldown.

When parsing the branch limits the regular expression matches
parameters that contains the substring "branch:" rather than the prefix
"^branch:". Consequently, both prefixes homebranch: and holdingbranch:
triggers the branch limit.

Test plan:

- Activate the system preference  IntranetAddMastheadLibraryPulldown.
- In staff interface:
  - Perform a catalogue search (e.g. "book").
  - Click on a facet for holding library or home library
    (e.g. "Fairview").
  - Click on the "more options" icon in the search box and make sure
    that "All libraries" is selected.
- Activate the system preference  OpacAddMastheadLibraryPulldown
- In opac:
  - Perform a catalogue search (e.g. "book").
  - Click on a facet for holding library or home library
    (e.g. "Fairview").
  - Make sure "All libraries" is still selected in the dropdown next
    to the search input.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/Auth.pm
catalogue/search.pl