ecrin-github / MDR_FuiPortal

Blazor based Server (API) and client portal for the MDR
MIT License
2 stars 1 forks source link

xml export: have locations on different nodes, not as list #7

Closed sergiocontrino closed 10 months ago

sergiocontrino commented 1 year ago

request from renato@ebi:

If possible, we would like you to change a bit the XML generated. If you see https://newmdr.ecrin.org/api/Study/OmicsDIdata/CRC/3002/3, you will see a couple entries where multiple location values are under the same location XML node. Could you change things to have location be like keyword where each value is in a separate XML node? The same should probable be done for the COVID endpoint. The way the XML is, our search facets would not be usable.

sergiocontrino commented 10 months ago

code to change is FetchOmicsDIData

possibly the quickest way is to manipulate the res string, so that

<field name="location">United States, Canada, France, Germany, Italy, Netherlands, Spain</field>

becomes

 <field name="location">United States</field>
 <field name="location">Canada</field>
  etc.
sergiocontrino commented 10 months ago

fixed