Class: Text

CTS.repository.Prototypes. Text

new Text(type)

Prototype for CTS Text (alias share practices between Edition and Translation)
Parameters:
Name Type Description
type string Type of Text
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> 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

Methods

getDesc(lang) → {string}

Get the description
Parameters:
Name Type Argument Description
lang string <nullable>
Lang wished
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
Returns:
Title of the object. Return default lang if lang not found
Type
string