Merge pull request #46 from mjanez/feature/ckanext-facet_scheming
Add ckanext-facet_scheming
This commit is contained in:
commit
eac688a117
|
@ -114,7 +114,7 @@ CKAN__LOCALE_DEFAULT="en"
|
|||
CKAN__LOCALE_ORDER="en es pt_BR ja it cs_CZ ca fr el sv sr sr@latin no sk fi ru de pl nl bg ko_KR hu sa sl lv"
|
||||
|
||||
# Extensions
|
||||
CKAN__PLUGINS="envvars stats text_view image_view webpage_view recline_view resourcedictionary datastore xloader harvest ckan_harvester spatial_metadata spatial_query spatial_harvest_metadata_api csw_harvester waf_harvester doc_harvester resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface scheming_datasets scheming_groups scheming_organizations pdf_view pages"
|
||||
CKAN__PLUGINS="envvars stats text_view image_view webpage_view recline_view resourcedictionary datastore xloader harvest ckan_harvester spatial_metadata spatial_query spatial_harvest_metadata_api csw_harvester waf_harvester doc_harvester resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface scheming_datasets scheming_groups scheming_organizations pdf_view pages facet_scheming"
|
||||
|
||||
# ckanext-harvest
|
||||
CKAN__HARVEST__MQ__TYPE=redis
|
||||
|
@ -141,7 +141,7 @@ CKANEXT__SPATIAL__SEARCH_BACKEND=solr-bbox
|
|||
CKAN__SPATIAL__SRID=3857
|
||||
CKANEXT__SPATIAL__COMMON_MAP__TYPE=custom
|
||||
CKANEXT__SPATIAL__COMMON_MAP__CUSTOM__URL=https://rts.larioja.org/mapa-base/rioja/{z}/{x}/{y}.png
|
||||
CKANEXT__SPATIAL__COMMON_MAP__ATTRIBUTION='Servicios de Teselas. <a href="https://www.idee.es/">IDEE</a>, bajo <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>.'
|
||||
CKANEXT__SPATIAL__COMMON_MAP__ATTRIBUTION='Servicios de Teselas. <a href="https://www.ign.es/web/qsm-cnig">CNIG</a>, bajo <a href="http://creativecommons.org/licenses/by/4.0">CC BY 4.0</a>.'
|
||||
|
||||
# ckanext-geoview
|
||||
CKANEXT__GEOVIEW__GEOJSON__MAX_FILE_SIZE=100000000
|
||||
|
@ -152,3 +152,6 @@ CKANEXT__GEOVIEW__SHP_VIEWER__ENCODING=UTF-8
|
|||
#TODO: ckanext-sparql - Not implemented yet
|
||||
CKANEXT__SPARQL__ENDPOINT_URL=http://dbpedia.org/sparql
|
||||
CKANEXT__SPARQL__HIDE_ENDPOINT_URL=False
|
||||
|
||||
# ckanext-facet_scheming
|
||||
CKANEXT__FACET_FACET_LIST="theme theme_es dcat_type groups publisher_name publisher_type spatial_uri owner_org res_format frequency tags tag_uri conforms_to "
|
|
@ -81,6 +81,7 @@ Information about extensions installed in the `main` image. More info described
|
|||
| Extension | [ckanext-resourcedictionary](https://github.com/OpenDataGIS/ckanext-resourcedictionary) | main | Completed | ✔️ | ✔️ | Stable installation. This extension extends the default CKAN Data Dictionary functionality by adding possibility to create data dictionary before actual data is uploaded to datastore. |
|
||||
| Extension | [ckanext-pages](https://github.com/ckan/ckanext-pages) | 0.5.1 | Completed | ✔️ | ✔️ | Stable installation. This extension gives you an easy way to add simple pages to CKAN. |
|
||||
| Extension | [ckanext-pdfview](https://github.com/ckan/ckanext-pdfview) | 0.0.8 | Completed | ✔️ | ✔️ | Stable installation. This extension provides a view plugin for PDF files using an html object tag. |
|
||||
| Extension | [ckanext-facet_scheming](https://github.com/OpenDataGIS/ckanext-facet_scheming) | 1.0.0 | Completed | ✔️ | ✔️ | Stable installation for 1.0.0 version, facet and filter for custom [ckanext-scheming](https://github.com/mjanez/ckanext-scheming) |
|
||||
| Software | [ckan-pycsw](https://github.com/mjanez/ckan-pycsw) | latest | Completed | ✔️ | ✔️ | Stable installation. PyCSW Endpoint of Open Data Portal with docker compose config. Harvest the CKAN catalogue in a CSW endpoint based on existing spatial datasets in the open data portal. |
|
||||
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ ENV APP_DIR=/srv/app \
|
|||
### Resource dictionary - 1.0.1 ###
|
||||
### Pages - v0.5.1 ###
|
||||
### PDFView - v0.0.8 ###
|
||||
### Facet Scheming - 1.0.0 ###
|
||||
RUN echo ${TZ} > /etc/timezone && \
|
||||
if ! [ /usr/share/zoneinfo/${TZ} -ef /etc/localtime ]; then cp /usr/share/zoneinfo/${TZ} /etc/localtime ; fi && \
|
||||
# Install CKAN extensions
|
||||
|
@ -39,7 +40,10 @@ RUN echo ${TZ} > /etc/timezone && \
|
|||
echo "ckan/ckanext-pages" && \
|
||||
pip3 install -e git+https://github.com/ckan/ckanext-pages.git@v0.5.1#egg=ckanext-pages && \
|
||||
echo "ckan/ckanext-pdfview" && \
|
||||
pip3 install -e git+https://github.com/ckan/ckanext-pdfview.git@0.0.8#egg=ckanext-pdfview
|
||||
pip3 install -e git+https://github.com/ckan/ckanext-pdfview.git@0.0.8#egg=ckanext-pdfview && \
|
||||
echo "OpenDataGIS/ckanext-facet_scheming" && \
|
||||
pip3 install -e git+https://github.com/OpenDataGIS/ckanext-facet_scheming.git@1.0.0#egg=ckanext_facet_scheming && \
|
||||
pip3 install -r https://raw.githubusercontent.com/OpenDataGIS/ckanext-facet_scheming/1.0.0/requirements.txt
|
||||
|
||||
# Used to configure the container environment by setting environment variables, creating users, running initialization scripts, .etc
|
||||
COPY docker-entrypoint.d/* /docker-entrypoint.d/
|
||||
|
|
|
@ -1,9 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Update ckanext-scheming settings defined in the env var
|
||||
echo "Loading ckanext-scheming settings into ckan.ini"
|
||||
# Update ckanext-scheming and ckanext-facet_scheming settings defined in the env var
|
||||
echo "Set up ckanext-facet_scheming. Clear index"
|
||||
ckan -c $CKAN_INI search-index clear
|
||||
|
||||
echo "Loading ckanext-scheming and ckanext-facet_scheming settings into ckan.ini"
|
||||
ckan config-tool $CKAN_INI \
|
||||
"scheming.dataset_schemas=$SCHEMA_CKANEXT_SCHEMING_DATASET_SCHEMA" \
|
||||
"scheming.group_schemas=$SCHEMA_CKANEXT_SCHEMING_GROUP_SCHEMAS" \
|
||||
"scheming.organization_schemas=$SCHEMA_CKANEXT_SCHEMING_ORGANIZATION_SCHEMAS" \
|
||||
"scheming.presets=$SCHEMA_CKANEXT_SCHEMING_PRESETS"
|
||||
"scheming.presets=$SCHEMA_CKANEXT_SCHEMING_PRESETS" \
|
||||
"facet_scheming.facet_list=$CKANEXT__FACET_FACET_LIST"
|
||||
|
||||
echo "ckanext-facet_scheming. Rebuild index"
|
||||
ckan -c $CKAN_INI search-index rebuild
|
|
@ -47,7 +47,16 @@ ENV SOLR_BBOX_FIELDS '<field name="bbox_area" type="float" indexed="true" stored
|
|||
<field name="maxx" type="float" indexed="true" stored="true" /> \
|
||||
<field name="maxy" type="float" indexed="true" stored="true" /> \
|
||||
<field name="minx" type="float" indexed="true" stored="true" /> \
|
||||
<field name="miny" type="float" indexed="true" stored="true" />'
|
||||
<field name="miny" type="float" indexed="true" stored="true" /> \
|
||||
<field name="tag_uri" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
|
||||
<field name="conforms_to" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
|
||||
<field name="lineage_source" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
|
||||
<field name="lineage_process_steps" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
|
||||
<field name="reference" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
|
||||
<field name="theme" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
|
||||
<field name="theme_es" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
|
||||
<field name="resource_relation" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/> \
|
||||
<field name="metadata_profile" type="string" uninvertible="false" docValues="true" indexed="true" stored="true" multiValued="true"/>'
|
||||
|
||||
RUN sed -i "/<fields>/a $SOLR_BBOX_FIELDS" $SOLR_SCHEMA_FILE
|
||||
|
||||
|
|
Loading…
Reference in New Issue