Constructor
    
    
    
      
        
      
      new EMLEntityView()
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
    
     
    
        Extends
        
    
    
    
    
    
    
    
    
        Members
        
            
  
    
  
  className
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
  
    
  
  events
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
  
    
  
  template :Underscore.Template
    The template for this view
    Type:
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
    
    
        Methods
        
            
    
    
    
      
        
      
      clearOldDrafts()
    
    
    
    Clear older drafts by iterating over the sorted list of drafts stored
by LocalForage and removing any beyond a hardcoded limit.
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      hide()
    
    
    
    Close the modal that contains this view
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      initialize()
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      onHide()
    
    
    
    Hide the entity modal dialog
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      onShow()
    
    
    
    Handles the logic to be executed when thw modal view is shown. Restarts
existing listeners on the attributesView.
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      render()
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      renderAttributes()
    
    
    
    Render the attributes of the entity
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      renderEntityTemplate()
    
    
    
    Render the entity template
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      renderPreview()
    
    
    
    Render the preview of the DataONEObject
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      saveDraft()
    
    
    
    Save a draft of the parent EML model
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      show()
    
    
    
    Show the entity in a modal dialogue
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      showAttributesTab()
    
    
    
    Show the Attributes tab (vs the Overview tab)
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      showTab(e)
    
    
    
    Show the entity overview or attributes tab depending on the click
target
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                e | 
            
            
            
                
Event
            
             | 
            
            
            The click event | 
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      showValidation()
    
    
    
    Will display validation styling and messaging. Should be called after
this view's model has been validated and there are error messages to
display
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      switchToOtherEntityView(otherModel)
    
    
    
    Close this modal and open one for another entity in the same
collection. Requires the parentView to be set.
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                otherModel | 
            
            
            
                
EMLEntity
            
             | 
            
            
            The other entity to show | 
        
    
    
    
    
    - Since:
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source:
 
    
    
    
    
    
        
            
    
    
    
      
        
      
      updateModel(e)
    
    
    
    Update the model when the user changes an input field
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                e | 
            
            
            
                
Event
            
             | 
            
            
            The change event | 
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    - Source: