Class: EMLMethodStep

EMLMethodStep()

Represents the EML Method Steps. The methodStep field allows for repeated sets of elements that document a series of procedures followed to produce a data object. These include text descriptions of the procedures, relevant literature, software, instrumentation, source data and any quality control measures taken.

Constructor

new EMLMethodStep()

Since:
  • 2.19.0
Source:

Extends

  • Backbone.Model

Methods

defaults() → {object}

Default attributes for EMLMethodSteps
Properties:
Name Type Description
objectXML string The original XML snippet string from the EML XML
objectDOM Element The original XML snippet as an Element
description EMLText | EMLSpecializedText A textual description of this method step
instrumentation Array.<string> One or more instruments used for measurement and recording data
subStep Array.<EMLMethodStep> Nested additional method steps within this step. This is useful for hierarchical method descriptions. This is *not* fully supported in MetacatUI yet
customMethodID Array.<string> A unique identifier for this Custom Method Step type, which is defined in AppConfig#customEMLMethods
required boolean If true, this method step is required in it's parent EML
Source:
Returns:
Type
object

isCustom() → {boolean}

Returns whether or not this Method Step is a custom one, which currently only applies to the description
Source:
Returns:
Type
boolean

isEmpty() → {boolean}

function isEmpty() - Will check if there are any values set on this model that are different than the default values and would be serialized to the EML.
Source:
Returns:
- Returns true is this model is empty, false if not
Type
boolean

nodeNameMap() → {object}

Maps the lower-case EML node names (valid in HTML DOM) to the camel-cased EML node names (valid in EML). Used during parse() and serialize()
Source:
Returns:
Type
object

updateDOM()

Makes a copy of the original XML DOM and updates it with the new values from the model.
Source:

validate() → {object}

Overloads Backbone.Model.validate() to check if this model has valid values set on it
Source:
Returns:
Type
object