lib/onix/apa_product.rb
def publisher_set(type, value)
      pub = publisher_get(type)

      # create a new isbn record if we need to
      if pub.nil?
        pub = ONIX::Publisher.new
        pub.publishing_role = type
        product.publishers << pub
      end

      # store the new value
      pub.publisher_name = value.to_s
    end
def publisher_set(type, value)
      pub = publisher_get(type)

      # create a new isbn record if we need to
      if pub.nil?
        pub = ONIX::Publisher.new
        pub.publishing_role = type
        product.publishers << pub
      end

      # store the new value
      pub.publisher_name = value.to_s
    end
def publisher_set ( type , value ) pub = publisher_get ( type ) # create a new isbn record if we need to if pub . nil? pub = ONIX :: Publisher . new pub . publishing_role = type product . publishers << pub end # store the new value pub . publisher_name = value . to_s end
set the value of a particular ID
set the value of a particular ID