Extends
- Backbone.Model
Methods
getActiveAltRepo() → {object}
Gets the currently-active alternative repository that is configured in this AppModel.
- Source:
Returns:
- Type
- object
getDataONEMNAPIs(baseUrlopt) → {object}
Constructs the DataONE API URLs for the given baseUrl
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
baseUrl |
string |
<optional> |
The baseUrl to use in the URLs. If not specified, it uses the AppModel attributes. |
- Source:
Returns:
- Type
- object
setActiveAltRepo()
Gets the default alternate repository and sets it as the active alternate repository.
If a default alt repo (AppConfig#defaultAlternateRepositoryId) isn't configured,
the first alt repo in the AppConfig#alternateRepositories list is used.
- Source:
Fires:
- AppModel#change:activeAlternateRepositoryId