Class: UIRouter

UIRouter()

MetacatUI Router

Constructor

new UIRouter()

Source:

Extends

  • Backbone.Router

Methods

renderDrafts()

Renders the Drafts view which is a simple view backed by LocalForage that lists drafts created in the Editor so users can recover any failed submissions.
Source:

renderPortal(label, portalSection)

renderPortal - Render the portal view based on the given name or id, as well as optional section
Parameters:
Name Type Description
label string The portal ID or name
portalSection string A specific section within the portal
Source:

renderPortalEditor(portalTermPluralopt, portalIdentifieropt, portalSectionopt)

Renders the PortalEditorView
Parameters:
Name Type Attributes Description
portalTermPlural string <optional>
This should match the `portalTermPlural` configured in the AppModel.
portalIdentifier string <optional>
The id or labebl of the portal
portalSection string <optional>
The name of the section within the portal to navigate to (e.g. "data")
Source:

renderPortalsSearch()

Renders the Portals Search view.
Source:

renderVersionHistory(pidParam)

Display a page with complete versio history for a given dataset.
Parameters:
Name Type Description
pidParam string The identifier of the dataset to display the version history for. Typically a metadata (EML) pid, but this will work for any PID with an obsoletes/obsoletedBy chain in its sysMeta.
Since:
  • 2.37.0
Source: