app/models/bplmodels/mods_desc_metadata.rb
#include Hydra::Datastream::CommonModsIndexMethods
# MODS XML constants.
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
def insert_identifier(identifier=nil, type=nil, display_label=nil, invalid=nil)
      identifier_index = self.mods(0).identifier.count
      if identifier.present?
        self.mods(0).identifier(identifier_index, identifier) unless identifier.blank?
        self.mods(0).identifier(identifier_index).type_at = type unless type.blank?
        self.mods(0).identifier(identifier_index).displayLabel = display_label unless display_label.blank?
        self.mods(0).identifier(identifier_index).invalid = 'yes' if (invalid.present? && invalid == 'yes')
      end
    end
def insert_identifier ( identifier = nil , type = nil , display_label = nil , invalid = nil ) identifier_index = self . mods ( 0 ) . identifier . count if identifier . present? self . mods ( 0 ) . identifier ( identifier_index , identifier ) unless identifier . blank? self . mods ( 0 ) . identifier ( identifier_index ) . type_at = type unless type . blank? self . mods ( 0 ) . identifier ( identifier_index ) . displayLabel = display_label unless display_label . blank? self . mods ( 0 ) . identifier ( identifier_index ) . invalid = 'yes' if ( invalid . present? && invalid == 'yes' ) end end
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
identifier
type
display_label
invalid