esmero / strawberryfield

A Field of strawberries
GNU Lesser General Public License v3.0
10 stars 5 forks source link

Write entity labels into JSON for the Webform "Entity reference elements" #284

Closed fishfree closed 8 months ago

fishfree commented 9 months ago

image For the elements above, strawberryfield can only write the entityid into JSON: image

If the entity label can also be written into the JSON, then we can use them later inStrawberry Key Name Providersand other scopes.

fishfree commented 9 months ago

@DiegoPino Hello, Diego, could you have a look at this issue, please? I think my issue is significant for extending meta-data description for ADOs.

DiegoPino commented 9 months ago

@fishfree I thought I had answered this, this not really an issue. Also, not something that makes sense changing since its a Drupal integration (you want to have numbers BC then how will webform now when "editing" what the original taxonomy ID you saved was?)

In archipelago You can use Key Name providers already to convert ANY entity type (using any Numeric ID value present in your JSON) natively (for Solr or the rest of the Drupal environment) and thus index just the label/facet, etc.

Side note: Using Taxonomies is (for portability, replication, stability and also Linked Open Data) really not a recommended way for Metadata/cataloging/libraries and museums. E.g, What if someone deletes a taxonomy? What if someone changes it?What if you have to recreate your taxonomies in another repository and your IDs change? That is why we encourage to use real Vocabularies from external public sources that bring back stable URIs and labels (a time/specific in time snapshot of what a cataloger saw) of a reality, but since we do have users using taxonomies already AND key Name providers already have the capacity of converting/extracting etc for Solr what you need, you can do this if WIKIDATA, LoC, VIAF, GETTY are not good for your need.

Here is a screenshot of "ismemberof" keyname provider using the NODE ID to load an entity. Same can be done for Taxonomies.

image

fishfree commented 9 months ago

@DiegoPino Thank you for your tip!

DiegoPino commented 8 months ago

Closing as resolved