Skip to content

Commit

Permalink
export external identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
tomek1024 committed Nov 9, 2014
1 parent e849833 commit 4efa662
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/elibri_onix_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,14 @@ def export_record_identifiers!(product)
end
end

if product.external_identifier
tag(:ProductIdentifier) do
tag(:ProductIDType, Elibri::ONIX::Dict::Release_3_0::ProductIDType::PROPRIETARY) #lista 5
tag(:IDTypeName, product.external_identifier.type_name)
tag(:IDValue, product.external_identifier.value)
end
end

if @xml_variant.includes_stocks?
product.product_availabilities.each do |pa|
if pa.supplier_identifier.present?
Expand Down

0 comments on commit 4efa662

Please sign in to comment.