-
Notifications
You must be signed in to change notification settings - Fork 149
Configure Previewable Filetypes
When users retrieve search results on the geoportal's Search page, some resources will show a Preview link. Clicking this link will launch the Preview page, and ideally would add the service URL for the resource to a basemap in the Preview page so the user can see the live service.
Currently, the Preview will display ArcGIS Server services (will show a map for MapServer services), OGC WMS services, KMZ (single point and rectangle geometries), KML(single point and rectangle geometries), OGC SOS services, and ArcIMS services. If a search result references a service that does not support a rendering, the geoportal may still display a Preview link on the search result and attempt to add the service to the Preview page map. This can result in either an empty map on the Preview page or an error.
This topic describes how to configure the geoportal such that the Preview link will only appear for certain services or filetypes. Follow the steps below.
- Open the \\geoportal\WEB-INF\classes\gpt\config\gpt.xml file.
- Find the "resourceLinkBuilder.preview.filter" parameter. This parameter provides a filter that disables the Preview link on search result for all records having a resource URL (e.g., whatever value is indexed as resource.url - see Details of Lucene Indexing in the Geoportal) matching the template specified here. Note that by default, there is an extensive list of files and services disabled for Preview.
- Adjust this parameter such that only the filetypes and services your organization wants to disable for Preview are in the list.
- Save the gpt.xml file.
- Restart the geoportal web application for the change to take affect.
Back to Customizations