Class: Work

Work

new Work(nodes, urn)

Instantiate CTS Work from CTS5 XML
Parameters:
Name Type Description
nodes NodeList DOM element to use for completion of the instance
urn string URN of the parent
Properties:
Name Type Description
urn string URN of the Work
lang string Lang of the Work
titles Object.<string, string> Dictionary of titles to show for the textgroup (Author name)
defaultLang string Default lang to use to display title
texts Array.<CTS.repository.Prototypes.cts5.Text> Texts available in the inventory
editions Array.<CTS.repository.Prototypes.cts5.Edition> Editions available in the inventory
translations Array.<CTS.repository.Prototypes.cts5.Translation> Translations available in the inventory

Extends