Esri / geoportal-server-catalog

Esri Geoportal Server is a next generation open-source metadata catalog and editor, based on elasticsearch.
https://www.esri.com/en-us/arcgis/products/geoportal-server/overview
Apache License 2.0
97 stars 60 forks source link

geoportal view other catalog #386

Closed alexlau818 closed 2 years ago

alexlau818 commented 3 years ago

I have added two connection in config.json but still can't see records in viewer catalog config_json geoportal_viewer_catalog

Thanks

mhogeweg commented 3 years ago

in Geoportal 2.x the search widget submits searches via the search component (as a proxy) to the target catalog. In order to search Geonetwork or CKAN catalogs, you will need to create a profile for the specific API (CSW or for example CKAN's own API) in the search component. Then in the configuration of the search widget you would reference that profile in the configuration of specific catalog.

The place to configure the profile is https://github.com/Esri/geoportal-server-catalog/blob/master/geoportal-search/src/main/resources/gs/target/profiles/profiles.js. You will find a sample that takes for example the envelope, the modified date as information.

An example configuration of the viewer search widget can be found here: https://github.com/Esri/geoportal-server-catalog/blob/master/geoportal/src/main/webapp/viewer/widgets/GeoportalSearch/example-config.json. Notice the profile attribute for the configured catalogs. This is where you would reference your custom catalog profile.