lib/collectionspace/mapper/data_mapper.rb
def create_intermediate_subgroup_hierarchy(grp, subgroup_path)
        target = grp[:parent]
        unless subgroup_path.empty?
          subgroup_path.each do |segment|
            child = Nokogiri::XML::Node.new(segment, @doc)
            target.add_child(child)
            target = child
          end
        end
      end
# EXAMPLE: creates empty titleTranslationSubGroupList as a child of titleGroup
creates empty titleTranslationSubGroupList as a child of titleGroup
creates empty titleTranslationSubGroupList as a child of titleGroup
def create_intermediate_subgroup_hierarchy(grp, subgroup_path)
        target = grp[:parent]
        unless subgroup_path.empty?
          subgroup_path.each do |segment|
            child = Nokogiri::XML::Node.new(segment, @doc)
            target.add_child(child)
            target = child
          end
        end
      end
def create_intermediate_subgroup_hierarchy ( grp , subgroup_path ) target = grp [ :parent ] unless subgroup_path . empty? subgroup_path . each do | segment | child = Nokogiri :: XML :: Node . new ( segment , @doc ) target . add_child ( child ) target = child end end end
EXAMPLE: creates empty titleTranslationSubGroupList as a child of titleGroup
EXAMPLE : creates empty titleTranslationSubGroupList as a child of titleGroup
grp
subgroup_path