Create facets for all categorySchemes of a dataflow
During new loading process, for each dataflow(agencyId, dataflowId, version):
call {url}/dataflow/
{agencyId}/{dataflowId}/
{version}/?detail=referencepartial&references=all
from the result:
- get the categories and their categoryschemes associated to the dataflow, e.g. category1-1 and category1-2 in categoryschemeName1 and category3-1 in categoryschemeName3 --> Note that this can include new categoryschemes that were not defined before in datasource queries
- Create a facet for all categorySchemes and use the related categories as field values, e.g. "categoryschemeName1"=["categoryName1-1", "categoryName1-2"], "categoryschemeName3"=["categoryName3-1"] (including hierarchy if exists)
Edited by eric-basley