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_subject_geographic(geographic=nil, valueURI=nil, authority=nil, coordinates=nil)
      if geographic.present? && !self.mods(0).subject.geographic.any? {|geo| geo==geographic}
        subject_index = self.mods(0).subject.count
        self.mods(0).subject(subject_index).geographic = geographic unless geographic.blank?
        self.mods(0).subject(subject_index).valueURI = valueURI unless valueURI.blank?
        unless authority.blank?
          self.mods(0).subject(subject_index).authority = authority
          self.mods(0).subject(subject_index).authorityURI = BplEnrich::Authorities.authority_uri(authority)
        end
        self.mods(0).subject(subject_index).cartographics(0).coordinates = coordinates unless coordinates.blank?
      end
    end
def insert_subject_geographic ( geographic = nil , valueURI = nil , authority = nil , coordinates = nil ) if geographic . present? && ! self . mods ( 0 ) . subject . geographic . any? { | geo | geo == geographic } subject_index = self . mods ( 0 ) . subject . count self . mods ( 0 ) . subject ( subject_index ) . geographic = geographic unless geographic . blank? self . mods ( 0 ) . subject ( subject_index ) . valueURI = valueURI unless valueURI . blank? unless authority . blank? self . mods ( 0 ) . subject ( subject_index ) . authority = authority self . mods ( 0 ) . subject ( subject_index ) . authorityURI = BplEnrich :: Authorities . authority_uri ( authority ) end self . mods ( 0 ) . subject ( subject_index ) . cartographics ( 0 ) . coordinates = coordinates unless coordinates . blank? end end
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
geographic
valueURI
authority
coordinates