Bug 41435

Summary: Use template plugin with built in caching for authorised value conversions in search results
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: david
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 41435: Use AuthorisedValues.GetDescriptionByKohaField for search results
Bug 41435: Use AuthorisedValues.GetDescriptionByKohaField for search results
Bug 41435: Use AuthorisedValues.GetDescriptionByKohaField for search results

Description Nick Clemens (kidclamp) 2025-12-11 21:27:20 UTC
Some values in search results use:
AuthorisedValues.GetDescriptionByKohaField

Some are looked up in the script

For consistency and readability we should be consistent
Comment 1 Nick Clemens (kidclamp) 2025-12-11 21:29:28 UTC Comment hidden (obsolete)
Comment 2 Nick Clemens (kidclamp) 2025-12-11 21:32:45 UTC
Created attachment 190448 [details] [review]
Bug 41435: Use AuthorisedValues.GetDescriptionByKohaField for search results

To test:
 1 - Do some search on the interface
 2 - Check the results
 3 - Apply patch
 4 - Restart all
 5 - Confirm notforloan, collectioncode, and shelving locations are still correctly described


Current status: Needs Signoff
Comment 3 David Nind 2025-12-13 02:01:53 UTC
Created attachment 190475 [details] [review]
Bug 41435: Use AuthorisedValues.GetDescriptionByKohaField for search results

To test:
 1 - Do some search on the interface
 2 - Check the results
 3 - Apply patch
 4 - Restart all
 5 - Confirm notforloan, collectioncode, and shelving locations are still correctly described

Signed-off-by: David Nind <david@davidnind.com>
Comment 4 David Nind 2025-12-13 02:03:33 UTC
Testing notes (using KTD):

1. No differences noted in search results when using Elasticsearch (both staff interface and OPAC).

2. Bonus: added some OPAC descriptions for the authorized values, and these were shown correctly.