CitationWrapper

Source: CitationWrapper.js:8

The CitationWrapper wraps a single citation in the Phyx document. Based on BibJSON (http://okfnlabs.org/bibjson/).


Constructor

new CitationWrapper(citation): CitationWrapper

Construct a CitationWrapper.


Instance Methods

toString()

Returns a single string with the entire bibliographic citation.

Static Methods

normalize()

Return a normalized form of a citation.

I'm not really sure how to normalize a citation, but the main thing we can do is delete any key that is equivalent to ''. We could interconvert between name and firstname/lastname/middlename, but that's not really equivalent, is it?

getAgentName()

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.