Constructor
new CatalogSearchView()
- Since:
- Source:
Extends
Members
className :string
The HTML classes to use for this view's element
Type:
- Source:
events :Object
The events this view will listen to and the associated function to call.
Type:
- Source:
filterGroupsContainer :string
The jQuery selector for the FilterGroupsView container
Type:
- Source:
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:
- 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:
- Since:
- Default Value:
- Source:
The query selector for the PagerView container
Type:
- Source:
Type:
- Source:
searchResultsContainer :string
The query selector for the SearchResultsView container
Type:
- Source:
sorterContainer :string
The query selector for the SorterView container
Type:
- Source:
Type:
- Source:
tagName :string
The HTML tag to use for this view's element
Type:
- Source:
titleContainer :string
The query selector for the title container
Type:
- Source:
type :string
The type of View this is
Type:
- Source:
Methods
addLinkedData()
Linked Data Object for appending the jsonld into the browser DOM
- Since:
- 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:
- Source:
createMap()
Create the models and views associated with the map and map search
- Since:
- Source:
createSearchResults()
Creates the SearchResultsView and saves a reference to the SolrResults collection
- Since:
- Source:
renderFilters()
Renders the search filters
- Since:
- Source:
renderMap()
Renders the Cesium map with a geohash layer
- Since:
- Source:
Creates a PagerView and adds it to the page.
- Since:
- Source:
renderSearchResults()
Renders the search result list
- Since:
- Source:
renderSorter()
Creates a SorterView and adds it to the page.
- Since:
- Source:
renderTitle()
Updates the view title using the CatalogSearchView#searchResults data.
- Since:
- Source:
setMode()
Sets the search mode (map or list)
- Since:
- Source:
setupSearch()
Creates the Filter models and SolrResults that will be used for searches
- Since:
- 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:
- Source:
Returns:
-
Type
-
string
toggleMode()
Toggles between map and list search mode
- Since:
- Source: