Skip to content

Curate sort order of facet terms  #233

@ACharbonneau

Description

@ACharbonneau

Summary

We could allow the CFDE-CC to curate the presentation order of values in a facet by adding a rank value to the vocabulary tables.

For each affected vocabulary:

  1. Add a rank (integer or float?) to the vocab tracking table in the registry
    • but ank is not added in c2m2 vocab table, i.e. rank not controlled by submitting DCC
    • default value can be null, saying no preferred order for newly discovered terms
  2. Modify the catalog prep ETL to augment vocab table in the prepared catalog with rank column
    • pull ranks from registry and copy into local vocab
    • gaps occur when a submission introduces new terms and/or existing terms have not been assigned a rank number
    • apply some kind of fallback strategy to fill in gaps? (lexical order? original insertion order?)
  3. Annotate the portal UI config to use a rank-based sort order
    • lower rank number displayed before higher rank number
    • use fallback order if applicable

This would allow for an out-of-band process by a CFDE-CC member to curate the ranks in the registry, affecting the ordering behavior for new catalogs built after those registry updates.

  • Manual adjustments could be made via Chaise registry UI
  • Simple CLI could be provided to do bulk curation via TSV or JSON files?

Original issue text

  • What is the current sort order?
  • Is it possible to (globally) change the sort order to something else? If so, what options do we have?
  • Would it ever be possible to sort on something more dynamic, like putting the most popular ones towards the top (based on some kind of assessment I did, and made a list of, for instance)

This is for sure not a thing I am asking you to do for Q1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions