Constructor
new EMLParty()
- Source:
- See:
-
Extends
Members
partyTypes :Array.<object>
Type:
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:
- 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:
- Source:
Returns:
Returns the name of the party or an empty string if one cannot be found
-
Type
-
string
getUserIdArray() → {Array.<string>}
Get the userId attribute and ensure it is an array
- Since:
- Source:
Returns:
- An array of userIds
-
Type
-
Array.<string>
toCSLJSON() → {object}
- Since:
- Source:
Returns:
The CSL JSON object
-
Type
-
object
validateOrcid(orcid, standardize) → {string|boolean}
Parameters:
Name |
Type |
Description |
orcid |
string
|
The ORCID iD to validate |
standardize |
boolean
|
If true, the ORCID iD will be
standardized to the https://orcid.org/0000-0000-0000-0000 format. |
- Since:
- Source:
Returns:
- Returns false if the ORCID iD is invalid, or
the string if it is valid. If standardize is true, the returned orcid
will be the standardized URL.
-
Type
-
string
|
boolean