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_target_audience(value=nil, authority=nil, display_label=nil)
      audience_index = self.mods(0).target_audience.count
      self.mods(0).target_audience(audience_index, value) unless value.blank?
      self.mods(0).target_audience(audience_index).authority = authority unless authority.blank?
      self.mods(0).target_audience(audience_index).display_label = display_label unless display_label.blank?
    end
def insert_target_audience ( value = nil , authority = nil , display_label = nil ) audience_index = self . mods ( 0 ) . target_audience . count self . mods ( 0 ) . target_audience ( audience_index , value ) unless value . blank? self . mods ( 0 ) . target_audience ( audience_index ) . authority = authority unless authority . blank? self . mods ( 0 ) . target_audience ( audience_index ) . display_label = display_label unless display_label . blank? end
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
value
authority
display_label