thegetty / quire

A multi-package repository for the Quire multiformat publishing framework
https://quire.getty.edu/
BSD 3-Clause "New" or "Revised" License
93 stars 12 forks source link

Add support for objects with `field` and `label` keys in `objects.yaml` `object_filters` field to specify Filter label names #851

Closed anderspollack closed 11 months ago

anderspollack commented 11 months ago

Filter field labels are humanized object keys by default, but now users can specify custom field labels in objects.yaml:

object_filters:
  - field: type
    label: Object Type
  - theme
  - material

in this case, the label for the type field will render as "Object Type"

geealbers commented 11 months ago

@anderspollack, the custom labels are being applied but the filters aren't filtering. You can see it in the URL when you apply a filter. For example, filtering for type "Container" results in localhost:8080/things/?=Container instead of localhost:8080/things/?type=Container.