ec-doris / kohesio-frontend

Web interface for Kohesio project
https://kohesio.ec.europa.eu
8 stars 0 forks source link

Add fund and multiple CCIS in parameters for embedded map #912

Closed raphdom closed 2 months ago

raphdom commented 3 months ago

Add fund and multiple CCIS in parameters for embedded map

raphdom commented 3 months ago

@DiaZork can you add the filter(multiple CCI's) on backend side? for map endpoint only. @ntorbev can you change the documentation of the embedded map also? docs/embbeded-map.md

DiaZork commented 3 months ago

@raphdom it's already on dev

raphdom commented 2 months ago

@DiaZork We have an error when we try to execute this query with one cci, I can see an error in kohesio-backend, can you help us? what we are doing wrong?

https://kohesio.development.ec.europa.eu/wikibase/facet/eu/search/project/map?cci[0]=https://linkedopendata.eu/entity/Q2463051

DiaZork commented 2 months ago

So first i've fix a bug there was in the API And the CCI field take a CCI not the URI of the program so for Q2463051 it's 2014BE05M9OP001 to use this URI you have to put it in the program field (that doesn't support multiple value, is it wanted ?) And last find i don't think this way ?cci[0]= is supported to give a list you just have to comma separate the value ?cci=value1,value2,etc and only keep 1 value if you only need one

raphdom commented 2 months ago

@DiaZork Great, this is working fine: https://kohesio.development.ec.europa.eu/wikibase/facet/eu/search/project/map?cci=2014BE05M9OP001 But not this: https://kohesio.development.ec.europa.eu/wikibase/facet/eu/search/project/map?cci=2014BE05M9OP001,2014BE05M9OP002