Skip to content

Commit

Permalink
force doi fields into an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Aug 1, 2019
1 parent 33321dc commit 04e12bd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ def as_indexed_json(options={})
"doi" => doi,
"identifier" => identifier,
"url" => url,
"creators" => creators,
"contributors" => contributors,
"creators" => Array.wrap(creators),
"contributors" => Array.wrap(contributors),
"creator_names" => creator_names,
"titles" => titles,
"descriptions" => descriptions,
"titles" => Array.wrap(titles),
"descriptions" => Array.wrap(descriptions),
"publisher" => publisher,
"client_id" => client_id,
"provider_id" => provider_id,
Expand All @@ -330,19 +330,19 @@ def as_indexed_json(options={})
"suffix" => suffix,
"types" => types,
"identifiers" => identifiers,
"related_identifiers" => related_identifiers,
"funding_references" => funding_references,
"related_identifiers" => Array.wrap(related_identifiers),
"funding_references" => Array.wrap(funding_references),
"publication_year" => publication_year,
"dates" => dates,
"geo_locations" => geo_locations,
"rights_list" => rights_list,
"geo_locations" => Array.wrap(geo_locations),
"rights_list" => Array.wrap(rights_list),
"container" => container,
"content_url" => content_url,
"version_info" => version_info,
"formats" => formats,
"sizes" => sizes,
"formats" => Array.wrap(formats),
"sizes" => Array.wrap(sizes),
"language" => language,
"subjects" => subjects,
"subjects" => Array.wrap(subjects),
"xml" => xml,
"is_active" => is_active,
"landing_page" => landing_page,
Expand Down

0 comments on commit 04e12bd

Please sign in to comment.