Class: Edition

Edition

new Edition(nodes, urn, lang)

Instantiate CTS Edition from CTS5 XML
Parameters:
Name Type Description
nodes NodeList DOM element to use for completion of the instance
urn string URN of the parent
lang lang Lang of the text
Properties:
Name Type Description
urn string URN of the Edition
lang string Lang of the Edition
titles Object.<string, string> Dictionary of titles to show for the textgroup (Author name)
defaultLangLabel string Default lang to use to display title
descriptions Object.<string, string> Dictionary of titles to show for the textgroup (Author name)
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