Class: TextInventory

CTS.repository.Prototypes. TextInventory

new TextInventory(identifier)

TextInventory Prototype
Parameters:
Name Type Description
identifier string Identifier, usually an URI
Properties:
Name Type Description
namespace string Namespace for nodes parsing
xml Node XML node representing the TextInventory node
textgroups Array.<CTS.repository.Prototypes.TextGroup> Textgroup available in the inventory

Methods

getRaw(lang, theoretical) → {Object}

Get a N-Dimensional object corresponding to your TextInventory Hierarchy as following : TextGroup > Work > Edition | Translation | Theoretical
Parameters:
Name Type Description
lang string Lang to chose for titles (keys in the dictionary)
theoretical boolean Include theoretical works
Returns:
Dictionary with hierarchy such as TextGroup > Work > Edition | Translation | Theoretical
Type
Object