Bug 36660 - Make Authorities 'see from' searches more specific
Summary: Make Authorities 'see from' searches more specific
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Aleisha Amohia
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-22 02:55 UTC by Aleisha Amohia
Modified: 2024-09-26 20:44 UTC (History)
1 user (show)

See Also:
Change sponsored?: Sponsored
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 36660: Make Authorities 'see from' searches 'exact' (3.79 KB, patch)
2024-05-13 01:09 UTC, Aleisha Amohia
Details | Diff | Splinter Review
Bug 36660: Make Authorities 'see from' searches 'exact' (3.84 KB, patch)
2024-05-13 22:20 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 36660: (follow-up) Use mainentry search for more accurate linked results (2.29 KB, patch)
2024-07-16 01:31 UTC, Aleisha Amohia
Details | Diff | Splinter Review
Bug 36660: Make Authorities 'see from' searches 'exact' (3.90 KB, patch)
2024-09-26 20:43 UTC, Biblibre Sandboxes
Details | Diff | Splinter Review
Bug 36660: (follow-up) Use mainentry search for more accurate linked results (2.34 KB, patch)
2024-09-26 20:43 UTC, Biblibre Sandboxes
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Aleisha Amohia 2024-04-22 02:55:26 UTC
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.
Comment 1 Aleisha Amohia 2024-05-13 01:09:33 UTC
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
Comment 2 Lucas Gass (lukeg) 2024-05-13 22:20:24 UTC
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>
Comment 3 Aleisha Amohia 2024-07-16 01:31:17 UTC
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
Comment 4 Biblibre Sandboxes 2024-09-26 20:43:50 UTC
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>
Comment 5 Biblibre Sandboxes 2024-09-26 20:43:52 UTC
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>