INL/BlackLab

influence order of filter tabs

Closed this issue · 9 comments

Can I influence the order of the filter tabs, I want to change this:
image

If your .blf.yaml file contains a metadataFieldGroups definition, corpus-frontend should display the groups as tabs in that order as far as I know. See https://inl.github.io/BlackLab/guide/how-to-configure-indexing.html#corpus-metadata

exactly, but it doesn't come out that way with my config:

  metadataFieldGroups:
    - name: Main filters
      fields:
        - year
        - author
        - language_variant
        - state
    - name: Other filters
      addRemainingFields: true

Looks like my (a bit old) version of blacklab causes it:

image

I see. I think that's likely fixed now; are you able to upgrade?

Just did, not fixed, perhaps the cause is that my "Other filters" only has addRemaining.

Issue should be moved to blacklab

Is the order correct in your indexmetadata.yaml file? (in the index directory)

No, there it is wrong. I built the index with an older 3.0.0 version

Can you reindex with a newer version? Just checked and this was likely fixed about 5 months ago on the dev branch: d4b6c27

Alternatively, you can edit the indexmetadata.yaml file by hand; that hopefully fixes it without being forces to upgrade.