sul-dlss / exhibits

Stanford University Libraries online exhibits showcase
https://exhibits.stanford.edu
Other
19 stars 7 forks source link

Create hierarchical facet category for roles #2527

Open alundgard opened 2 weeks ago

alundgard commented 2 weeks ago

Related to #2506 and #2526.

Add a new facet category called Role which is hierarchical, similar to the Workflows (WPS) hierarchical facet found in Argo.

The Role facet should contain toggleable subgroups for each role, indicated by a + icon to expand (or a - icon to collapse). Toggling a subgroup (e.g., “Curator”) opens a sublist of Creator/Contributor names (e.g., “Baker, Clint” and “Smith, Hal (Drummer)”). Unlike the new Creators/Contributors display field, do not include the names' corresponding roles in parentheses.

Figma File: https://www.figma.com/design/zaK3bvWYhO5Mg55utHQl8g/Exhibits?node-id=509-20951

Role Hierarchical Facet

taylor-steve commented 4 days ago

This may have already been done in a similar fashion in vt-arclight and earthworks. Worth checking if it can be re-used?

Might need to check with @alundgard on what to do in cases where a person has no roles.