Class: SolrResult

SolrResult()

A single result from the Solr search service

Constructor

new SolrResult()

Source:

Extends

  • Backbone.Model

Methods

bytesToSize(integer, integer)

Convert number of bytes into human readable format
Parameters:
Name Type Description
integer bytes Number of bytes to convert
integer precision Number of digits after the decimal separator
Source:
Returns:
string

createViewURL() → {string}

Creates a URL for viewing more information about this metadata
Source:
Returns:
Type
string

getType() → {string}

Returns a plain-english version of the general format - either image, program, metadata, PDF, annotation or data
Source:
Returns:
Type
string

isDOI(customString) → {boolean}

Checks if the pid or sid or given string is a DOI
Parameters:
Name Type Description
customString string Optional. An identifier string to check instead of the id and seriesId attributes on the model
Source:
Returns:
True if it is a DOI
Type
boolean