Open geealbers opened 5 years ago
This filter feature will be used here in CVA and included in the core Quire Starter Theme.
The filters will be variable from project to project, so users will need a direct way to choose what keys in the object data to filter on. I would suggest we follow the pattern established with object_display_order
(used to populate the entry page tombstones), and establish a new object_filter
array.
object_display_order:
- plates
- accession_number
object_filter:
- attribution
- subject
- date
object_list:
- id: 1
plates: "518–20"
plate_list: 518, 519, 520
accession_number: 86.AE.205
link: http://www.getty.edu/art/collection/objects/11968/
bareiss_number: 342
fabric: Athenian
technique: Red-figure
shape_name: Krater, Column-
attribution: Myson
date: -490 to -480
subject: akontist, athlete, bridle, deer, dog, goat, *haltēres*, himation, horse, javelin, jumper, *kentron*, *paedotribēs*, palmette (*anthemion*), panther, pick, sponge, staff, stick, strigil, trainer
Ask with this, we'd also want to establish a new param for config.yml to turn the feature on or off. Perhaps gridObjectFilters: true
.
Though there are only 24 objects in this volume, as we have in past catalogues like Ancient Terracottas and Ancient Lamps, we could add some filters to the CVA catalogue grid so that users could get a visual representation of different groupings. I think the obvious categories would be to filter by
The first two would offer a nice visualization of the attribution and subject indexes (though the subject drop down would be quite long so maybe not practical). The third is sort of standard, though would require some adjustment to the data in
objects.yml
. Instead of:We would need something like:
Or maybe just: