metadatasearch
Provides metadata catalogue search user-interface for an application.
Description
The metadata search UI integrates on the generic search UI when Search.AddTabRequest is available or creates a new menu item/tile for metadata search when the search flyout is not available.
Bundle configuration
No configuration is required, but allows configuration:
noUI(optional boolean, default false)
Can be configured to true to prevent UI from rendering with intent on being used programmatically using the request/event API (for example on an embedded map with custom search UI).
Requests the bundle sends out
| Request | Why/when |
|---|---|
| `userinterface.AddExtensionRequest` | Extends the basic UI view. |
| 'Search.AddTabRequest' | Add metadata search tab to search bundle |
| 'catalogue.ShowMetadataRequest' | layer metadata info request |
| 'MapModulePlugin.MapLayerVisibilityRequest' | Sends out when user clicks the 'Show/Hide' link on a search results|
| 'RemoveMapLayerRequest' | Sends out when user clicks the 'Hide' link on a search results |
| 'AddMapLayerRequest' | Sends out when user clicks the 'Show' link on a search results |
| 'userinterface.RemoveExtensionRequest' | Unregister from UI in stop()-method |
| 'DrawTools.StartDrawingRequest' | Sends out when user clicks 'Show data coverage' link on a search results to draw a rectangle. |
| 'DrawTools.StopDrawingRequest' | Sends out when user stops data coverage rectangle drawing. |
Events the bundle listens to
| Event | How does the bundle react |
|---|---|
| MetadataSearchResultEvent | Show metadata search results |
Events the bundle sends out
| Event | Why/when |
|---|---|
| MetadataSearchResultEvent | Notifies that a metadata search has been performed and the result is accessible through the event |