Merge pull request #122 from mjanez/ckan-2.9.11
Fix ckanext-spatial spatial search
This commit is contained in:
commit
22212db194
|
@ -113,6 +113,8 @@ CKAN__PREVIEW__JSON_FORMATS="json jsonld"
|
||||||
CKAN__PREVIEW__XML_FORMATS="xml rdf rdf+xml owl+xml atom rss turtle ttl n3 n-triples"
|
CKAN__PREVIEW__XML_FORMATS="xml rdf rdf+xml owl+xml atom rss turtle ttl n3 n-triples"
|
||||||
CKAN__PREVIEW__TEXT_FORMATS="text plain text/plain text/turtle csv tsv rss txt json"
|
CKAN__PREVIEW__TEXT_FORMATS="text plain text/plain text/turtle csv tsv rss txt json"
|
||||||
CKAN__PREVIEW__LOADABLE="html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json arcgis_rest"
|
CKAN__PREVIEW__LOADABLE="html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json arcgis_rest"
|
||||||
|
# ckanext-spatial: Allow Solr local params: https://github.com/ckan/ckanext-spatial/issues/328
|
||||||
|
CKAN__SEARCH__SOLR_ALLOWED_QUERY_PARSERS = field
|
||||||
|
|
||||||
## Resource Proxy settings
|
## Resource Proxy settings
|
||||||
### Preview size limit, default: 1MB
|
### Preview size limit, default: 1MB
|
||||||
|
@ -150,8 +152,8 @@ CKANEXT__DCAT__RDF_PROFILES='euro_dcat_ap_2'
|
||||||
# The custom endpoint **must** start with a forward slash (`/`) and contain the `{_format}` placeholder. The endpoint is added to the CKAN_SITE_URL and CKAN__ROOT_PATH, example: http://localhost:5000/catalog/catalog.rdf
|
# The custom endpoint **must** start with a forward slash (`/`) and contain the `{_format}` placeholder. The endpoint is added to the CKAN_SITE_URL and CKAN__ROOT_PATH, example: http://localhost:5000/catalog/catalog.rdf
|
||||||
CKANEXT__DCAT__DEFAULT_CATALOG_ENDPOINT='/catalog.{_format}'
|
CKANEXT__DCAT__DEFAULT_CATALOG_ENDPOINT='/catalog.{_format}'
|
||||||
|
|
||||||
# ckanext-spatial (Solr Backend - solr8-spatial)
|
# ckanext-spatial (Solr Backend - solr9-spatial: https://docs.ckan.org/projects/ckanext-spatial/en/latest/spatial-search.html#choosing-a-backend-for-the-spatial-search)
|
||||||
CKANEXT__SPATIAL__SEARCH_BACKEND=solr-bbox
|
CKANEXT__SPATIAL__SEARCH_BACKEND=solr-spatial-field
|
||||||
CKAN__SPATIAL__SRID=3857
|
CKAN__SPATIAL__SRID=3857
|
||||||
CKANEXT__SPATIAL__COMMON_MAP__TYPE=custom
|
CKANEXT__SPATIAL__COMMON_MAP__TYPE=custom
|
||||||
CKANEXT__SPATIAL__COMMON_MAP__CUSTOM__URL=http://a.tile.openstreetmap.org/{z}/{x}/{y}.png
|
CKANEXT__SPATIAL__COMMON_MAP__CUSTOM__URL=http://a.tile.openstreetmap.org/{z}/{x}/{y}.png
|
||||||
|
|
|
@ -67,12 +67,19 @@ COPY setup/who.ini ./
|
||||||
COPY patches patches
|
COPY patches patches
|
||||||
|
|
||||||
RUN for d in $APP_DIR/patches/*; do \
|
RUN for d in $APP_DIR/patches/*; do \
|
||||||
if [ -d $d ]; then \
|
if [ -d $d ]; then \
|
||||||
for f in `ls $d/*.patch | sort -g`; do \
|
for f in `ls $d/*.patch | sort -g`; do \
|
||||||
cd $SRC_DIR/`basename "$d"` && echo "$0: Applying patch $f to $SRC_DIR/`basename $d`" && patch -p1 < "$f"; \
|
cd $SRC_DIR/`basename "$d"` && \
|
||||||
done; \
|
if patch -R --dry-run -p1 < "$f"; then \
|
||||||
fi; \
|
echo "$0: Patch $f has already been applied or reversed, skipping..."; \
|
||||||
done
|
else \
|
||||||
|
echo "$0: Applying patch $f to $SRC_DIR/`basename $d`"; \
|
||||||
|
sed -i 's/\r$//' "$f" && \
|
||||||
|
patch -p1 < "$f" ; \
|
||||||
|
fi \
|
||||||
|
done ; \
|
||||||
|
fi ; \
|
||||||
|
done
|
||||||
|
|
||||||
# Workers
|
# Workers
|
||||||
## Update start_ckan.sh with custom workers
|
## Update start_ckan.sh with custom workers
|
||||||
|
|
|
@ -32,6 +32,7 @@ RUN for d in $APP_DIR/patches/*; do \
|
||||||
echo "$0: Patch $f has already been applied or reversed, skipping..."; \
|
echo "$0: Patch $f has already been applied or reversed, skipping..."; \
|
||||||
else \
|
else \
|
||||||
echo "$0: Applying patch $f to $SRC_DIR/`basename $d`"; \
|
echo "$0: Applying patch $f to $SRC_DIR/`basename $d`"; \
|
||||||
|
sed -i 's/\r$//' "$f" && \
|
||||||
patch -p1 < "$f" ; \
|
patch -p1 < "$f" ; \
|
||||||
fi \
|
fi \
|
||||||
done ; \
|
done ; \
|
||||||
|
|
Loading…
Reference in New Issue