Class: CatalogSearchView

CatalogSearchView()

CatalogSearchView

Constructor

new CatalogSearchView()

Since:
  • 2.22.0
Source:

Extends

  • Backbone.View

Members

className :string

The HTML classes to use for this view's element
Type:
  • string
Source:

events :Object

The events this view will listen to and the associated function to call.
Type:
  • Object
Source:

filterGroupsContainer :string

The jQuery selector for the FilterGroupsView container
Type:
  • string
Source:

filterGroupsJSON :Array.<FilterGroup#defaults>

An array of literal objects to transform into FilterGroup models. These FilterGroups will be displayed in this view and used for searching. If not provided, the AppConfig#defaultFilterGroups will be used.
Type:
Source:

mapContainer :string

The query selector for the CesiumWidgetView container
Type:
  • string
Source:

mode :string

The search mode to use. This can be set to either `map` or `list`. List mode will hide all map features.
Type:
  • string
Since:
  • 2.22.0
Default Value:
  • "map"
Source:

pagerContainer :string

The query selector for the PagerView container
Type:
  • string
Source:

pagerView :PagerView

Type:
  • PagerView
Source:

searchResultsContainer :string

The query selector for the SearchResultsView container
Type:
  • string
Source:

sorterContainer :string

The query selector for the SorterView container
Type:
  • string
Source:

sorterView :SorterView

Type:
Source:

tagName :string

The HTML tag to use for this view's element
Type:
  • string
Source:

titleContainer :string

The query selector for the title container
Type:
  • string
Source:

type :string

The type of View this is
Type:
  • string
Source:

Methods

addLinkedData()

Linked Data Object for appending the jsonld into the browser DOM
Since:
  • 2.22.0
Source:

createFilterGroups(filterGroupsJSON)

Creates UI Filter Groups. UI Filter Groups are custom, interactive search filter elements, grouped together in one panel, section, tab, etc.
Parameters:
Name Type Description
filterGroupsJSON Array.<FilterGroup#defaults> An array of literal objects to transform into FilterGroup models. These FilterGroups will be displayed in this view and used for searching. If not provided, the AppConfig#defaultFilterGroups will be used.
Since:
  • 2.22.0
Source:

createMap()

Create the models and views associated with the map and map search
Since:
  • 2.22.0
Source:

createSearchResults()

Creates the SearchResultsView and saves a reference to the SolrResults collection
Since:
  • 2.22.0
Source:

renderFilters()

Renders the search filters
Since:
  • 2.22.0
Source:

renderMap()

Renders the Cesium map with a geohash layer
Since:
  • 2.22.0
Source:

renderPager()

Creates a PagerView and adds it to the page.
Since:
  • 2.22.0
Source:

renderSearchResults()

Renders the search result list
Since:
  • 2.22.0
Source:

renderSorter()

Creates a SorterView and adds it to the page.
Since:
  • 2.22.0
Source:

renderTitle()

Updates the view title using the CatalogSearchView#searchResults data.
Since:
  • 2.22.0
Source:

setMode()

Sets the search mode (map or list)
Since:
  • 2.22.0
Source:

setupSearch()

Creates the Filter models and SolrResults that will be used for searches
Since:
  • 2.22.0
Source:

setupView()

Sets up the basic components of this view
Source:

titleTemplate(start, end, numFound) → {string}

Constructs an HTML string of the title of this view
Parameters:
Name Type Description
start number
end number
numFound number
Since:
  • 2.22.0
Source:
Returns:
Type
string

toggleMode()

Toggles between map and list search mode
Since:
  • 2.22.0
Source: