Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a
Summary: MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 24.05
Hardware: All All
: P5 - low enhancement
Assignee: Olli-Antti Kivilahti
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-27 10:27 UTC by Olli-Antti Kivilahti
Modified: 2024-09-17 21:38 UTC (History)
2 users (show)

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


Attachments
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a (2.42 KB, patch)
2024-08-27 10:28 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a (2.42 KB, patch)
2024-08-27 10:29 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a (2.42 KB, patch)
2024-08-28 06:46 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a (3.63 KB, patch)
2024-08-28 07:10 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Olli-Antti Kivilahti 2024-08-27 10:27:33 UTC
Using Elasticsearch

810$a is not indexed in Elastic search mappings as an 'author'-index -field.
810 is mapped to the 'author-name-corporate'-index.
'author-name-corporate'-index is the correct index for 810-field.

TEST PLAN:
- Create a record with Fields 810$a and 810$t
- A Series-link is generated in the biblio detail.pl and search results XSLT-views.
- The link has a bad search query: (title-series:"Value from 810$t") (author:"Value from 810$a")
-- 'author'-search doesnt find anything as the 810$a is not indexed to 'author'-index.
- This patch changes the 'author'-search to 'author-name-corporate'-search, and the search returns results.

Alternatively:
It might be desirable to add 810$a to the 'author'-index.
There is a specific search for 'author-name-corporate' using the advanced search.

Related to:
Bug 37743 - MARC21 810$t is used in XSLT templates but is not editable by default.
Comment 1 Olli-Antti Kivilahti 2024-08-27 10:28:28 UTC
Created attachment 170756 [details] [review]
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a

Using Elasticsearch

810$a is not indexed in Elastic search mappings as an 'author'-index -field.
810 is mapped to the 'author-name-corporate'-index.
'author-name-corporate'-index is the correct index for 810-field.

TEST PLAN:
- Create a record with Fields 810$a and 810$t
- A Series-link is generated in the biblio detail.pl and search results XSLT-views.
- The link has a bad search query: (title-series:"Value from 810$t") (author:"Value from 810$a")
-- 'author'-search doesnt find anything as the 810$a is not indexed to 'author'-index.
- This patch changes the 'author'-search to 'author-name-corporate'-search, and the search returns results.

Alternatively:
It might be desirable to add 810$a to the 'author'-index.
There is a specific search for 'author-name-corporate' using the advanced search.

Related to:
Bug XXXX - MARC21 810$t is used in XSLT templates but is not editable by default.
Comment 2 Olli-Antti Kivilahti 2024-08-27 10:29:14 UTC
Created attachment 170757 [details] [review]
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a

Using Elasticsearch

810$a is not indexed in Elastic search mappings as an 'author'-index -field.
810 is mapped to the 'author-name-corporate'-index.
'author-name-corporate'-index is the correct index for 810-field.

TEST PLAN:
- Create a record with Fields 810$a and 810$t
- A Series-link is generated in the biblio detail.pl and search results XSLT-views.
- The link has a bad search query: (title-series:"Value from 810$t") (author:"Value from 810$a")
-- 'author'-search doesnt find anything as the 810$a is not indexed to 'author'-index.
- This patch changes the 'author'-search to 'author-name-corporate'-search, and the search returns results.

Alternatively:
It might be desirable to add 810$a to the 'author'-index.
There is a specific search for 'author-name-corporate' using the advanced search.

Related to:
Bug 37743 - MARC21 810$t is used in XSLT templates but is not editable by default.
Comment 3 Olli-Antti Kivilahti 2024-08-28 06:46:28 UTC
Created attachment 170797 [details] [review]
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a

Using Elasticsearch

810$a is not indexed in Elastic search mappings as an 'author'-index -field.
810 is mapped to the 'author-name-corporate'-index.
'author-name-corporate'-index is the correct index for 810-field.

TEST PLAN:
- Create a record with Fields 810$a and 810$t
- A Series-link is generated in the biblio detail.pl and search results XSLT-views.
- The link has a bad search query: (title-series:"Value from 810$t") (author:"Value from 810$a")
-- 'author'-search doesnt find anything as the 810$a is not indexed to 'author'-index.
- This patch changes the 'author'-search to 'author-name-corporate'-search, and the search returns results.

Alternatively:
It might be desirable to add 810$a to the 'author'-index.
There is a specific search for 'author-name-corporate' using the advanced search.

Related to:
Bug 37743 - MARC21 810$t is used in XSLT templates but is not editable by default.
Comment 4 Olli-Antti Kivilahti 2024-08-28 07:10:32 UTC
Created attachment 170798 [details] [review]
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a

Using Elasticsearch

810$a is not indexed in Elastic search mappings as an 'author'-index -field.
810 is mapped to the 'author-name-corporate'-index.
'author-name-corporate'-index is the correct index for 810-field.

TEST PLAN:
- Create a record with Fields 810$a and 810$t
- A Series-link is generated in the biblio detail.pl and search results XSLT-views.
- The link has a bad search query: (title-series:"Value from 810$t") (author:"Value from 810$a")
-- 'author'-search doesnt find anything as the 810$a is not indexed to 'author'-index.
- This patch changes the 'author'-search to 'author-name-corporate'-search, and the search returns results.

Alternatively:
It might be desirable to add 810$a to the 'author'-index.
There is a specific search for 'author-name-corporate' using the advanced search.

Related to:
Bug 37743 - MARC21 810$t is used in XSLT templates but is not editable by default.