Global

Members

(constant) updateOrCreateResource :_updateOrCreateResource

Source:
Type:
  • _updateOrCreateResource

Methods

buildQuery(struct, isAnd) → {string}

Source:
Parameters:
Name Type Description
struct
isAnd
Returns:
Type
string

createSearchList(entryStore, query) → {SearchList}

Source:
Parameters:
Name Type Description
entryStore
query
Returns:
Type
SearchList

extractSearchResults(data, list, entryStore) → {Array.<Entry>}

Source:
Parameters:
Name Type Description
data
list
entryStore
Returns:
Type
Array.<Entry>

fixNameAndDisabled(resObj, data)

Source:
Parameters:
Name Type Description
resObj
data

getCachedExternalMetadataURI(entryURI) → {string}

Source:
Parameters:
Name Type Description
entryURI
Returns:
Type
string

getContext(entryStore, contextEntryURI) → {Context}

Source:
Parameters:
Name Type Description
entryStore
contextEntryURI
Returns:
Type
Context

getContextForEntry(entryURI, entryStore) → {*}

Source:
Parameters:
Name Type Description
entryURI
entryStore
Returns:
Type
*

getContextId(uri, base) → {string|undefined}

Source:
Parameters:
Name Type Description
uri
base
Returns:
Type
string | undefined

getDefaultLimit() → {number}

Source:
Returns:
Type
number

getEntryCreatePostData(prototypeEntry) → {string}

Source:
Parameters:
Name Type Description
prototypeEntry
Returns:
Type
string

getEntryCreateURI(prototypeEntry, parentListEntry) → {string}

Source:
Parameters:
Name Type Description
prototypeEntry
parentListEntry
Returns:
Type
string

getEntryId(uri, base) → {string|undefined}

Source:
Parameters:
Name Type Description
uri
base
Returns:
Type
string | undefined

getEntryLoadURI(entryURI, params) → {string}

Source:
Parameters:
Name Type Description
entryURI
params
Returns:
Type
string

getEntryURI(entryStore, contextId, entryId) → {string}

Source:
Parameters:
Name Type Description
entryStore
contextId
entryId
Returns:
Type
string

getEntryURIFromURI(entryStore, uri) → {string}

Source:
Parameters:
Name Type Description
entryStore
uri
Returns:
Type
string

getId()

Source:
Deprecated:
  • in favor of factory#getEntryId

getList(entryStore, entryURI) → {List}

Source:
Parameters:
Name Type Description
entryStore
entryURI
Returns:
Type
List

getMetadataURI(entryStore, contextId, entryId) → {string}

Source:
Parameters:
Name Type Description
entryStore
contextId
entryId
Returns:
Type
string

getMetadataURIFromURI(entryStore, uri) → {string}

Source:
Parameters:
Name Type Description
entryStore
uri
Returns:
Type
string

getMoveURI(entry, fromListEntry, toListEntry, baseURI) → {string}

Source:
Parameters:
Name Type Description
entry
fromListEntry
toListEntry
baseURI
Returns:
Type
string

getPreventCacheNumber() → {number}

Description:
  • Last 7 digits of milliseconds since 1970 + random number.

Source:
Returns:
Type
number

getProxyURI(baseURI, uri, formatHint) → {string}

Source:
Parameters:
Name Type Description
baseURI
uri
formatHint
Returns:
Type
string

getPutFileURI(uri) → {string}

Source:
Parameters:
Name Type Description
uri
Returns:
Type
string

getResourceBase(entryStore, contextId) → {string}

Source:
Parameters:
Name Type Description
entryStore
contextId
Returns:
Type
string

getResourceTypeHelper(entry, vocab) → {*}

Source:
Parameters:
Name Type Description
entry
vocab
Returns:
Type
*

getResourceURI(entryStore, contextId, entryId) → {string}

Source:
Parameters:
Name Type Description
entryStore
contextId
entryId
Returns:
Type
string

getSort() → {Object}

Source:
Returns:
Type
Object

getURIFromCreated(data, context) → {string}

Source:
Parameters:
Name Type Description
data
context
Returns:
Type
string

sameOrigin(url) → {boolean}

Description:
  • Check if requests will be to the same domain, i.e. no CORS. Must be used in a browser environment.

Source:
Parameters:
Name Type Description
url
Returns:
Type
boolean

setDefaultLimit(limit)

Source:
Parameters:
Name Type Description
limit

setSort(sortObject)

Source:
Parameters:
Name Type Description
sortObject

solrFriendly(key, term, isFacet) → {*}

Description:
  • Empty spaces in search term should be interpreted as AND instead of the default OR. In addition, fields indexed as text_ngram will have to be shortened to the ngram max limit as they will not match otherwise.

Source:
Parameters:
Name Type Description
key
term
isFacet
Returns:
Type
*

transformRights(rights)

Source:
Parameters:
Name Type Description
rights

update(entry, data)

Source:
Parameters:
Name Type Description
entry Entry
data Object

updateOrCreate(entryURI, data, entryStore) → {Entry}

Source:
Parameters:
Name Type Description
entryURI
data
entryStore
Returns:
Type
Entry