minicomp / wax-facets

The second Wax theme. Good times.
https://minicomp.github.io/wax-facets/
Other
9 stars 8 forks source link

Display multi-value facets without separator on item layout page #49

Closed jocelynpender closed 1 year ago

jocelynpender commented 1 year ago

Is it possible to display multi-value data with a prettier separator on item layout pages? For example, my jurisdiction facet has multi-values separated by pipes, and displays these pipes on my item layout (example: https://atlantichabitatmodels.github.io/data/inputs/accdc/). It would be nice to print them with a comma instead 😄 I guess I could use comma as my multi-value separator to solve this issue?

amzoss commented 1 year ago

Yes, you could change the separator in the original metadata file, or you could probably also process the data in the item metadata include. You could try passing value to a split on "|", and then join the array back up with a different separator.

jocelynpender commented 1 year ago

Thank you for your help @amzoss! If anyone stumbles upon this issue in the future, they can check out how I resolved this in my repo: https://github.com/atlantichabitatmodels/data/commit/4d4b1c0fad7059a2247923f31264ab5e66f30a2e