Skip to content

Commit

Permalink
Merge pull request immateriel#53 from julbouln/master
Browse files Browse the repository at this point in the history
improve onix 2.1 support + bugfix Contributor
  • Loading branch information
bergalath authored Nov 29, 2016
2 parents ff83eee + e630dd5 commit ec7b482
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/onix/contributor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def name
@person_name
else
if @key_names
if @name_before_key
"#{@name_before_key} #{@key_names}"
if @names_before_key
"#{@names_before_key} #{@key_names}"
else
@key_names
end
Expand Down
15 changes: 15 additions & 0 deletions lib/onix/onix21.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ class RelatedProduct < SubsetDSL
element "RelationCode", :text
elements "ProductIdentifier", :subset

def product=v
end

def identifiers
@product_identifiers
end
Expand Down Expand Up @@ -426,6 +429,18 @@ def availability_date
nil
end

def embargo_date
nil
end

def preorder_embargo_date
nil
end

def public_announcement_date
nil
end

include ProductSuppliesExtractor

def related
Expand Down

0 comments on commit ec7b482

Please sign in to comment.