Skip to content

Commit

Permalink
[BIO-6379] configured geoview ext and re-order plugins (#9)
Browse files Browse the repository at this point in the history
* [BIO-6368] configured DOI

* [BIO-6377] switched to solr spatial image

* [BIO-6377] added stadia api config

* [BIO-6379] configured geoview ext and re-order plugins

---------

Co-authored-by: Mark Calvert <markcalvert84@gmail.com>
  • Loading branch information
awset and MarkCalvert authored Jan 15, 2024
1 parent 32f3f6f commit 192345d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .env.dbca
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ CKAN_SMTP_MAIL_FROM=ckan@localhost
TZ=Australia/Perth

# Solr
SOLR_IMAGE_VERSION=2.10-solr9
SOLR_IMAGE_VERSION=2.10-solr9-spatial
CKAN_SOLR_URL=http://solr:8983/solr/ckan
TEST_CKAN_SOLR_URL=http://solr:8983/solr/ckan

Expand All @@ -78,6 +78,9 @@ NGINX_SSLPORT=443
CKANEXT__DOI__ACCOUNT_NAME=
CKANEXT__DOI__ACCOUNT_PASSWORD=

## ckanext-spatial ##
CKANEXT__SPATIAL__COMMON_MAP__APIKEY=

## WA DBCA Config ##
# Docker compose project name
COMPOSE_PROJECT_NAME=dbca
Expand Down
6 changes: 3 additions & 3 deletions ckan/config/dbca.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ use = config:/srv/app/ckan.ini
ckan.devserver.watch_patterns = /srv/app/ckan.ini

## Plugins Settings ############################################################
ckan.plugins = image_view text_view datatables_view pdf_view datastore xloader pages showcase hierarchy_display hierarchy_form hierarchy_group_form dcat dbca scheming_datasets spatial_metadata spatial_query doi envvars
ckan.plugins = dbca image_view text_view datatables_view pdf_view datastore xloader pages showcase hierarchy_display hierarchy_form hierarchy_group_form dcat scheming_datasets spatial_metadata spatial_query doi resource_proxy geo_view envvars

## Resource Views Settings #####################################################
ckan.views.default_views = text_view datatables_view pdf_view
ckan.views.default_views = text_view datatables_view pdf_view geo_view

## Internationalisation Settings ###############################################
ckan.locale_default = en_AU
Expand All @@ -25,7 +25,7 @@ ckan.resource_formats = /srv/app/src_extensions/ckanext-dbca/ckanext/dbca/config
# ckanext-spatial
ckanext.spatial.search_backend = solr-bbox
ckanext.spatial.common_map.custom.url = https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}@2x.png
ckanext.spatial.common_map.type = custom
ckanext.spatial.common_map.type = Stadia.StamenTerrain

# ckanext-scheming
scheming.dataset_schemas = ckanext.dbca:dbca_dataset.yaml
Expand Down
5 changes: 4 additions & 1 deletion ckan/setup/dbca_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ pip3 install -r ${SRC_DIR}/ckanext-spatial/requirements.txt
pip3 install -e 'git+https://github.com/ckan/ckanext-xloader.git@1.0.1#egg=ckanext-xloader'
pip3 install -r ${SRC_DIR}/ckanext-xloader/requirements.txt

# Geoview
pip3 install -e 'git+https://github.com/ckan/ckanext-geoview.git@v0.1.0#egg=ckanext-geoview'

# 3rd Party #
# DOI
pip3 install -e git+https://github.com/NaturalHistoryMuseum/ckanext-doi@v3.1.10#egg=ckanext-doi
pip3 install -e git+https://github.com/NaturalHistoryMuseum/ckanext-doi@v3.1.10#egg=ckanext-doi

0 comments on commit 192345d

Please sign in to comment.