Bug 41435 - Use template plugin with built in caching for authorised value conversions in search results
Summary: Use template plugin with built in caching for authorised value conversions in...
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-11 21:27 UTC by Nick Clemens (kidclamp)
Modified: 2025-12-13 02:03 UTC (History)
1 user (show)

See Also:
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 (9.54 KB, patch)
2025-12-11 21:29 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 41435: Use AuthorisedValues.GetDescriptionByKohaField for search results (9.55 KB, patch)
2025-12-11 21:32 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 41435: Use AuthorisedValues.GetDescriptionByKohaField for search results (9.59 KB, patch)
2025-12-13 02:01 UTC, David Nind
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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.