new Work(nodes, urn)
Instantiate CTS Work from CTS3 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> | |
defaultLang |
string | Default lang to use to display title |
texts |
Array.<CTS.repository.Prototypes.cts3.Text> | Texts available in the inventory |
editions |
Array.<CTS.repository.Prototypes.cts3.Edition> | Editions available in the inventory |
translations |
Array.<CTS.repository.Prototypes.cts3.Translation> | Translations available in the inventory |