Constructor
new EMLView()
- Source:
Extends
Members
The ScienceMetadata model to render
Type:
- Inherited From:
- Source:
dataSensitivityContainerSelector :string
jQuery selector for the element that contains the Data Sensitivity section.
Type:
- Source:
partyTypes :Array.<object>
An array of literal objects to describe each type of EML Party. This property has been moved to
EMLParty#partyTypes as of 2.21.0 and will soon be deprecated.
Type:
- Since:
- Deprecated:
- Source:
Methods
Takes the text object from a metadata model and returns it as HTML formatted with paragraph elements
- Inherited From:
- Source:
updateText()
When a text element is changed, update the attribute in the model
- Inherited From:
- Source:
addAnnotation(e)
Adds an
EMLAnnotation to the
EML211 model currently being edited.
Attributes for the annotation are retreived from the HTML attributes from the HTML element
that was interacted with.
Parameters:
Name |
Type |
Description |
e |
Event
|
An Event on an Element that contains EMLAnnotation data |
- Source:
movePersonDown(e:)
Attempt to move the current person (Party) one index forward (down).
Parameters:
Name |
Type |
Description |
e: |
EventHandler
|
The click event handler |
- Source:
movePersonUp(e:)
Attempt to move the current person (Party) one index backward (up).
Parameters:
Name |
Type |
Description |
e: |
EventHandler
|
The click event handler |
- Source:
renderDataSensitivity()
Renders the Data Sensitivity section of the Editor using the data-sensitivity.html template.
- Source:
Fires:
- EML211View#event:editorInputsAdded
renderPeopleDropdown()
Creates and renders the dropdown at the bottom of the people section
that allows the user to create a new party type category. The dropdown
menu is saved to the view as view.partyMenu.
- Since:
- Source:
renderPerson(emlParty, partyType)
Render the information provided for a given EML party in the party section.
Parameters:
Name |
Type |
Description |
emlParty |
EMLParty
|
the EMLParty model to render. If set to null, a new EML party will be created for the given party type. |
partyType |
string
|
The party type for which to render a new EML party. E.g. "creator", "coPrincipalInvestigator", etc. |
- Source: