It seems that the enhancement introduced with bug 29990 (syspref: ShowHeadingUse) work only with zebra (generation of main/subject/series use info is made only in C4::AuthoritiesMarc == a zebra incarnation of search_auth_compat) and has no effect on ES search results. Wouldn't it be great if it worked in ES as well?
Created attachment 162062 [details] [review] Bug 36069: (bug 29990 follow-up) authority heading use in search results should work with ES as well It seems that the enhancement introduced with bug 29990 (syspref: ShowHeadingUse) works only with Zebra (generation of main/subject/series use info is made only in C4::AuthoritiesMarc == a Zebra incarnation of search_auth_compat) and has no effect on ES search results. This patch does the same for ES. Test plan: 1. Have an installation with Elasticsearch enabled. 2. Go to Koha Administration -> system preferences -> searching tab. Enable ShowHeadingUse system preference. 3. Do an authority search. Notice that in the Heading use column you get always 'x' for all use types: main/subject/series. 4. Apply the patch. 5. Do an authority search. Notice that you get now 'v' or 'x' for use types main/subject/series, depending on the 008/14-16 bytes.
Created attachment 162089 [details] [review] Bug 36069: (bug 29990 follow-up) authority heading use in search results should work with ES as well It seems that the enhancement introduced with bug 29990 (syspref: ShowHeadingUse) works only with Zebra (generation of main/subject/series use info is made only in C4::AuthoritiesMarc == a Zebra incarnation of search_auth_compat) and has no effect on ES search results. This patch does the same for ES. Test plan: 1. Have an installation with Elasticsearch enabled. 2. Go to Koha Administration -> system preferences -> searching tab. Enable ShowHeadingUse system preference. 3. Do an authority search. Notice that in the Heading use column you get always 'x' for all use types: main/subject/series. 4. Apply the patch. 5. Do an authority search. Notice that you get now 'v' or 'x' for use types main/subject/series, depending on the 008/14-16 bytes. Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
The patch in bug 33348 is another fix ahead, and just needs signoff and qa on the unit test *** This bug has been marked as a duplicate of bug 33348 ***