Bug 36398 - Handle "specials" authorised value category for ES facets
Summary: Handle "specials" authorised value category for ES facets
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on: 36396 36399
Blocks:
  Show dependency treegraph
 
Reported: 2024-03-22 10:02 UTC by Jonathan Druart
Modified: 2024-03-28 07:29 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2024-03-22 10:02:30 UTC
It's currently not possible to link a special authorised value category to an ES facet: library, itemtype, location, etc.

This is because how (badly) we fetch/cache the authorised values. Improvements must be done in this area before supporting them here.
Comment 1 Jonathan Druart 2024-03-28 07:29:08 UTC
It's actually branches (homebranch, holdingbranch), itemtype and cn_source. And there is a "special special" that is "language/ln".

However some existing hardcoded facets should use the link: Location, Collections.

Location is built in _convert_facets (Koha::SearchEngine::Elasticsearch::Search) and Collections in the include file: AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => facet.facet_label_value )
Absolutely not consistent!