Class: EMLParty

EMLParty()

EMLParty represents a single Party from the EML 2.1.1 and 2.2.0 metadata schema. This can be a person or organization.

Extends

  • Backbone.Model

Members

partyTypes :Array.<object>

Type:
  • Array.<object>
Properties:
Name Type Description
label string The name of the party category to display to the user
dataCategory string The string that is used to represent this party. This value should exactly match one of the strings listed in EMLParty typeOptions or EMLParty roleOptions.
description string An optional description to display below the label to help the user with this category.
createFromUser boolean If set to true, the information from the logged-in user will be used to create an EML party for this category if none exist already when the view loads.
limit number If the number of parties allowed for this category is not unlimited, then limit should be set to the maximum allowable number.
Since:
  • 2.21.0
Source:

Methods

getName() → {string}

getName - For an individual, returns the first and last name as a string. Otherwise, returns the organization or position name.
Since:
  • 2.15.0
Source:
Returns:
Returns the name of the party or an empty string if one cannot be found
Type
string

toCSLJSON() → {object}

Return the EML Party as a CSL JSON object. See https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html#names.
Since:
  • 2.23.0
Source:
Returns:
The CSL JSON object
Type
object