app/models/bplmodels/mods_desc_metadata.rb
def insert_type_of_resource(value=nil, manuscript=nil)
      resource_index = self.mods(0).type_of_resource.count
      if !self.mods(0).type_of_resource.include?(value)
        self.mods(0).type_of_resource(resource_index, value) unless value.blank?
        self.mods(0).type_of_resource(resource_index).manuscript = 'yes' unless manuscript.blank?
      end
    end
#include Hydra::Datastream::CommonModsIndexMethods
# MODS XML constants.
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
def insert_type_of_resource(value=nil, manuscript=nil)
      resource_index = self.mods(0).type_of_resource.count
      if !self.mods(0).type_of_resource.include?(value)
        self.mods(0).type_of_resource(resource_index, value) unless value.blank?
        self.mods(0).type_of_resource(resource_index).manuscript = 'yes' unless manuscript.blank?
      end
    end
def insert_type_of_resource ( value = nil , manuscript = nil ) resource_index = self . mods ( 0 ) . type_of_resource . count if ! self . mods ( 0 ) . type_of_resource . include? ( value ) self . mods ( 0 ) . type_of_resource ( resource_index , value ) unless value . blank? self . mods ( 0 ) . type_of_resource ( resource_index ) . manuscript = 'yes' unless manuscript . blank? end end
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
value
manuscript