I'm able to derive the building an item is in by checking item.physicalLocation and seeing if the referenced location has an isPartOf. These "building" locations are more useful as a facet than the more granular locations, so to drive that facet I've had to relate items to buildings directly in the api. I'm currently using locationBuilding. Is there a good predicate for this? These are the current "buildings" with counts:
I'm able to derive the building an item is in by checking item.physicalLocation and seeing if the referenced location has an isPartOf. These "building" locations are more useful as a facet than the more granular locations, so to drive that facet I've had to relate items to buildings directly in the api. I'm currently using locationBuilding. Is there a good predicate for this? These are the current "buildings" with counts:
http://discovery-api.nypltech.org/api/v1/resources/aggregation/location