Class: RegisterCitationView

RegisterCitationView()

A simple form for a user to input a DOI that cites or uses a dataset in DataONE. When the form is submitted, the citation is registered with the DataONE Metrics service.

Screenshot

Constructor

new RegisterCitationView()

Source:

Extends

  • Backbone.View

Members

citationsUrl :string

The URL to save the citation to
Type:
  • string
Source:

errorMessage :string

The message to display the citation has failed to submit
Type:
  • string
Source:

successMessage :string

The message to display the citation is successfully submitted
Type:
  • string
Source:

Methods

registerCitation()

Get inputs from the modal and sends it to the DataONE Metrics Service
Source:

render()

Renders the submission form and creates a Bootstrap modal for this view
Source:

show()

Shows this view on the page.
Source:

teardown()

Hides and removes this view from the page.
Source:

validateDOI() → {undefined}

Validates if the given input is a valid DOI string or not
Since:
  • 2.15.0
Source:
Returns:
Type
undefined