Class: DataCatalogView

DataCatalogView()

new DataCatalogView()

This view is deprecated and will eventually be removed in a future version (likely 3.0.0)
Deprecated:
  • Yes
Source:

Extends

  • Backbone.View

Members

fixedHeight :boolean

If true, the view height will be adjusted to fit the height of the window If false, the view height will be fixed via CSS
Type:
  • boolean
Source:

solrError500Message :string

The user-friendly text to show when a solr request gives a status 500 error. If none is provided, then the error message that is returned from solr will be displayed.
Type:
  • string
Since:
  • 2.15.0
Source:

solrErrorTitle :string

The general error message to show as a title in the error box when there is an error fetching results from solr
Type:
  • string
Since:
  • 2.15.0
Default Value:
  • "Something went wrong while getting the list of datasets"
Source:

template :Underscore.template

The templates for this view
Type:
  • Underscore.template
Source:

Methods

addAll()

Add all items in the **SearchResults** collection This loads the first 25, then waits for the map to be fully loaded and then loads the remaining items. Without this delay, the app waits until all records are processed
Source:

addAnnotationFilter()

addAnnotationFilter - Add the annotation filter to the view
Source:

addMarkers()

Get the details on each marker And create an infowindow for that marker
Source:

addOne(result)

Add a single SolrResult item to the list by creating a view for it and appending its element to the DOM.
Parameters:
Name Type Description
result
Source:

addTileInfoWindows()

Get the details on each tile - a list of ids and titles for each dataset contained in that tile And create an infowindow for that tile
Source:

closeInfoWindows(except)

Iterate over each infowindow that we have stored in the view and close it. Pass an infoWindow object to this function to keep that infoWindow open/skip it
Parameters:
Name Type Description
infoWindow An infoWindow to keep open
except
Source:

drawTile(options, geohash, label)

With the options and label object given, add a single tile to the map and set its event listeners
Parameters:
Name Type Description
options object
geohash string
label string
Source:

drawTiles()

Create a tile for each geohash facet. A separate tile label is added to the map with the count of the facet.
Source:

getResults(page)

getResults gets all the current search filters from the searchModel, creates a Solr query, and runs that query.
Parameters:
Name Type Description
page number The page of search results to get results for
Source:

hideResultOnMap(e)

Hide the marker, infoWindow, and bounding coordinates polygon on the map when the user stops hovering on the marker icon in the result list
Parameters:
Name Type Description
e Event The event that brought us to this function
Source:

removeMarkers()

Iterate over all the markers in the view and remove them from the map and view
Source:

removeTiles()

Remove all the tiles and text from the map
Source:

showError(model, response)

When the SearchResults collection has an error getting the results, show an error message instead of search results
Parameters:
Name Type Description
model SolrResult
response XMLHttpRequest.response
Source:

showResultOnMap(e)

Show the marker, infoWindow, and bounding coordinates polygon on the map when the user hovers on the marker icon in the result list
Parameters:
Name Type Description
e Event
Source: