lib/onix/apa_product.rb
def title=(str)
      composite = product.titles.first
      if composite.nil?
        composite =  ONIX::Title.new
        composite.title_type = 1
        product.titles << composite
      end
      composite.title_text = str
    end
def title=(str)
      composite = product.titles.first
      if composite.nil?
        composite =  ONIX::Title.new
        composite.title_type = 1
        product.titles << composite
      end
      composite.title_text = str
    end
def title = ( str ) composite = product . titles . first if composite . nil? composite = ONIX :: Title . new composite . title_type = 1 product . titles << composite end composite . title_text = str end
set a new title
set a new title