New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the CSW filter configurable #6886
Labels
Milestone
Comments
Closed
1 task
dsuren1
added a commit
to dsuren1/MapStore2
that referenced
this issue
Aug 20, 2021
offtherailz
pushed a commit
that referenced
this issue
Sep 21, 2021
dsuren1
added a commit
to dsuren1/MapStore2
that referenced
this issue
Sep 23, 2021
(cherry picked from commit 68218c3)
offtherailz
pushed a commit
that referenced
this issue
Sep 24, 2021
6 tasks
@ElenaGallo this issue is covered by |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
For some services we need to customize the search request accordingly to specific catalogs.
Acceptance Criteria
References:
What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information
Here the current filter generation function. There is an if to discriminate between empty search and search with text. It is requierd because of some errors that can occour in certain services when
And
containing tag only one chidlren, while the minimum is two (GeoServer should be one that fails, if I remember well) .We should check if it is possible find a way to use only one template for all, passing a value that can be a jolly text for all the services, so empty search and text search can use the same model.
This could allow to fully customize the request template, adding the text as a parameter and so allowing the geOrchstra use case.
The current implementation includes the limitation for for
dc:type.
todataset
. This should not be the default or should be customizable, because the catalog should be usable also for consultation, not only to add layers.Suggestion
In configuration you can set two different filters. One is
staticFilter
, one isdynamicFilter
.By default
staticFilter
is always applied, even in empty search.dynamicFilter
is applied in AND with static Fiter, and is a template where to place the search text.The two fillter will be put in "AND" if the text is present, otherwise use only static one as actually done here by using two different templates.
The user can customize in the serice configuration one or both this values. (From JSON configuration or from UI, Advanced Options of Service configuration, if the serice is CSW).
The template will be a lodash template format and saved with the other configurations of the service.
This should already allow to configure it both from plugin
cfg
or in map.Handle possible errors (e.g. invalid xml, failures).
The two properties should be documented for CSW services.
The text was updated successfully, but these errors were encountered: