When searching for an authority, 'see from' unlinked headings show as links that conduct new authority searches. These searches are 'any' and 'contains' searches so they end up being quite wide and unspecific, potentially producing more results than the original search that suggested this 'see from' heading.
Created attachment 166616 [details] [review] Bug 36660: Make Authorities 'see from' searches 'exact' This enhancement changes the search URL for 'see from' headings to look for an 'exact' match. When using a 'see from' heading, when Koha does a 'contains' search this is quite general and may fetch a bunch of unexpected results. This enhancement also changes the OPAC authority search to search on all headings when doing a 'see from' search, so the results mirror that on the staff interface. Also important if subheading info is stored in the $x or other subfields, for example. To test (assume using KTD): 1) In the staff interface, add a new topical term authority. Set the following values: 150$a: Quests 550$a: Travel 2) Add a second topical term authority, this is one we DON'T want showing in 'see from' results. Set the following values: 150$a: Cheques 550$a: Travellers' cheques 3) Do a 'main heading ($a only)' search for 'Quests'. Your new heading should show in the results, with 'Travel' showing as a see from searchable link. 4) Click the 'Travel' search link. Notice you get a few results, including the 'Cheques' heading which we don't want to show. 5) Follow steps 3 & 4 on the OPAC. Notice you get a few results, but your 'Quests' heading doesn't even show, which you may expect it to. 6) Apply the patch and restart services. 7) In the staff interface, go back to the Authorities homepage. 8) Repeat steps 3 & 4. Confirm you get the expected 'Quests' heading in the results, and do not get the 'Cheques' heading. 9) Repeat steps 3 & 4 on the OPAC. Confirm you get the expected 'Quests' heading in the results, and do not get the 'Cheques' heading. Sponsored-by: Education Services Australia SCIS
Created attachment 166659 [details] [review] Bug 36660: Make Authorities 'see from' searches 'exact' This enhancement changes the search URL for 'see from' headings to look for an 'exact' match. When using a 'see from' heading, when Koha does a 'contains' search this is quite general and may fetch a bunch of unexpected results. This enhancement also changes the OPAC authority search to search on all headings when doing a 'see from' search, so the results mirror that on the staff interface. Also important if subheading info is stored in the $x or other subfields, for example. To test (assume using KTD): 1) In the staff interface, add a new topical term authority. Set the following values: 150$a: Quests 550$a: Travel 2) Add a second topical term authority, this is one we DON'T want showing in 'see from' results. Set the following values: 150$a: Cheques 550$a: Travellers' cheques 3) Do a 'main heading ($a only)' search for 'Quests'. Your new heading should show in the results, with 'Travel' showing as a see from searchable link. 4) Click the 'Travel' search link. Notice you get a few results, including the 'Cheques' heading which we don't want to show. 5) Follow steps 3 & 4 on the OPAC. Notice you get a few results, but your 'Quests' heading doesn't even show, which you may expect it to. 6) Apply the patch and restart services. 7) In the staff interface, go back to the Authorities homepage. 8) Repeat steps 3 & 4. Confirm you get the expected 'Quests' heading in the results, and do not get the 'Cheques' heading. 9) Repeat steps 3 & 4 on the OPAC. Confirm you get the expected 'Quests' heading in the results, and do not get the 'Cheques' heading. Sponsored-by: Education Services Australia SCIS Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Created attachment 169031 [details] [review] Bug 36660: (follow-up) Use mainentry search for more accurate linked results Useful in particular when headings are split across the $a and the $x
Created attachment 172084 [details] [review] Bug 36660: Make Authorities 'see from' searches 'exact' This enhancement changes the search URL for 'see from' headings to look for an 'exact' match. When using a 'see from' heading, when Koha does a 'contains' search this is quite general and may fetch a bunch of unexpected results. This enhancement also changes the OPAC authority search to search on all headings when doing a 'see from' search, so the results mirror that on the staff interface. Also important if subheading info is stored in the $x or other subfields, for example. To test (assume using KTD): 1) In the staff interface, add a new topical term authority. Set the following values: 150$a: Quests 550$a: Travel 2) Add a second topical term authority, this is one we DON'T want showing in 'see from' results. Set the following values: 150$a: Cheques 550$a: Travellers' cheques 3) Do a 'main heading ($a only)' search for 'Quests'. Your new heading should show in the results, with 'Travel' showing as a see from searchable link. 4) Click the 'Travel' search link. Notice you get a few results, including the 'Cheques' heading which we don't want to show. 5) Follow steps 3 & 4 on the OPAC. Notice you get a few results, but your 'Quests' heading doesn't even show, which you may expect it to. 6) Apply the patch and restart services. 7) In the staff interface, go back to the Authorities homepage. 8) Repeat steps 3 & 4. Confirm you get the expected 'Quests' heading in the results, and do not get the 'Cheques' heading. 9) Repeat steps 3 & 4 on the OPAC. Confirm you get the expected 'Quests' heading in the results, and do not get the 'Cheques' heading. Sponsored-by: Education Services Australia SCIS Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Created attachment 172085 [details] [review] Bug 36660: (follow-up) Use mainentry search for more accurate linked results Useful in particular when headings are split across the $a and the $x Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>