new Text(nodes, type, urn)
Instantiate CTS Text from CTS5 XML (CTS Text is the abstract model shared by Edition and Translation)
Parameters:
Name | Type | Description |
---|---|---|
nodes |
NodeList | DOM element to use for completion of the instance |
type |
string | Type of Text |
urn |
string | URN of the parent |
Properties:
Name | Type | Description |
---|---|---|
urn |
string | URN of the Text |
type |
string | Type of the Text |
lang |
string | Lang of the Text |
titles |
Object.<string, string> | |
defaultLangLabel |
string | Default lang to use to display title |
descriptions |
Object.<string, string> | |
defaultLangDesc |
string | Default lang to use to display title |
citations |
Array.<string> | List of label for citations scheme |
Extends
Methods
-
getDesc(lang) → {string}
-
Get the description
Parameters:
Name Type Argument Description lang
string <nullable>
Lang wished - Inherited From:
Returns:
Title of the object. Return default lang if lang not found- Type
- string
-
getTitle(lang) → {string}
-
Get the title of the object
Parameters:
Name Type Argument Description lang
string <nullable>
Lang wished - Inherited From:
Returns:
Title of the object. Return default lang if lang not found- Type
- string