app/models/bplmodels/mods_desc_metadata.rb
def insert_date_issued(dateStarted=nil, dateEnding=nil, dateQualifier=nil)
      #begin
      if self.find_by_terms(:origin_info) != nil && self.find_by_terms(:origin_info).slice(0) != nil
        add_child_node(self.find_by_terms(:origin_info).slice(0), :date_issued_partial, dateStarted, dateEnding, dateQualifier)
      else
        add_child_node(ng_xml.root, :date_issued, dateStarted, dateEnding, dateQualifier)
      end

      #rescue OM::XML::Terminology::BadPointerError
      #add_child_node(ng_xml.root, :date, dateStarted, dateEnding, dateQualifier, dateOther)
      #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_date_issued(dateStarted=nil, dateEnding=nil, dateQualifier=nil)
      if self.find_by_terms(:origin_info) != nil && self.find_by_terms(:origin_info).slice(0) != nil
        add_child_node(self.find_by_terms(:origin_info).slice(0), :date_issued_partial, dateStarted, dateEnding, dateQualifier)
      else
        add_child_node(ng_xml.root, :date_issued, dateStarted, dateEnding, dateQualifier)
      end
    end
def insert_date_issued ( dateStarted = nil , dateEnding = nil , dateQualifier = nil ) if self . find_by_terms ( :origin_info ) != nil && self . find_by_terms ( :origin_info ) . slice ( 0 ) != nil add_child_node ( self . find_by_terms ( :origin_info ) . slice ( 0 ) , :date_issued_partial , dateStarted , dateEnding , dateQualifier ) else add_child_node ( ng_xml . root , :date_issued , dateStarted , dateEnding , dateQualifier ) end end
include Hydra::Datastream::CommonModsIndexMethods
MODS XML constants.
include Hydra :: Datastream :: CommonModsIndexMethods MODS XML constants .
#begin #rescue OM::XML::Terminology::BadPointerError #add_child_node(ng_xml.root, :date, dateStarted, dateEnding, dateQualifier, dateOther) #end
dateStarted
dateEnding
dateQualifier