zenodo-rdm icon indicating copy to clipboard operation
zenodo-rdm copied to clipboard

records-ui: render `obo:RO_0002453` custom fields

Open slint opened this issue 8 months ago • 0 comments

  • [ ] It looks like we had a custom UI widget in mind to render the obo:RO_0002453 custom field, but it's disabled in the config.
  • [ ] Check what is indexed since it's important that we can perform special search queries on these fields (i.e. sort of a "wildcard"-style search on either end of the fields). This requires some custom facets/filters since we'll need a nested query (TODO(@slint): find an example/docs from legacy).

We have records, like e.g. the one at https://zenodo.org/records/3949117, that contain a special type of custom metadata fields, capturing biotic interactions/relationships.

From the REST API response at https://zenodo.org/api/records/3949117 you can see the following metadata:

"custom": {
  "obo:RO_0002453": [
  {
    "subject": [
      "Mustela vison",
      "mink"
    ],
    "object": [
      "mink CoVs",
      "MCoVs"
    ]
  },
  {
    "subject": [
      "bovine"
    ],
    "object": [
      "Bovine CoV",
      "BCoV"
  ],
  ...
},

slint avatar Jun 10 '24 09:06 slint