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_media_type(media_type=nil)
      physical_description_index = 0
      media_type_index = self.mods(0).physical_description(physical_description_index).internet_media_type.count
      self.mods(0).physical_description(physical_description_index).internet_media_type(media_type_index, media_type) unless media_type.blank? ||  self.mods(0).physical_description(physical_description_index).internet_media_type.include?(media_type)
    end
def insert_media_type ( media_type = nil ) physical_description_index = 0 media_type_index = self . mods ( 0 ) . physical_description ( physical_description_index ) . internet_media_type . count self . mods ( 0 ) . physical_description ( physical_description_index ) . internet_media_type ( media_type_index , media_type ) unless media_type . blank? || self . mods ( 0 ) . physical_description ( physical_description_index ) . internet_media_type . include? ( media_type ) end
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
media_type