Home Manual Reference Source Test
import {CitationWrapper} from '@phyloref/phyx/src/wrappers/CitationWrapper.js'
public class | source

CitationWrapper

Static Method Summary

Static Public Methods
public static

getAgentName(agent: *): string

Helper method to return a single name for a given agent entry.

Constructor Summary

Public Constructor
public

Construct a CitationWrapper.

Member Summary

Public Members
public

Method Summary

Public Methods
public

toString(): *

Returns a single string with the entire bibliographic citation.

Static Public Methods

public static getAgentName(agent: *): string source

Helper method to return a single name for a given agent entry. The algorithm we use is:

  • name, if one is present.
  • Some combination of lastname, firstname and middlename, if present.

Params:

NameTypeAttributeDescription
agent *

Return:

string

Public Constructors

public constructor() source

Construct a CitationWrapper.

Public Members

public citation: * source

Public Methods

public toString(): * source

Returns a single string with the entire bibliographic citation.

Return:

*