This module represents EDIML's lifecycle
The 'content' attribute represents the actual core.
The weird structure of the content object is a trade off needed to allow this structure to exchange data in XML form compatible with both the xml2json.js/json2xml.js conversions and JAXB's server side conversion.
The 'content' attribute represents the actual core.
The weird structure of the content object is a trade off needed to allow this structure to exchange data in XML form compatible with both the xml2json.js/json2xml.js conversions and JAXB's server side conversion.
Methods
(static) duplicateElement(id, newId)
Duplicates an EDIML element, but not its HTML representation
Parameters:
Name | Type | Description |
---|---|---|
id |
||
newId |
(static) fillInEdiMl(ediMl)
Fills in the HTML form with contents of the EDIML parameter
Parameters:
Name | Type | Description |
---|---|---|
ediMl |
(static) loadEDIML(edimlId, callback)
Loads EDIML from the metadataEndpoint defined in the template's settings
Parameters:
Name | Type | Description |
---|---|---|
edimlId |
the EDIML record to be fetched | |
callback |
who to call when done |
(static) saveAs(name)
Saves current EDIML state to localStorage
WARNING: the EDIML is saved as is, with no validation
Parameters:
Name | Type | Description |
---|---|---|
name |
name to be assigned to this instance |