Bug 37744

Summary: MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a
Product: Koha Reporter: Olli-Antti Kivilahti <olli-antti.kivilahti>
Component: CatalogingAssignee: Olli-Antti Kivilahti <olli-antti.kivilahti>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy, phil
Version: 24.05   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37743
GIT URL: 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
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a
Bug 37744 - MARC21slimUtils.xslt show-series has a wrong search index 'au' for 810$a

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.