lib/onix/product.rb in onix-0.4.0 vs lib/onix/product.rb in onix-0.4.2
- old
+ new
@@ -9,12 +9,12 @@
xml_accessor :product_identifiers, [ONIX::ProductIdentifier], :from => "ProductIdentifier"
xml_accessor :product_form, :from => "ProductForm"
xml_accessor :series, :from => "Series"
xml_accessor :edition_number, :integer, :from => "EditionNumber"
xml_accessor :titles, [ONIX::Title], :from => "Title"
- xml_accessor :websites, [ONIX::Website], :from => "Website"
xml_accessor :contributors, [ONIX::Contributor], :from => "Contributor"
+ xml_accessor :websites, [ONIX::Website], :from => "Website"
xml_accessor :number_of_pages, :integer, :from => "NumberOfPages"
xml_accessor :bic_main_subject, :from => "BICMainSubject"
xml_accessor :subjects, [ONIX::Subject], :from => "Subject"
xml_accessor :text, [ONIX::OtherText], :from => "OtherText"
xml_accessor :media_files, [ONIX::MediaFile], :from => "MediaFile"
@@ -22,9 +22,19 @@
xml_accessor :publishers, [ONIX::Publisher], :from => "Publisher"
xml_accessor :publishing_status, :twodigit, :from => "PublishingStatus"
xml_accessor :publication_date, :yyyymmdd, :from => "PublicationDate"
xml_accessor :year_first_published, :integer, :from => "YearFirstPublished"
xml_accessor :sales_restrictions, [ONIX::SalesRestriction], :from => "SalesRestriction"
+ xml_accessor :measurements, [ONIX::Measure], :from => "Measure"
xml_accessor :supply_details, [ONIX::SupplyDetail], :from => "SupplyDetail"
+
+ # some deprecated attributes. Read only
+ # - See the measures array for the current way of specifying
+ # various measurements of the product
+ xml_reader :height, :decimal, :from => "Height"
+ xml_reader :width, :decimal, :from => "Width"
+ xml_reader :thickness, :decimal, :from => "Thickness"
+ xml_reader :weight, :decimal, :from => "Weight"
+ xml_reader :dimensions, :etext, :from => "Dimensions"
end
end