Skip to content

Commit

Permalink
parse container identifier with namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Aug 4, 2019
1 parent fd32e81 commit 50f72ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -696,11 +696,11 @@ def self.convert_container_by_id(options={})
container = {}
elsif !(doi.container.is_a?(Hash))
logger.error "[MySQL] container for DOI #{doi.doi} should be a hash."
elsif [doi.container["title"], doi.container["volume"], doi.container["issue"]].any? { |c| c.is_a?(Hash) }
elsif [doi.container["title"], doi.container["volume"], doi.container["issue"], doi.container["identifier"]].any? { |c| c.is_a?(Hash) }
should_update = true
container = {
"type" => doi.container["type"],
"identifier" => doi.container["identifier"],
"identifier" => parse_attributes(doi.container["identifier"]),
"identifierType" => doi.container["identifierType"],
"title" => parse_attributes(doi.container["title"]),
"volume" => parse_attributes(doi.container["volume"]),
Expand Down

0 comments on commit 50f72ff

Please sign in to comment.