FacetDataModel

FacetData. FacetDataModel

new FacetDataModel()

Source:

Extends

  • Backbone.Model

Members

defaults

Source:
Default Value:
  • {}
Default model options

Methods

filterFacetData(hashObj)

Source:
Filter facet data "search.ajax.getData" method and triggered event '' on callback with sending response from server
Parameters:
Name Type Description
hashObj Object Object with hashes from url
Fires:

getFacetRequestData(hashObj) → {facetRequestData}

Source:
Gets facet request data from server by calling getFacetDataRequestInfo method in a loop for all facet components and stores them in returned object
Parameters:
Name Type Description
hashObj Object Object with hashes from url
Returns:
request data from each facet component stored in object
Type
facetRequestData

getInitialFacetData()

Source:
Gets facet data by calling "search.ajax.getData" method

getSearchResultsLanguage(signature) → {String}

Source:
Returns language of search result
Parameters:
Name Type Description
signature String signature of search result
Returns:
search result language
Type
String

getSearchResultsModelBySignature(signature) → {BackboneModel}

Source:
Returns search result model by signature
Parameters:
Name Type Description
signature String signature of search result
Returns:
search result model
Type
BackboneModel

getSearchResultsScope(signature) → {String}

Source:
Returns search result scope
Parameters:
Name Type Description
signature String signature of search result
Returns:
search result scope
Type
String

initialize()

Source:

initRequestObject(requestData, controlData)

Source:
On initialization fullfils requestData argument with right structure
Parameters:
Name Type Description
requestData Object Object with request data
controlData Object Object data taked from facet