]> git.koha-community.org Git - koha.git/commit
Bug 37167: Fix mapping call number searches to Z39.50
authorPhil Ringnalda <phil@chetcolibrary.org>
Tue, 25 Jun 2024 03:59:42 +0000 (20:59 -0700)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 1 Jul 2024 16:55:49 +0000 (18:55 +0200)
commit9c4b2c665fe6a8e1fa884608eff833911e47eb78
treefe317ae7fdb58125b0a0802ac2b43ffd9073e184
parent631f146ec346dca3ac2f31fd8b2c141a626edb5e
Bug 37167: Fix mapping call number searches to Z39.50

When you do an advanced search for call number, your search uses the index
callnum, but the code that maps your search to a possible Z39.50 search
still uses the index lcn,phr which was last used 15 years ago, so it's
treated as an unknown index and mapped to the Title field in the Z39.50
search form.

Test plan:
1. Click Search in the top menu to load Advanced Search
2. Change the dropdown menu for the first input from Keyword to Call
   Number, and paste TT174.3 in the input and search
3. Find the Z39.50/SRU search button in your results and click it
4. Note that your search was filled in the Title field
5. Apply patch, reset_all
6. Repeat steps 1-3, note that your search was filled in the Dewey field
7. Choose the server Library of Congress SRU and search
8. Note that even though we labelled it Dewey and you searched for an
   LC call number, your results are things with that call number in 050,
   the LC call number field.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
catalogue/search.pl