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): CitationWrapperConstruct a CitationWrapper.
Instance Methods
toString()
Returns a single string with the entire bibliographic citation.
Static Methods
normalize()
static
CitationWrapper.js:23Return 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()
static
CitationWrapper.js:40Helper 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,firstnameandmiddlename, if present.