From 15b31120f7d3b9f53384f41d963a195b4432134f Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Tue, 17 Dec 2024 11:58:56 +0100 Subject: [PATCH] Correctly detect whether global Item Search is available --- src/components/ApiCapabilitiesMixin.js | 2 +- src/store/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ApiCapabilitiesMixin.js b/src/components/ApiCapabilitiesMixin.js index ea65cb62..d3b797fc 100644 --- a/src/components/ApiCapabilitiesMixin.js +++ b/src/components/ApiCapabilitiesMixin.js @@ -32,7 +32,7 @@ export const TYPES = { }, // STAC API - Item Search Global: { - BasicFilters: true, + BasicFilters: ['https://api.stacspec.org/v1.*/item-search'], CollectionIdFilter: true, ItemIdFilter: true, CqlFilters: ['https://api.stacspec.org/v1.*/item-search#filter'], diff --git a/src/store/index.js b/src/store/index.js index 771dab2a..9a5c4574 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -195,7 +195,7 @@ function getStore(config, router) { return getters.canSearchCollections || getters.canSearchItems; }, canSearchItems: (state, getters) => { - return getters.supportsConformance(TYPES.Items.BasicFilters); + return getters.supportsConformance(TYPES.Global.BasicFilters); }, canSearchCollections: (state, getters) => { return getters.supportsConformance(TYPES.Collections.BasicFilters);