From 797404f44a422e824f777bac19052d1532fb8bff Mon Sep 17 00:00:00 2001 From: Colin de Roos <8250462+cdfa@users.noreply.github.com> Date: Thu, 10 Nov 2022 14:12:00 +0100 Subject: [PATCH] Add filters for erfgoed brabant buildings page (#717) Co-authored-by: Colin de Roos --- .../support/collection_query.erl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/mod_ginger_collection/support/collection_query.erl b/modules/mod_ginger_collection/support/collection_query.erl index fc988a0cd..d6c5e7cb4 100644 --- a/modules/mod_ginger_collection/support/collection_query.erl +++ b/modules/mod_ginger_collection/support/collection_query.erl @@ -44,12 +44,19 @@ parse_query_term(Term, Values, QueryArgs) when Term =:= <<"dc:subject.keyword">>; Term =:= <<"dcterms:medium.keyword">>; Term =:= <<"nave:technique.keyword">>; + % used for EB buildings + Term =:= <<"http://www_openarchives_org/ore/terms/aggregates.http://schemas.delving.eu/nave/terms/gebouwType.@value.keyword">>; + Term =:= <<"http://www_openarchives_org/ore/terms/aggregates.http://schemas.delving.eu/nave/terms/location.http://schemas.delving.eu/nave/terms/municipality.@value.keyword">>; + Term =:= <<"http://www_openarchives_org/ore/terms/aggregates.http://schemas.delving.eu/nave/terms/architectLabel.@value.keyword">>; + Term =:= <<"http://www_openarchives_org/ore/terms/aggregates.http://schemas.delving.eu/nave/terms/monumentStatus.@value.keyword">>; + Term =:= <<"http://www_openarchives_org/ore/terms/aggregates.http://schemas.delving.eu/nave/terms/religieuzeStroming.http://www.w3.org/2004/02/skos/core#prefLabel.@value.keyword">>; + Term =:= <<"http://www_openarchives_org/ore/terms/aggregates.http://schemas.delving.eu/nave/terms/kloosterOrde.http://www.w3.org/2004/02/skos/core#prefLabel.@value.keyword">>; + Term =:= <<"http://www_openarchives_org/ore/terms/aggregates.http://schemas.delving.eu/nave/terms/gewijdAan.http://www.w3.org/2004/02/skos/core#prefLabel.@value.keyword">>; % other usages Term =:= <<"object_category.rdfs:label.keyword">>; Term =:= <<"dcterms:spatial.rdfs:label.keyword">>; Term =:= <<"dcterms:subject.rdfs:label.keyword">>; - Term =:= <<"schema:about.rdfs:label.keyword">>; - Term =:= <<"rdf:type.rdfs:label.keyword">> + Term =:= <<"schema:about.rdfs:label.keyword">> -> QueryArgs ++ lists:map( fun(Value) ->