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_classification(value=nil, edition=nil, authority=nil, display_label=nil)
      classification_index = self.mods(0).classification.count
      if value.present?
        self.mods(0).classification(classification_index, value)
        self.mods(0).classification(classification_index).edition = edition unless edition.blank?
        self.mods(0).classification(classification_index).authority = authority unless authority.blank?
        self.mods(0).classification(classification_index).displayLabel = display_label unless display_label.blank?
      end
    end
def insert_classification ( value = nil , edition = nil , authority = nil , display_label = nil ) classification_index = self . mods ( 0 ) . classification . count if value . present? self . mods ( 0 ) . classification ( classification_index , value ) self . mods ( 0 ) . classification ( classification_index ) . edition = edition unless edition . blank? self . mods ( 0 ) . classification ( classification_index ) . authority = authority unless authority . blank? self . mods ( 0 ) . classification ( classification_index ) . displayLabel = display_label unless display_label . blank? end end
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
value
edition
authority
display_label