briard 2.7.1 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (520) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rubocop.yml +6 -6
  3. data/Gemfile.lock +2 -2
  4. data/README.md +7 -0
  5. data/briard.gemspec +1 -1
  6. data/lib/briard/author_utils.rb +50 -33
  7. data/lib/briard/doi_utils.rb +5 -1
  8. data/lib/briard/metadata.rb +1 -1
  9. data/lib/briard/metadata_utils.rb +2 -0
  10. data/lib/briard/readers/crossref_json_reader.rb +167 -0
  11. data/lib/briard/readers/crossref_reader.rb +3 -3
  12. data/lib/briard/readers/datacite_reader.rb +1 -1
  13. data/lib/briard/utils.rb +13 -3
  14. data/lib/briard/version.rb +1 -1
  15. data/spec/author_utils_spec.rb +36 -32
  16. data/spec/cli_spec.rb +1 -1
  17. data/spec/doi_utils_spec.rb +8 -8
  18. data/spec/fixtures/crossref.json +572 -0
  19. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/crossref/default.yml +9 -9
  20. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/crossref/to_bibtex.yml +9 -9
  21. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/crossref/to_citation.yml +9 -9
  22. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/crossref/to_crossref.yml +9 -9
  23. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/crossref/to_datacite.yml +9 -9
  24. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/crossref/to_jats.yml +9 -9
  25. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/crossref/to_schema_org.yml +9 -9
  26. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/datacite/default.yml +10 -10
  27. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/datacite/to_bibtex.yml +10 -10
  28. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/datacite/to_citation.yml +10 -10
  29. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/datacite/to_datacite.yml +10 -10
  30. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/datacite/to_datacite_json.yml +10 -10
  31. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/datacite/to_jats.yml +10 -10
  32. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/datacite/to_schema_org.yml +10 -10
  33. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/schema_org/default.yml +7 -9
  34. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/schema_org/to_datacite.yml +5 -5
  35. data/spec/fixtures/vcr_cassettes/Briard_CLI/convert_from_id/schema_org/to_schema_org.yml +9 -7
  36. data/spec/fixtures/vcr_cassettes/Briard_CLI/find_from_format_by_id/crossref.yml +4 -4
  37. data/spec/fixtures/vcr_cassettes/Briard_CLI/find_from_format_by_id/datacite.yml +4 -4
  38. data/spec/fixtures/vcr_cassettes/Briard_CLI/find_from_format_by_id/jalc.yml +4 -4
  39. data/spec/fixtures/vcr_cassettes/Briard_CLI/find_from_format_by_id/kisti.yml +4 -4
  40. data/spec/fixtures/vcr_cassettes/Briard_CLI/find_from_format_by_id/medra.yml +4 -4
  41. data/spec/fixtures/vcr_cassettes/Briard_CLI/find_from_format_by_id/op.yml +4 -4
  42. data/spec/fixtures/vcr_cassettes/Briard_Metadata/authors_as_string/author.yml +5 -5
  43. data/spec/fixtures/vcr_cassettes/Briard_Metadata/authors_as_string/no_author.yml +6 -6
  44. data/spec/fixtures/vcr_cassettes/Briard_Metadata/authors_as_string/single_author.yml +6 -6
  45. data/spec/fixtures/vcr_cassettes/Briard_Metadata/authors_as_string/with_organization.yml +5 -5
  46. data/spec/fixtures/vcr_cassettes/Briard_Metadata/change_datacite_metadata/change_state.yml +10 -10
  47. data/spec/fixtures/vcr_cassettes/Briard_Metadata/change_datacite_metadata/change_title.yml +10 -10
  48. data/spec/fixtures/vcr_cassettes/Briard_Metadata/change_metadata_as_datacite_xml/change_description.yml +5 -5
  49. data/spec/fixtures/vcr_cassettes/Briard_Metadata/change_metadata_as_datacite_xml/change_identifiers.yml +5 -5
  50. data/spec/fixtures/vcr_cassettes/Briard_Metadata/change_metadata_as_datacite_xml/change_license.yml +5 -5
  51. data/spec/fixtures/vcr_cassettes/Briard_Metadata/change_metadata_as_datacite_xml/change_license_name.yml +5 -5
  52. data/spec/fixtures/vcr_cassettes/Briard_Metadata/change_metadata_as_datacite_xml/change_license_url.yml +5 -5
  53. data/spec/fixtures/vcr_cassettes/Briard_Metadata/change_metadata_as_datacite_xml/change_state.yml +5 -5
  54. data/spec/fixtures/vcr_cassettes/Briard_Metadata/change_metadata_as_datacite_xml/validates_against_schema.yml +5 -5
  55. data/spec/fixtures/vcr_cassettes/Briard_Metadata/change_metadata_as_datacite_xml/with_data_citation.yml +5 -5
  56. data/spec/fixtures/vcr_cassettes/Briard_Metadata/{doi_api_url → datacite_api_url}/doi.yml +5 -5
  57. data/spec/fixtures/vcr_cassettes/Briard_Metadata/{doi_api_url/test_resolver.yml → datacite_api_url/doi_with_protocol.yml} +5 -5
  58. data/spec/fixtures/vcr_cassettes/Briard_Metadata/datacite_api_url/dx_doi_org_url.yml +65 -0
  59. data/spec/fixtures/vcr_cassettes/Briard_Metadata/datacite_api_url/force_test_resolver.yml +65 -0
  60. data/spec/fixtures/vcr_cassettes/Briard_Metadata/{doi_api_url → datacite_api_url}/https_url.yml +5 -5
  61. data/spec/fixtures/vcr_cassettes/Briard_Metadata/{doi_api_url/doi_with_protocol.yml → datacite_api_url/test_resolver.yml} +5 -5
  62. data/spec/fixtures/vcr_cassettes/Briard_Metadata/{doi_api_url → datacite_api_url}/test_resolver_http.yml +5 -5
  63. data/spec/fixtures/vcr_cassettes/Briard_Metadata/{doi_api_url/dx_doi_org_url.yml → doi_from_url/crossref_api_url.yml} +5 -5
  64. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_from_url/doi.yml +6 -6
  65. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_from_url/doi_with_special_characters.yml +5 -5
  66. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_from_url/not_a_doi.yml +5 -5
  67. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_from_url/sandbox_url.yml +6 -6
  68. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_from_url/url.yml +6 -6
  69. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_registration_agency/crossref.yml +9 -9
  70. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_registration_agency/datacite.yml +9 -9
  71. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_registration_agency/jalc.yml +9 -9
  72. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_registration_agency/kisti.yml +10 -10
  73. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_registration_agency/medra.yml +10 -10
  74. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_registration_agency/not_a_valid_prefix.yml +6 -6
  75. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_registration_agency/not_found.yml +9 -9
  76. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_registration_agency/op.yml +9 -9
  77. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_resolver/doi.yml +6 -6
  78. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_resolver/doi_with_protocol.yml +5 -5
  79. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_resolver/dx_doi_org_url.yml +5 -5
  80. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_resolver/force_stage_resolver.yml +6 -6
  81. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_resolver/https_url.yml +5 -5
  82. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_resolver/stage_resolver.yml +5 -5
  83. data/spec/fixtures/vcr_cassettes/Briard_Metadata/doi_resolver/stage_resolver_http.yml +5 -5
  84. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_by_ID/crossref.yml +14 -14
  85. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_by_ID/crossref_doi_not_url.yml +14 -14
  86. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_by_ID/datacite.yml +14 -14
  87. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_by_ID/datacite_doi_http.yml +14 -14
  88. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_by_ID/github.yml +10 -10
  89. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_by_ID/orcid.yml +10 -10
  90. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_by_ID/schema_org.yml +10 -10
  91. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_by_ID/unknown_DOI_registration_agency.yml +14 -14
  92. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_from_file/bibtex.yml +10 -10
  93. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_from_file/citeproc.yml +10 -10
  94. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_from_file/codemeta.yml +10 -10
  95. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_from_file/crosscite.yml +10 -10
  96. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_from_file/crossref.yml +10 -10
  97. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_from_file/datacite.yml +10 -10
  98. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_from_file/datacite_json.yml +10 -10
  99. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_from_file/ris.yml +10 -10
  100. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_from_file/schema_org.yml +10 -10
  101. data/spec/fixtures/vcr_cassettes/Briard_Metadata/find_from_format_from_string/crosscite.yml +10 -10
  102. data/spec/fixtures/vcr_cassettes/Briard_Metadata/fos/hsh_to_fos_for_match.yml +5 -5
  103. data/spec/fixtures/vcr_cassettes/Briard_Metadata/fos/hsh_to_fos_for_with_schemeUri_in_hash.yml +6 -6
  104. data/spec/fixtures/vcr_cassettes/Briard_Metadata/fos/hsh_to_fos_match.yml +5 -5
  105. data/spec/fixtures/vcr_cassettes/Briard_Metadata/fos/hsh_to_fos_no_match.yml +5 -5
  106. data/spec/fixtures/vcr_cassettes/Briard_Metadata/fos/name_to_fos_for_match.yml +6 -6
  107. data/spec/fixtures/vcr_cassettes/Briard_Metadata/fos/name_to_fos_match.yml +6 -6
  108. data/spec/fixtures/vcr_cassettes/Briard_Metadata/fos/name_to_fos_no_match.yml +6 -6
  109. data/spec/fixtures/vcr_cassettes/Briard_Metadata/from_schema_org/with_id.yml +6 -6
  110. data/spec/fixtures/vcr_cassettes/Briard_Metadata/from_schema_org_creators/with_affiliation.yml +6 -6
  111. data/spec/fixtures/vcr_cassettes/Briard_Metadata/from_schema_org_creators/without_affiliation.yml +5 -5
  112. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_cff_metadata/cff-converter-python.yml +7 -7
  113. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_cff_metadata/ruby-cff.yml +7 -7
  114. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_cff_metadata/ruby-cff_repository_url.yml +8 -8
  115. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_codemeta_metadata/maremma.yml +10 -10
  116. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_codemeta_metadata/metadata_reports.yml +7 -7
  117. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/DOI_with_ORCID_ID.yml +112 -0
  118. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/DOI_with_SICI_DOI.yml +112 -0
  119. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/DOI_with_data_citation.yml +112 -0
  120. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/JaLC.yml +112 -0
  121. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/KISTI.yml +112 -0
  122. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/OP.yml +112 -0
  123. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/affiliation_is_space.yml +112 -0
  124. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/another_book.yml +112 -0
  125. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/another_book_chapter.yml +112 -0
  126. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/article_id_as_page_number.yml +112 -0
  127. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/author_literal.yml +112 -0
  128. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/book.yml +112 -0
  129. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/book_chapter.yml +112 -0
  130. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/book_chapter_with_RDF_for_container.yml +112 -0
  131. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/book_oup.yml +112 -0
  132. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/component.yml +112 -0
  133. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/dataset.yml +112 -0
  134. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/dataset_usda.yml +112 -0
  135. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/date_in_future.yml +112 -0
  136. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/dissertation.yml +112 -0
  137. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/empty_given_name.yml +112 -0
  138. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/invalid_date.yml +112 -0
  139. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/journal_article.yml +112 -0
  140. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/journal_article_original_language_title.yml +112 -0
  141. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/journal_article_with.yml +112 -0
  142. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/journal_article_with_RDF_for_container.yml +112 -0
  143. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/journal_article_with_funding.yml +112 -0
  144. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/journal_issue.yml +112 -0
  145. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/mEDRA.yml +112 -0
  146. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/markup.yml +112 -0
  147. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/missing_creator.yml +112 -0
  148. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/multiple_issn.yml +112 -0
  149. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/multiple_titles.yml +112 -0
  150. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/multiple_titles_with_missing.yml +112 -0
  151. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/not_found_error.yml +105 -0
  152. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/peer_review.yml +112 -0
  153. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/posted_content.yml +112 -0
  154. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/posted_content_copernicus.yml +112 -0
  155. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/report_osti.yml +112 -0
  156. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/vor_with_url.yml +112 -0
  157. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/yet_another_book.yml +112 -0
  158. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_json_metadata/yet_another_book_chapter.yml +112 -0
  159. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/DOI_with_ORCID_ID.yml +11 -11
  160. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/DOI_with_SICI_DOI.yml +10 -10
  161. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/DOI_with_data_citation.yml +9 -9
  162. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/JaLC.yml +9 -9
  163. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/KISTI.yml +11 -11
  164. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/OP.yml +9 -9
  165. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/affiliation_is_space.yml +9 -9
  166. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/another_book.yml +9 -9
  167. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/another_book_chapter.yml +9 -9
  168. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/article_id_as_page_number.yml +10 -10
  169. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/author_literal.yml +10 -10
  170. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/book.yml +9 -9
  171. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/book_chapter.yml +10 -10
  172. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/book_chapter_with_RDF_for_container.yml +9 -9
  173. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/book_oup.yml +9 -9
  174. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/component.yml +11 -11
  175. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/dataset.yml +9 -9
  176. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/dataset_usda.yml +9 -9
  177. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/date_in_future.yml +9 -9
  178. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/dissertation.yml +9 -9
  179. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/empty_given_name.yml +9 -9
  180. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/invalid_date.yml +9 -9
  181. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/journal_article.yml +57 -59
  182. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/journal_article_original_language_title.yml +57 -58
  183. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/journal_article_with.yml +9 -9
  184. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/journal_article_with_RDF_for_container.yml +10 -10
  185. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/journal_article_with_funding.yml +57 -59
  186. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/journal_issue.yml +11 -11
  187. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/mEDRA.yml +9 -9
  188. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/markup.yml +9 -9
  189. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/missing_creator.yml +9 -9
  190. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/multiple_issn.yml +9 -9
  191. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/multiple_titles.yml +9 -9
  192. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/multiple_titles_with_missing.yml +10 -10
  193. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/not_found_error.yml +9 -9
  194. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/peer_review.yml +9 -9
  195. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/posted_content.yml +10 -10
  196. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/posted_content_copernicus.yml +9 -9
  197. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/report_osti.yml +9 -9
  198. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/vor_with_url.yml +9 -9
  199. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/yet_another_book.yml +9 -9
  200. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_crossref_metadata/yet_another_book_chapter.yml +11 -11
  201. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_json_metadata/metadata_from_api.yml +10 -10
  202. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/BlogPosting.yml +10 -10
  203. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/DOI_in_staging_system.yml +10 -10
  204. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/DOI_in_staging_system_schema_3.yml +10 -10
  205. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/DOI_in_with_related_id_system.yml +10 -10
  206. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/DOI_not_found.yml +9 -9
  207. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/Dataset.yml +10 -10
  208. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/Funding.yml +10 -10
  209. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/Funding_empty_awardTitle.yml +10 -10
  210. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/Funding_schema_version_4.yml +10 -10
  211. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/Referee_report_in_staging_system.yml +10 -10
  212. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/Schema_org_type.yml +10 -10
  213. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/author_only_full_name.yml +10 -10
  214. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/author_with_scheme.yml +10 -10
  215. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/author_with_wrong_orcid_scheme.yml +10 -10
  216. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/cc-by_3_0_us.yml +10 -10
  217. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/content_url.yml +10 -10
  218. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/date.yml +10 -10
  219. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/dissertation.yml +10 -10
  220. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/doi_with_sign.yml +10 -10
  221. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/empty_subject.yml +10 -10
  222. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/even_more_subject_scheme_FOR.yml +10 -10
  223. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/funding_references.yml +10 -10
  224. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/funding_schema_version_3.yml +10 -10
  225. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/is_identical_to.yml +10 -10
  226. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/keywords_with_attributes.yml +10 -10
  227. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/leading_and_trailing_whitespace.yml +10 -10
  228. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/more_subject_scheme_FOR.yml +10 -10
  229. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/multiple_author_names_in_one_creatorsName.yml +10 -10
  230. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/multiple_licenses.yml +10 -10
  231. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/series-information.yml +10 -10
  232. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/subject_scheme.yml +10 -10
  233. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datacite_metadata/subject_scheme_FOR.yml +10 -10
  234. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_date/publication_date.yml +6 -6
  235. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_date_from_date_parts/date.yml +5 -5
  236. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_date_from_date_parts/year-month.yml +6 -6
  237. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_date_from_date_parts/year.yml +5 -5
  238. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_date_from_parts/date.yml +6 -6
  239. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_date_from_parts/year-month.yml +5 -5
  240. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_date_from_parts/year.yml +6 -6
  241. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_date_parts/date.yml +5 -5
  242. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_date_parts/year-month.yml +5 -5
  243. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_date_parts/year.yml +6 -6
  244. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datetime_from_time/future.yml +6 -6
  245. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datetime_from_time/invalid.yml +5 -5
  246. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datetime_from_time/nil.yml +6 -6
  247. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datetime_from_time/past.yml +5 -5
  248. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_datetime_from_time/present.yml +5 -5
  249. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/has_familyName.yml +6 -6
  250. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/has_name_in_Thai.yml +6 -6
  251. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/has_name_in_display-order.yml +6 -6
  252. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/has_name_in_display-order_with_ORCID.yml +6 -6
  253. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/has_name_in_sort-order.yml +6 -6
  254. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/hyper-authorship.yml +6 -6
  255. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/is_organization.yml +5 -5
  256. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/multiple_author_names_in_one_field.yml +6 -6
  257. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/multiple_name_identifier.yml +6 -6
  258. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/name_with_affiliation.yml +6 -6
  259. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/name_with_affiliation_and_country.yml +7 -7
  260. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/name_with_affiliation_crossref.yml +112 -0
  261. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/name_with_role.yml +6 -6
  262. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_one_author/only_familyName_and_givenName.yml +6 -6
  263. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_schema_org_metadata/BlogPosting.yml +15 -15
  264. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_schema_org_metadata/BlogPosting_with_new_DOI.yml +15 -15
  265. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_schema_org_metadata/get_schema_org_metadata_front_matter/BlogPosting.yml +18 -18
  266. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_schema_org_metadata/harvard_dataverse.yml +6 -6
  267. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_schema_org_metadata/pangaea.yml +6 -6
  268. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_schema_org_metadata/zenodo.yml +8 -8
  269. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_series_information/only_title.yml +5 -5
  270. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_series_information/title_and_pages.yml +6 -6
  271. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_series_information/title_volume_and_pages.yml +5 -5
  272. data/spec/fixtures/vcr_cassettes/Briard_Metadata/get_series_information/title_volume_issue_and_pages.yml +6 -6
  273. data/spec/fixtures/vcr_cassettes/Briard_Metadata/github/github_as_cff_url.yml +6 -6
  274. data/spec/fixtures/vcr_cassettes/Briard_Metadata/github/github_as_codemeta_url.yml +5 -5
  275. data/spec/fixtures/vcr_cassettes/Briard_Metadata/github/github_from_url.yml +5 -5
  276. data/spec/fixtures/vcr_cassettes/Briard_Metadata/github/github_from_url_cff_file.yml +5 -5
  277. data/spec/fixtures/vcr_cassettes/Briard_Metadata/github/github_from_url_file.yml +5 -5
  278. data/spec/fixtures/vcr_cassettes/Briard_Metadata/handle_input/DOI_RA_not_Crossref_or_DataCite.yml +4 -4
  279. data/spec/fixtures/vcr_cassettes/Briard_Metadata/handle_input/unknown_DOI_prefix.yml +4 -4
  280. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_contributors/none.yml +6 -6
  281. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_creators/insert.yml +6 -6
  282. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_dates/insert.yml +6 -6
  283. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_descriptions/insert.yml +6 -6
  284. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_identifier/doi.yml +6 -6
  285. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_language/insert.yml +6 -6
  286. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_person/creator_only_name.yml +6 -6
  287. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_publication_year/insert.yml +6 -6
  288. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_publisher/insert.yml +6 -6
  289. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_related_identifiers/insert.yml +6 -6
  290. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_related_identifiers/related_identifier.yml +6 -6
  291. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_resource_type/insert.yml +6 -6
  292. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_rights_list/insert.yml +6 -6
  293. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_sizes/insert.yml +6 -6
  294. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_subjects/insert.yml +6 -6
  295. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_titles/insert.yml +6 -6
  296. data/spec/fixtures/vcr_cassettes/Briard_Metadata/insert_version/insert.yml +6 -6
  297. data/spec/fixtures/vcr_cassettes/Briard_Metadata/is_personal_name_/has_comma.yml +6 -6
  298. data/spec/fixtures/vcr_cassettes/Briard_Metadata/is_personal_name_/has_family_name.yml +6 -6
  299. data/spec/fixtures/vcr_cassettes/Briard_Metadata/{doi_api_url/force_test_resolver.yml → is_personal_name_/has_family_name_crossref.yml} +5 -5
  300. data/spec/fixtures/vcr_cassettes/Briard_Metadata/is_personal_name_/has_id.yml +6 -6
  301. data/spec/fixtures/vcr_cassettes/Briard_Metadata/is_personal_name_/has_known_given_name.yml +6 -6
  302. data/spec/fixtures/vcr_cassettes/Briard_Metadata/is_personal_name_/has_no_info.yml +5 -5
  303. data/spec/fixtures/vcr_cassettes/Briard_Metadata/is_personal_name_/has_orcid_id.yml +5 -5
  304. data/spec/fixtures/vcr_cassettes/Briard_Metadata/is_personal_name_/has_type_organization.yml +5 -5
  305. data/spec/fixtures/vcr_cassettes/Briard_Metadata/jsonlint/missing_comma.yml +10 -10
  306. data/spec/fixtures/vcr_cassettes/Briard_Metadata/jsonlint/nil.yml +10 -10
  307. data/spec/fixtures/vcr_cassettes/Briard_Metadata/jsonlint/overlapping_keys.yml +10 -10
  308. data/spec/fixtures/vcr_cassettes/Briard_Metadata/jsonlint/valid.yml +10 -10
  309. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_cc_url/not_found.yml +5 -5
  310. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_cc_url/with_trailing_slash.yml +5 -5
  311. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_cc_url/with_trailing_slash_and_to_https.yml +6 -6
  312. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/SICI_doi.yml +6 -6
  313. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/doi.yml +5 -5
  314. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/doi_force_datacite_sandbox.yml +6 -6
  315. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/doi_from_datacite_sandbox.yml +6 -6
  316. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/doi_from_url_without_doi_proxy.yml +6 -6
  317. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/doi_prefix_too_long.yml +5 -5
  318. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/doi_prefix_with_string.yml +5 -5
  319. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/doi_with_protocol.yml +5 -5
  320. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/dx_doi_org_url.yml +6 -6
  321. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/https_url.yml +6 -6
  322. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/not_valid_doi_prefix.yml +5 -5
  323. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_doi/url_with_one_slash.yml +6 -6
  324. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_id/doi.yml +6 -6
  325. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_id/doi_as_url.yml +5 -5
  326. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_id/ftp.yml +6 -6
  327. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_id/invalid_url.yml +6 -6
  328. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_id/sandbox_via_options.yml +6 -6
  329. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_id/sandbox_via_url.yml +6 -6
  330. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_id/string.yml +5 -5
  331. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_id/url.yml +6 -6
  332. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_id/url_with_utf-8.yml +6 -6
  333. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_ids/doi.yml +6 -6
  334. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_ids/url.yml +5 -5
  335. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_issn/from_array.yml +5 -5
  336. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_issn/from_empty_array.yml +5 -5
  337. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_issn/from_hash.yml +5 -5
  338. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_issn/from_string.yml +5 -5
  339. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_url/uri.yml +5 -5
  340. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_url/with_trailing_slash.yml +6 -6
  341. data/spec/fixtures/vcr_cassettes/Briard_Metadata/normalize_url/with_trailing_slash_and_to_https.yml +5 -5
  342. data/spec/fixtures/vcr_cassettes/Briard_Metadata/parse_attributes/array.yml +5 -5
  343. data/spec/fixtures/vcr_cassettes/Briard_Metadata/parse_attributes/array_of_strings.yml +6 -6
  344. data/spec/fixtures/vcr_cassettes/Briard_Metadata/parse_attributes/first.yml +6 -6
  345. data/spec/fixtures/vcr_cassettes/Briard_Metadata/parse_attributes/hash.yml +6 -6
  346. data/spec/fixtures/vcr_cassettes/Briard_Metadata/parse_attributes/nil.yml +5 -5
  347. data/spec/fixtures/vcr_cassettes/Briard_Metadata/parse_attributes/string.yml +5 -5
  348. data/spec/fixtures/vcr_cassettes/Briard_Metadata/random_doi/decode_anothe_doi.yml +5 -5
  349. data/spec/fixtures/vcr_cassettes/Briard_Metadata/random_doi/decode_doi.yml +5 -5
  350. data/spec/fixtures/vcr_cassettes/Briard_Metadata/random_doi/encode_doi.yml +5 -5
  351. data/spec/fixtures/vcr_cassettes/Briard_Metadata/sanitize/onlies_keep_specific_tags.yml +6 -6
  352. data/spec/fixtures/vcr_cassettes/Briard_Metadata/sanitize/removes_a_tags.yml +5 -5
  353. data/spec/fixtures/vcr_cassettes/Briard_Metadata/spdx/hsh_to_spdx_id.yml +6 -6
  354. data/spec/fixtures/vcr_cassettes/Briard_Metadata/spdx/hsh_to_spdx_not_found.yml +5 -5
  355. data/spec/fixtures/vcr_cassettes/Briard_Metadata/spdx/hsh_to_spdx_url.yml +5 -5
  356. data/spec/fixtures/vcr_cassettes/Briard_Metadata/spdx/name_to_spdx_exists.yml +5 -5
  357. data/spec/fixtures/vcr_cassettes/Briard_Metadata/spdx/name_to_spdx_id.yml +5 -5
  358. data/spec/fixtures/vcr_cassettes/Briard_Metadata/to_schema_org/with_id.yml +6 -6
  359. data/spec/fixtures/vcr_cassettes/Briard_Metadata/to_schema_org_identifiers/with_identifiers.yml +5 -5
  360. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_doi/doi.yml +6 -6
  361. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_10.yml +6 -6
  362. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_11.yml +6 -6
  363. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_12.yml +6 -6
  364. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_13.yml +5 -5
  365. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_14.yml +6 -6
  366. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_4.yml +6 -6
  367. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_5.yml +5 -5
  368. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_6.yml +5 -5
  369. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_7.yml +5 -5
  370. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_8.yml +6 -6
  371. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/1_7_9.yml +6 -6
  372. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/funder_doi.yml +5 -5
  373. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/funder_doi_without_prefix.yml +5 -5
  374. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_funder_doi/non-funder_doi.yml +5 -5
  375. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid/validate_orcid.yml +6 -6
  376. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid/validate_orcid_https.yml +6 -6
  377. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid/validate_orcid_id.yml +5 -5
  378. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid/validate_orcid_sandbox.yml +5 -5
  379. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid/validate_orcid_sandbox_https.yml +5 -5
  380. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid/validate_orcid_with_spaces.yml +5 -5
  381. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid/validate_orcid_wrong_id.yml +5 -5
  382. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid/validate_orcid_www.yml +5 -5
  383. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid_scheme/validate_orcid_scheme.yml +5 -5
  384. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid_scheme/validate_orcid_scheme_https.yml +5 -5
  385. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid_scheme/validate_orcid_scheme_trailing_slash.yml +6 -6
  386. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_orcid_scheme/validate_orcid_scheme_www.yml +5 -5
  387. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_prefix/doi.yml +5 -5
  388. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_prefix/doi_as_url.yml +5 -5
  389. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_prefix/doi_with_protocol.yml +5 -5
  390. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_prefix/only_prefix.yml +6 -6
  391. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_url/DOI.yml +5 -5
  392. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_url/ISSN.yml +6 -6
  393. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_url/URL.yml +6 -6
  394. data/spec/fixtures/vcr_cassettes/Briard_Metadata/validate_url/string.yml +5 -5
  395. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_bibtex/BlogPosting.yml +6 -6
  396. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_bibtex/Dataset.yml +6 -6
  397. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_bibtex/authors_with_affiliations.yml +5 -5
  398. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_bibtex/climate_data.yml +6 -6
  399. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_bibtex/from_schema_org.yml +15 -15
  400. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_bibtex/keywords_subject_scheme.yml +6 -6
  401. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_bibtex/maremma.yml +8 -8
  402. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_bibtex/text.yml +6 -6
  403. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_bibtex/with_data_citation.yml +5 -5
  404. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_bibtex/with_pages.yml +5 -5
  405. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_cff/Collection_of_Jupyter_notebooks.yml +6 -6
  406. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_cff/SoftwareSourceCode_Zenodo.yml +6 -6
  407. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_cff/SoftwareSourceCode_also_Zenodo.yml +6 -6
  408. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_cff/ruby-cff.yml +8 -8
  409. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citation/Dataset.yml +6 -6
  410. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citation/Journal_article.yml +5 -5
  411. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citation/Journal_article_vancouver_style.yml +5 -5
  412. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citation/Missing_author.yml +5 -5
  413. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citation/interactive_resource_without_dates.yml +6 -6
  414. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citation/software_w/version.yml +6 -6
  415. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/Another_dataset.yml +6 -6
  416. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/BlogPosting.yml +6 -6
  417. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/BlogPosting_schema_org.yml +15 -15
  418. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/Dataset.yml +6 -6
  419. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/container_title.yml +6 -6
  420. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/interactive_resource_without_dates.yml +6 -6
  421. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/journal_article.yml +5 -5
  422. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/keywords_subject_scheme.yml +6 -6
  423. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/maremma.yml +8 -8
  424. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/missing_creator.yml +5 -5
  425. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/multiple_abstracts.yml +6 -6
  426. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/organization_author.yml +7 -7
  427. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/software.yml +6 -6
  428. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/software_w/version.yml +6 -6
  429. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/with_only_first_page.yml +5 -5
  430. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_citeproc/with_pages.yml +5 -5
  431. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_codemeta/SoftwareSourceCode_DataCite.yml +6 -6
  432. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_codemeta/SoftwareSourceCode_DataCite_check_codemeta_v2.yml +6 -6
  433. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_crosscite/datacite_database_attributes.yml +6 -6
  434. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_crosscite/maremma.yml +10 -10
  435. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_crosscite/with_ORCID_ID.yml +5 -5
  436. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_crosscite/with_data_citation.yml +5 -5
  437. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_crossref/another_schema_org_from_front-matter.yml +18 -18
  438. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_crossref/journal_article_from_datacite.yml +6 -6
  439. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_crossref/posted_content.yml +9 -9
  440. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_crossref/schema_org_from_another_science_blog.yml +6 -6
  441. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_crossref/schema_org_from_front_matter.yml +18 -18
  442. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_csv/climate_data.yml +6 -6
  443. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_csv/maremma.yml +8 -8
  444. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_csv/text.yml +6 -6
  445. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_csv/with_data_citation.yml +5 -5
  446. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_csv/with_pages.yml +7 -7
  447. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_json/from_schema_org.yml +15 -15
  448. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_json/maremma.yml +8 -8
  449. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_json/with_ORCID_ID.yml +7 -7
  450. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_json/with_data_citation.yml +5 -5
  451. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_xml/DOI_not_found.yml +5 -5
  452. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_xml/Dataset_in_schema_4_0.yml +6 -6
  453. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_xml/Text_pass-thru.yml +6 -6
  454. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_xml/Text_pass-thru_with_doi_in_options.yml +6 -6
  455. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_xml/maremma.yml +8 -8
  456. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_xml/with_ORCID_ID.yml +5 -5
  457. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_xml/with_data_citation.yml +5 -5
  458. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_xml/with_editor.yml +5 -5
  459. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_datacite_xml/with_version.yml +6 -6
  460. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_jats_xml/Dataset_in_schema_4_0.yml +6 -6
  461. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_jats_xml/Text_pass-thru.yml +6 -6
  462. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_jats_xml/book_chapter.yml +5 -5
  463. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_jats_xml/from_schema_org.yml +17 -17
  464. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_jats_xml/interactive_resource_without_dates.yml +6 -6
  465. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_jats_xml/maremma.yml +8 -8
  466. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_jats_xml/with_ORCID_ID.yml +5 -5
  467. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_jats_xml/with_data_citation.yml +5 -5
  468. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_jats_xml/with_editor.yml +5 -5
  469. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_rdf_xml/BlogPosting.yml +6 -6
  470. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_rdf_xml/BlogPosting_schema_org.yml +15 -15
  471. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_rdf_xml/journal_article.yml +5 -5
  472. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_rdf_xml/maremma.yml +8 -8
  473. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_rdf_xml/with_pages.yml +5 -5
  474. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_ris/BlogPosting.yml +6 -6
  475. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_ris/BlogPosting_schema_org.yml +15 -15
  476. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_ris/Dataset.yml +6 -6
  477. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_ris/alternate_name.yml +6 -6
  478. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_ris/journal_article.yml +5 -5
  479. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_ris/keywords_with_subject_scheme.yml +6 -6
  480. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_ris/maremma.yml +10 -10
  481. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_ris/with_pages.yml +5 -5
  482. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/Another_Schema_org_JSON.yml +6 -6
  483. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/Funding.yml +10 -10
  484. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/Funding_OpenAIRE.yml +10 -10
  485. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/Schema_org_JSON.yml +6 -6
  486. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/Schema_org_JSON_Cyark.yml +10 -10
  487. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/Schema_org_JSON_IsSupplementTo.yml +10 -10
  488. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/alternate_identifiers.yml +6 -6
  489. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/data_catalog.yml +6 -6
  490. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/geo_location_box.yml +6 -6
  491. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/interactive_resource_without_dates.yml +6 -6
  492. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/journal_article.yml +5 -5
  493. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/maremma_schema_org_JSON.yml +8 -8
  494. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/series_information.yml +6 -6
  495. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/subject_scheme.yml +6 -6
  496. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_schema_org/subject_scheme_multiple_keywords.yml +6 -6
  497. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_turtle/BlogPosting.yml +6 -6
  498. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_turtle/BlogPosting_schema_org.yml +15 -15
  499. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_turtle/Dataset.yml +6 -6
  500. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_turtle/journal_article.yml +5 -5
  501. data/spec/fixtures/vcr_cassettes/Briard_Metadata/write_metadata_as_turtle/with_pages.yml +5 -5
  502. data/spec/readers/citeproc_reader_spec.rb +2 -2
  503. data/spec/readers/codemeta_reader_spec.rb +3 -4
  504. data/spec/readers/crossref_json_reader_spec.rb +1237 -0
  505. data/spec/readers/crossref_reader_spec.rb +57 -64
  506. data/spec/readers/datacite_json_reader_spec.rb +1 -1
  507. data/spec/readers/datacite_reader_spec.rb +53 -82
  508. data/spec/readers/npm_reader_spec.rb +2 -2
  509. data/spec/readers/ris_reader_spec.rb +2 -5
  510. data/spec/readers/schema_org_reader_spec.rb +7 -12
  511. data/spec/writers/bibtex_writer_spec.rb +2 -2
  512. data/spec/writers/citation_writer_spec.rb +2 -2
  513. data/spec/writers/citeproc_writer_spec.rb +1 -1
  514. data/spec/writers/codemeta_writer_spec.rb +1 -1
  515. data/spec/writers/crosscite_writer_spec.rb +4 -5
  516. data/spec/writers/crossref_writer_spec.rb +3 -6
  517. data/spec/writers/datacite_json_writer_spec.rb +2 -4
  518. data/spec/writers/datacite_writer_spec.rb +7 -9
  519. data/spec/writers/schema_org_writer_spec.rb +8 -9
  520. metadata +59 -17
@@ -26,7 +26,7 @@ describe Briard::Metadata, vcr: true do
26
26
  expect(subject.types['citeproc']).to eq('dataset')
27
27
  expect(subject.creators.length).to eq(8)
28
28
  expect(subject.creators.first).to eq('nameType' => 'Personal', 'name' => 'Ollomo, Benjamin',
29
- 'givenName' => 'Benjamin', 'familyName' => 'Ollomo', 'nameIdentifiers' => [], 'affiliation' => [{ 'affiliationIdentifier' => 'https://ror.org/01wyqb997', 'affiliationIdentifierScheme' => 'ROR', 'name' => 'Centre International de Recherches Médicales de Franceville' }])
29
+ 'givenName' => 'Benjamin', 'familyName' => 'Ollomo', 'affiliation' => [{ 'affiliationIdentifier' => 'https://ror.org/01wyqb997', 'affiliationIdentifierScheme' => 'ROR', 'name' => 'Centre International de Recherches Médicales de Franceville' }])
30
30
  expect(subject.titles).to eq([{ 'title' => 'Data from: A new malaria agent in African hominids.' }])
31
31
  expect(subject.id).to eq('https://doi.org/10.5061/dryad.8515')
32
32
  expect(subject.rights_list).to eq([{ 'rights' => 'Creative Commons Zero v1.0 Universal',
@@ -59,7 +59,7 @@ describe Briard::Metadata, vcr: true do
59
59
  expect(subject.types['citeproc']).to eq('article-journal')
60
60
  expect(subject.creators).to eq([{
61
61
  'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0003-1419-2405',
62
- 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Fenner, Martin', 'givenName' => 'Martin', 'familyName' => 'Fenner'
62
+ 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Fenner, Martin', 'givenName' => 'Martin', 'familyName' => 'Fenner', 'nameType' => 'Personal'
63
63
  }])
64
64
  expect(subject.titles).to eq([{ 'title' => 'Eating your own Dog Food' }])
65
65
  expect(subject.id).to eq('https://doi.org/10.5438/4k3m-nyvg')
@@ -90,7 +90,7 @@ describe Briard::Metadata, vcr: true do
90
90
  expect(subject.types['resourceType']).to eq('ConferencePaper')
91
91
  expect(subject.types['resourceTypeGeneral']).to eq('Text')
92
92
  expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Johnston, Nathaniel',
93
- 'givenName' => 'Nathaniel', 'familyName' => 'Johnston', 'nameIdentifiers' => [], 'affiliation' => [] }])
93
+ 'givenName' => 'Nathaniel', 'familyName' => 'Johnston' }])
94
94
  expect(subject.titles).to eq([{ 'title' => 'The Minimum Size of Qubit Unextendible Product Bases' }])
95
95
  expect(subject.id).to eq('https://doi.org/10.4230/lipics.tqc.2013.93')
96
96
  expect(subject.descriptions.first['description']).to start_with('We investigate the problem of constructing unextendible product bases in the qubit case')
@@ -141,7 +141,7 @@ describe Briard::Metadata, vcr: true do
141
141
  expect(subject.contributors).to eq([{ 'name' => 'Starr, Joan', 'givenName' => 'Joan', 'familyName' => 'Starr', 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0002-7285-027X', 'schemeUri' => 'https://orcid.org', 'nameIdentifierScheme' => 'ORCID' }], 'affiliation' =>
142
142
  [{ 'affiliationIdentifier' => 'https://ror.org/03yrm5c26',
143
143
  'affiliationIdentifierScheme' => 'ROR',
144
- 'name' => 'California Digital Library' }], 'contributorType' => 'ProjectLeader' }])
144
+ 'name' => 'California Digital Library' }], 'contributorType' => 'ProjectLeader', "nameType"=>"Personal" }])
145
145
  expect(subject.subjects).to eq([{ 'lang' => 'en-US', 'schemeUri' => 'http://dewey.info/',
146
146
  'subject' => '000 computer science', 'subjectScheme' => 'dewey' }])
147
147
  expect(subject.dates).to eq([
@@ -195,8 +195,7 @@ describe Briard::Metadata, vcr: true do
195
195
  expect(subject.types['resourceType'].nil?).to be(true)
196
196
  expect(subject.types['resourceTypeGeneral']).to eq('Dataset')
197
197
  expect(subject.creators.length).to eq(1)
198
- expect(subject.creators.first).to eq('affiliation' => [], 'name' => 'EvK2 CNR Committee',
199
- 'nameIdentifiers' => [])
198
+ expect(subject.creators.first).to eq('name' => 'EvK2 CNR Committee')
200
199
  expect(subject.titles).to eq([
201
200
  { 'title' => 'SHARE (Stations at High Altitude for Research on the Environment) Network' }, {
202
201
  'title' => 'Urdukas (Baltoro Glacier, Baltistan - Pakistan)', 'titleType' => 'Subtitle'
@@ -223,7 +222,7 @@ describe Briard::Metadata, vcr: true do
223
222
  expect(subject.types['ris']).to eq('COMP')
224
223
  expect(subject.types['citeproc']).to eq('article')
225
224
  expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Garza, Kristian',
226
- 'givenName' => 'Kristian', 'familyName' => 'Garza', 'nameIdentifiers' => [], 'affiliation' => [] }])
225
+ 'givenName' => 'Kristian', 'familyName' => 'Garza' }])
227
226
  expect(subject.titles).to eq([{ 'title' => 'Analysis Tools For Crossover Experiment Of Ui Using Choice Architecture' }])
228
227
  expect(subject.descriptions.first['description']).to start_with('This tools are used to analyse the data produced by the Crosssover Experiment')
229
228
  expect(subject.rights_list).to eq([{ 'rights' =>
@@ -258,7 +257,7 @@ describe Briard::Metadata, vcr: true do
258
257
  expect(subject.types['resourceTypeGeneral']).to eq('Dataset')
259
258
  expect(subject.creators.count).to eq(11)
260
259
  expect(subject.creators.first).to eq('nameType' => 'Personal',
261
- 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0002-2410-9671', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Junge, Alexander', 'givenName' => 'Alexander', 'familyName' => 'Junge', 'affiliation' => [])
260
+ 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0002-2410-9671', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Junge, Alexander', 'givenName' => 'Alexander', 'familyName' => 'Junge')
262
261
  expect(subject.titles).to eq([{ 'title' => 'RAIN v1' }])
263
262
  expect(subject.descriptions.first['description']).to start_with('<b>RAIN: RNA–protein Association and Interaction Networks')
264
263
  expect(subject.rights_list).to eq([{ 'rights' => 'Creative Commons Attribution 4.0 International',
@@ -307,7 +306,7 @@ describe Briard::Metadata, vcr: true do
307
306
  expect(subject.creators.first).to eq('nameType' => 'Personal', 'familyName' => 'Dworkin',
308
307
  'givenName' => 'Ian',
309
308
  'name' => 'Dworkin, Ian',
310
- 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0002-2874-287X', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'affiliation' => [])
309
+ 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0002-2874-287X', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }])
311
310
  expect(subject.titles).to eq([{ 'title' => 'Drosophila melanogaster wing images from low and high altitude populations in Ethiopia and Zambia.' }])
312
311
  expect(subject.descriptions.first['description']).to start_with('These are raw wing images from <i>Drosophila melanogaster</i>')
313
312
  expect(subject.rights_list).to eq([{ 'rights' => 'Creative Commons Attribution 4.0 International',
@@ -543,7 +542,7 @@ describe Briard::Metadata, vcr: true do
543
542
  expect(subject.types['resourceTypeGeneral']).to eq('Dataset')
544
543
  expect(subject.creators.length).to eq(6)
545
544
  expect(subject.creators.first).to eq('familyName' => 'Bales', 'givenName' => 'Roger',
546
- 'name' => 'Bales, Roger', 'nameType' => 'Personal', 'affiliation' => [{ 'name' => 'UC Merced' }], 'nameIdentifiers' => [])
545
+ 'name' => 'Bales, Roger', 'nameType' => 'Personal', 'affiliation' => [{ 'name' => 'UC Merced' }])
547
546
  expect(subject.subjects).to eq([{ 'subject' => 'earth sciences' },
548
547
  { 'subject' => 'soil moisture' },
549
548
  { 'subject' => 'soil temperature' },
@@ -562,7 +561,7 @@ describe Briard::Metadata, vcr: true do
562
561
  'identifierType' => 'Local accession number' }])
563
562
  expect(subject.creators.length).to eq(1)
564
563
  expect(subject.creators.first).to eq('familyName' => 'Fenner', 'givenName' => 'Martin',
565
- 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0003-1419-2405', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Fenner, Martin')
564
+ 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0003-1419-2405', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Fenner, Martin', "nameType" => "Personal")
566
565
  expect(subject.titles).to eq([{ 'title' => 'Eating your own Dog Food' }])
567
566
  expect(subject.publisher).to eq('DataCite')
568
567
  expect(subject.publication_year).to eq('2016')
@@ -594,7 +593,7 @@ describe Briard::Metadata, vcr: true do
594
593
  expect(subject.doi).to eq('10.5072/geopointexample')
595
594
  expect(subject.creators.length).to eq(3)
596
595
  expect(subject.creators.first).to eq('familyName' => 'Schumann', 'givenName' => 'Kai',
597
- 'name' => 'Schumann, Kai', 'nameType' => 'Personal', 'nameIdentifiers' => [], 'affiliation' => [])
596
+ 'name' => 'Schumann, Kai', 'nameType' => 'Personal')
598
597
  expect(subject.titles).to eq([{ 'title' => 'Gridded results of swath bathymetric mapping of Disko Bay, Western Greenland, 2007-2008' }])
599
598
  expect(subject.publisher).to eq('PANGAEA - Data Publisher for Earth & Environmental Science')
600
599
  expect(subject.publication_year).to eq('2011')
@@ -616,7 +615,7 @@ describe Briard::Metadata, vcr: true do
616
615
  expect(subject.doi).to eq('10.6071/z7wc73')
617
616
  expect(subject.creators.length).to eq(6)
618
617
  expect(subject.creators.first).to eq('familyName' => 'Bales', 'givenName' => 'Roger',
619
- 'name' => 'Bales, Roger', 'nameType' => 'Personal', 'affiliation' => [{ 'name' => 'UC Merced' }, { 'name' => 'NSF' }], 'nameIdentifiers' => [])
618
+ 'name' => 'Bales, Roger', 'nameType' => 'Personal', 'affiliation' => [{ 'name' => 'UC Merced' }, { 'name' => 'NSF' }])
620
619
  expect(subject.titles).to eq([{ 'title' => 'Southern Sierra Critical Zone Observatory (SSCZO), Providence Creek meteorological data, soil moisture and temperature, snow depth and air temperature' }])
621
620
  expect(subject.publisher).to eq('UC Merced')
622
621
  expect(subject.dates).to eq([{ 'date' => '2014-10-17', 'dateType' => 'Updated' },
@@ -646,8 +645,7 @@ describe Briard::Metadata, vcr: true do
646
645
  expect(subject.id).to eq('https://doi.org/10.14457/kmitl.res.2006.17')
647
646
  expect(subject.types['schemaOrg']).to eq('Dataset')
648
647
  expect(subject.creators.length).to eq(1)
649
- expect(subject.creators.first).to eq('name' => 'กัญจนา แซ่เตียว', 'nameIdentifiers' => [],
650
- 'affiliation' => [])
648
+ expect(subject.creators.first).to eq('name' => 'กัญจนา แซ่เตียว')
651
649
  end
652
650
 
653
651
  it 'multiple author names in one creatorsName' do
@@ -657,7 +655,7 @@ describe Briard::Metadata, vcr: true do
657
655
  expect(subject.id).to eq('https://doi.org/10.7910/dvn/eqtqyo')
658
656
  expect(subject.types['schemaOrg']).to eq('Dataset')
659
657
  expect(subject.creators).to eq([{
660
- 'name' => 'Enos, Ryan (Harvard University); Fowler, Anthony (University Of Chicago); Vavreck, Lynn (UCLA)', 'nameIdentifiers' => [], 'affiliation' => []
658
+ 'name' => 'Enos, Ryan (Harvard University); Fowler, Anthony (University of Chicago); Vavreck, Lynn (UCLA)'
661
659
  }])
662
660
  end
663
661
 
@@ -705,7 +703,7 @@ describe Briard::Metadata, vcr: true do
705
703
  expect(subject.creators.length).to eq(2)
706
704
  expect(subject.creators.first).to eq(
707
705
  'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0001-8740-8284',
708
- 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Bimbo, Nuno', 'givenName' => 'Nuno', 'familyName' => 'Bimbo'
706
+ 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Bimbo, Nuno', 'givenName' => 'Nuno', 'familyName' => 'Bimbo', 'nameType' => 'Personal'
709
707
  )
710
708
  expect(subject.titles).to eq([{ 'title' => 'Dataset for "Direct Evidence for Solid-Like Hydrogen in a Nanoporous Carbon Hydrogen Storage Material at Supercritical Temperatures"' }])
711
709
  expect(subject.descriptions.first['description']).to start_with('Dataset for Direct Evidence for Solid-Like Hydrogen')
@@ -742,7 +740,7 @@ describe Briard::Metadata, vcr: true do
742
740
  expect(subject.creators.length).to eq(24)
743
741
  expect(subject.creators.first).to eq(
744
742
  'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0001-5331-6592',
745
- 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Farquhar, Adam', 'givenName' => 'Adam', 'familyName' => 'Farquhar', 'affiliation' => [{ 'name' => 'British Library' }]
743
+ 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Farquhar, Adam', 'givenName' => 'Adam', 'familyName' => 'Farquhar', 'affiliation' => [{ 'name' => 'British Library' }], 'nameType' => 'Personal'
746
744
  )
747
745
  expect(subject.titles).to eq([{ 'title' => 'Technical and Human Infrastructure for Open Research (THOR)' }])
748
746
  expect(subject.descriptions.first['description']).to start_with('Five years ago, a global infrastructure')
@@ -768,7 +766,7 @@ describe Briard::Metadata, vcr: true do
768
766
  expect(subject.types['resourceTypeGeneral']).to eq('Text')
769
767
  expect(subject.creators.length).to eq(2)
770
768
  expect(subject.creators.first).to eq(
771
- 'affiliation' => [{ 'name' => 'Тверская государственная сельскохозяйственная академия' }], 'familyName' => 'Ганичева', 'givenName' => 'А.В.', 'name' => 'Ганичева, А.В.', 'nameType' => 'Personal', 'nameIdentifiers' => []
769
+ 'affiliation' => [{ 'name' => 'Тверская государственная сельскохозяйственная академия' }], 'name' => 'Ганичева, А.В.'
772
770
  )
773
771
  expect(subject.titles).to eq([{ 'title' => 'МОДЕЛЬ СИСТЕМНОЙ ДИНАМИКИ ПРОЦЕССА ОБУЧЕНИЯ' },
774
772
  { 'title' => 'MODEL OF SYSTEM DYNAMICS OF PROCESS OF TRAINING',
@@ -794,8 +792,8 @@ describe Briard::Metadata, vcr: true do
794
792
  expect(subject.types['citeproc']).to eq('article-journal')
795
793
  expect(subject.creators).to eq([{
796
794
  'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0003-1419-2405',
797
- 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Fenner, Martin', 'givenName' => 'Martin', 'familyName' => 'Fenner'
798
- }])
795
+ 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Fenner, Martin', 'givenName' => 'Martin', 'familyName' => 'Fenner',
796
+ "nameType"=>"Personal"}])
799
797
  expect(subject.titles).to eq([{ 'title' => 'Eating your own Dog Food' }])
800
798
  expect(subject.id).to eq('https://doi.org/10.5438/4k3m-nyvg')
801
799
  expect(subject.identifiers).to eq([{ 'identifier' => 'MS-49-3632-5083',
@@ -818,11 +816,10 @@ describe Briard::Metadata, vcr: true do
818
816
  expect(subject.types['resourceTypeGeneral']).to eq('Text')
819
817
  expect(subject.types['ris']).to eq('BOOK')
820
818
  expect(subject.types['citeproc']).to eq('book')
821
- expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John', 'familyName' => 'Smith', 'nameIdentifiers' => [], 'affiliation' => [] }, { 'name' => 'つまらないものですが', 'nameIdentifiers' =>
819
+ expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John', 'familyName' => 'Smith' }, { 'name' => 'つまらないものですが', 'nameIdentifiers' =>
822
820
  [{ 'nameIdentifier' => 'http://isni.org/isni/0000000134596520',
823
821
  'nameIdentifierScheme' => 'ISNI',
824
- 'schemeUri' => 'http://isni.org/isni/' }],
825
- 'affiliation' => [] }])
822
+ 'schemeUri' => 'http://isni.org/isni/' }], "nameType"=>"Organizational"}])
826
823
  expect(subject.titles).to eq([{ 'title' => 'Właściwości rzutowań podprzestrzeniowych' },
827
824
  { 'title' => 'Translation of Polish titles',
828
825
  'titleType' => 'TranslatedTitle' }])
@@ -856,11 +853,10 @@ describe Briard::Metadata, vcr: true do
856
853
  expect(subject.types['resourceTypeGeneral']).to eq('Text')
857
854
  expect(subject.types['ris']).to eq('BOOK')
858
855
  expect(subject.types['citeproc']).to eq('book')
859
- expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John', 'familyName' => 'Smith', 'nameIdentifiers' => [], 'affiliation' => [] }, { 'name' => 'つまらないものですが', 'nameIdentifiers' =>
856
+ expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John', 'familyName' => 'Smith' }, { 'name' => 'つまらないものですが', 'nameIdentifiers' =>
860
857
  [{ 'nameIdentifier' => 'http://isni.org/isni/0000000134596520',
861
858
  'nameIdentifierScheme' => 'ISNI',
862
- 'schemeUri' => 'http://isni.org/isni/' }],
863
- 'affiliation' => [] }])
859
+ 'schemeUri' => 'http://isni.org/isni/' }], 'nameType' => 'Organizational' }])
864
860
  expect(subject.titles).to eq([{ 'title' => 'Właściwości rzutowań podprzestrzeniowych' },
865
861
  { 'title' => 'Translation of Polish titles',
866
862
  'titleType' => 'TranslatedTitle' }])
@@ -892,7 +888,7 @@ describe Briard::Metadata, vcr: true do
892
888
  expect(subject.types['citeproc']).to eq('dataset')
893
889
  expect(subject.creators.length).to eq(8)
894
890
  expect(subject.creators.last).to eq('familyName' => 'Renaud', 'givenName' => 'François',
895
- 'name' => 'Renaud, François', 'nameType' => 'Personal', 'nameIdentifiers' => [], 'affiliation' => [])
891
+ 'name' => 'Renaud, François', 'nameType' => 'Personal')
896
892
  expect(subject.titles).to eq([{ 'title' => 'Data from: A new malaria agent in African hominids.' }])
897
893
  expect(subject.id).to eq('https://doi.org/10.5061/dryad.8515')
898
894
  expect(subject.identifiers).to eq([{ 'identifier' =>
@@ -921,11 +917,10 @@ describe Briard::Metadata, vcr: true do
921
917
  expect(subject.types['resourceTypeGeneral']).to eq('Text')
922
918
  expect(subject.types['ris']).to eq('BOOK')
923
919
  expect(subject.types['citeproc']).to eq('book')
924
- expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John', 'familyName' => 'Smith', 'nameIdentifiers' => [], 'affiliation' => [] }, { 'name' => 'つまらないものですが', 'nameIdentifiers' =>
920
+ expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John', 'familyName' => 'Smith' }, { 'name' => 'つまらないものですが', 'nameIdentifiers' =>
925
921
  [{ 'nameIdentifier' => 'http://isni.org/isni/0000000134596520',
926
922
  'nameIdentifierScheme' => 'ISNI',
927
- 'schemeUri' => 'http://isni.org/isni/' }],
928
- 'affiliation' => [] }])
923
+ 'schemeUri' => 'http://isni.org/isni/' }], "nameType"=>"Organizational" }])
929
924
  expect(subject.titles).to eq([{ 'title' => 'Właściwości rzutowań podprzestrzeniowych' },
930
925
  { 'title' => 'Translation of Polish titles',
931
926
  'titleType' => 'TranslatedTitle' }])
@@ -955,10 +950,9 @@ describe Briard::Metadata, vcr: true do
955
950
  expect(subject.types['resourceTypeGeneral']).to eq('Text')
956
951
  expect(subject.types['ris']).to eq('BOOK')
957
952
  expect(subject.types['citeproc']).to eq('book')
958
- expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John', 'familyName' => 'Smith', 'nameIdentifiers' => [], 'affiliation' => [] }, { 'name' => 'つまらないものですが', 'nameIdentifiers' =>
953
+ expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John', 'familyName' => 'Smith' }, { 'name' => 'つまらないものですが', 'nameIdentifiers' =>
959
954
  [{ 'nameIdentifier' => 'abc123',
960
- 'nameIdentifierScheme' => 'ISNI' }],
961
- 'affiliation' => [] }])
955
+ 'nameIdentifierScheme' => 'ISNI' }], "nameType"=>"Organizational"}])
962
956
  expect(subject.titles).to eq([{ 'title' => 'Właściwości rzutowań podprzestrzeniowych' },
963
957
  { 'title' => 'Translation of Polish titles',
964
958
  'titleType' => 'TranslatedTitle' }])
@@ -982,11 +976,10 @@ describe Briard::Metadata, vcr: true do
982
976
  expect(subject.types['schemaOrg']).to eq('Book')
983
977
  expect(subject.types['resourceType']).to eq('Monograph')
984
978
  expect(subject.types['resourceTypeGeneral']).to eq('Text')
985
- expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John', 'familyName' => 'Smith', 'nameIdentifiers' => [], 'affiliation' => [] }, { 'name' => 'つまらないものですが', 'nameIdentifiers' =>
979
+ expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John', 'familyName' => 'Smith' }, { 'name' => 'つまらないものですが', 'nameIdentifiers' =>
986
980
  [{ 'nameIdentifier' => 'http://isni.org/isni/0000000134596520',
987
981
  'nameIdentifierScheme' => 'ISNI',
988
- 'schemeUri' => 'http://isni.org/isni/' }],
989
- 'affiliation' => [] }])
982
+ 'schemeUri' => 'http://isni.org/isni/' }], 'nameType' => 'Organizational' }])
990
983
  expect(subject.titles).to eq([{ 'title' => 'Właściwości rzutowań podprzestrzeniowych' },
991
984
  { 'title' => 'Translation of Polish titles',
992
985
  'titleType' => 'TranslatedTitle' }])
@@ -1024,8 +1017,8 @@ describe Briard::Metadata, vcr: true do
1024
1017
  expect(subject.types['resourceType']).to eq('Simulation Tool')
1025
1018
  expect(subject.types['resourceTypeGeneral']).to eq('Software')
1026
1019
  expect(subject.creators.length).to eq(5)
1027
- expect(subject.creators.first).to eq('nameType' => 'Personal', 'name' => 'PatiñO, Carlos',
1028
- 'givenName' => 'Carlos', 'familyName' => 'PatiñO', 'nameIdentifiers' => [], 'affiliation' => [])
1020
+ expect(subject.creators.first).to eq('nameType' => 'Personal', 'name' => 'Patiño, Carlos',
1021
+ 'givenName' => 'Carlos', 'familyName' => 'Patiño')
1029
1022
  expect(subject.titles).to eq([{ 'title' => 'LAMMPS Data-File Generator' }])
1030
1023
  expect(subject.dates).to eq([{ 'date' => '2018-07-18', 'dateType' => 'Valid' },
1031
1024
  { 'date' => '2018-07-18', 'dateType' => 'Accepted' }, { 'date' => '2018', 'dateType' => 'Issued' }])
@@ -1047,9 +1040,7 @@ describe Briard::Metadata, vcr: true do
1047
1040
  expect(subject.types['bibtex']).to eq('misc')
1048
1041
  expect(subject.creators.length).to eq(1)
1049
1042
  expect(subject.creators.first).to eq('affiliation' => [{ 'affiliationIdentifier' => 'https://ror.org/04zt3wx35', 'affiliationIdentifierScheme' => 'ROR', 'name' => 'Canada Mortgage and Housing Corporation' }],
1050
- 'name' => 'Statistique Canada',
1051
- 'nameIdentifiers' => [],
1052
- 'nameType' => 'Organizational')
1043
+ 'name' => 'Statistique Canada', "nameType" => "Organizational")
1053
1044
  end
1054
1045
 
1055
1046
  it 'doi with + sign' do
@@ -1078,11 +1069,10 @@ describe Briard::Metadata, vcr: true do
1078
1069
  'identifierType' => 'FDZ' }])
1079
1070
  expect(subject.types['schemaOrg']).to eq('Dataset')
1080
1071
  expect(subject.types['resourceTypeGeneral']).to eq('Dataset')
1081
- expect(subject.creators).to eq([{ 'nameType' => 'Organizational',
1082
- 'name' => 'Europäische Kommission', 'nameIdentifiers' => [], 'affiliation' => [] }])
1072
+ expect(subject.creators).to eq([{ 'name' => 'Europäische Kommission', "nameType"=>"Organizational" }])
1083
1073
  expect(subject.contributors.length).to eq(18)
1084
1074
  expect(subject.contributors.first).to eq(
1085
- 'affiliation' => [{ 'name' => 'Europäische Kommission, Brüssel' }], 'contributorType' => 'Researcher', 'familyName' => 'Reif', 'givenName' => 'Karlheinz', 'name' => 'Reif, Karlheinz', 'nameType' => 'Personal', 'nameIdentifiers' => []
1075
+ 'affiliation' => [{ 'name' => 'Europäische Kommission, Brüssel' }], 'contributorType' => 'Researcher', 'familyName' => 'Reif', 'givenName' => 'Karlheinz', 'name' => 'Reif, Karlheinz', 'nameType' => 'Personal'
1086
1076
  )
1087
1077
  expect(subject.titles).to eq([
1088
1078
  { 'lang' => 'de',
@@ -1128,8 +1118,7 @@ describe Briard::Metadata, vcr: true do
1128
1118
  expect(subject.types['resourceType']).to eq('Article')
1129
1119
  expect(subject.types['resourceTypeGeneral']).to eq('Text')
1130
1120
  expect(subject.creators.length).to eq(3)
1131
- expect(subject.creators.first).to eq('nameType' => 'Personal', 'name' => 'Llamas, P.',
1132
- 'givenName' => 'P.', 'familyName' => 'Llamas', 'nameIdentifiers' => [], 'affiliation' => [])
1121
+ expect(subject.creators.first).to eq("name"=>"Llamas, P.")
1133
1122
  expect(subject.titles).to eq([{ 'title' => 'Rural Electrification With Hybrid Power Systems Based on Renewables - Technical System Configurations From the Point of View of the European Industry' }])
1134
1123
  expect(subject.dates).to eq([{ 'date' => '2008-11-01', 'dateType' => 'Valid' },
1135
1124
  { 'date' => '2008', 'dateType' => 'Issued' }])
@@ -1171,8 +1160,7 @@ describe Briard::Metadata, vcr: true do
1171
1160
  expect(subject.types['schemaOrg']).to eq('Dataset')
1172
1161
  expect(subject.types['resourceType']).to eq('Disclosure')
1173
1162
  expect(subject.types['resourceTypeGeneral']).to eq('Dataset')
1174
- expect(subject.creators).to eq([{ 'name' => 'Anonymous', 'nameIdentifiers' => [],
1175
- 'affiliation' => [] }])
1163
+ expect(subject.creators).to eq([{ 'name' => 'anonymous' }])
1176
1164
  expect(subject.titles).to eq([{ 'title' => 'Messung der Bildunschaerfe in H.264-codierten Bildern und Videosequenzen' }])
1177
1165
  expect(subject.dates).to eq([{ 'date' => '2017', 'dateType' => 'Issued' }])
1178
1166
  expect(subject.publication_year).to eq('2017')
@@ -1196,16 +1184,15 @@ describe Briard::Metadata, vcr: true do
1196
1184
  'nameIdentifiers' =>
1197
1185
  [{ 'nameIdentifier' => 'https://orcid.org/0000-0002-0077-5338',
1198
1186
  'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }],
1199
- 'name' => 'Van Der A, Ronald',
1187
+ 'name' => 'Van der A, Ronald',
1200
1188
  'givenName' => 'Ronald',
1201
- 'familyName' => 'Van Der A',
1189
+ 'familyName' => 'Van der A',
1202
1190
  'affiliation' => [{ 'name' => 'Royal Netherlands Meteorological Institute (KNMI)' }] },
1203
1191
  { 'nameType' => 'Personal',
1204
1192
  'name' => 'Allaart, Marc',
1205
1193
  'givenName' => 'Marc',
1206
1194
  'familyName' => 'Allaart',
1207
- 'affiliation' => [{ 'name' => 'Royal Netherlands Meteorological Institute (KNMI)' }],
1208
- 'nameIdentifiers' => [] },
1195
+ 'affiliation' => [{ 'name' => 'Royal Netherlands Meteorological Institute (KNMI)' }] },
1209
1196
  { 'nameType' => 'Personal',
1210
1197
  'name' => 'Eskes, Henk',
1211
1198
  'givenName' => 'Henk',
@@ -1241,8 +1228,7 @@ describe Briard::Metadata, vcr: true do
1241
1228
  expect(subject.id).to eq('https://handle.stage.datacite.org/10.22002/d1.694')
1242
1229
  expect(subject.types['schemaOrg']).to eq('Dataset')
1243
1230
  expect(subject.types['resourceTypeGeneral']).to eq('Dataset')
1244
- expect(subject.creators).to eq([{ 'affiliation' => [{ 'name' => 'Caltech' }], 'name' => 'Tester',
1245
- 'nameIdentifiers' => [] }])
1231
+ expect(subject.creators).to eq([{ 'affiliation' => [{ 'name' => 'Caltech' }], 'name' => 'Tester' }])
1246
1232
  expect(subject.titles).to eq([{ 'title' => 'Test license' }])
1247
1233
  expect(subject.dates).to eq([{ 'date' => '2018-01-12', 'dateType' => 'Issued' }])
1248
1234
  expect(subject.publication_year).to eq('2018')
@@ -1259,8 +1245,7 @@ describe Briard::Metadata, vcr: true do
1259
1245
  expect(subject.id).to eq('https://handle.stage.datacite.org/10.21956/wellcomeopenres.25947.r17364')
1260
1246
  expect(subject.types['schemaOrg']).to eq('ScholarlyArticle')
1261
1247
  expect(subject.types['resourceTypeGeneral']).to eq('Text')
1262
- expect(subject.creators).to eq([{ 'name' => 'Fran2 Levy', 'nameIdentifiers' => [],
1263
- 'affiliation' => [] }])
1248
+ expect(subject.creators).to eq([{ 'name' => 'Fran2 Levy' }])
1264
1249
  expect(subject.titles).to eq([{ 'title' => 'Referee report. For: FL Regression Wellcome [version 1; referees: retracted]' }])
1265
1250
  expect(subject.dates).to eq([{ 'date' => '2018', 'dateType' => 'Issued' }])
1266
1251
  expect(subject.publication_year).to eq('2018')
@@ -1280,8 +1265,7 @@ describe Briard::Metadata, vcr: true do
1280
1265
  expect(subject.types['ris']).to eq('RPRT')
1281
1266
  expect(subject.types['citeproc']).to eq('article-journal')
1282
1267
  expect(subject.creators.length).to eq(5)
1283
- expect(subject.creators.first).to eq('nameType' => 'Personal', 'name' => 'Patel, Lina',
1284
- 'givenName' => 'Lina', 'familyName' => 'Patel', 'nameIdentifiers' => [], 'affiliation' => [])
1268
+ expect(subject.creators.first).to eq("name"=>"lina patel")
1285
1269
  expect(subject.titles).to eq([{ 'title' => 'Referee report. For: Gates - add article keywords to the metatags [version 2; referees: 1 approved]' }])
1286
1270
  expect(subject.publication_year).to eq('2018')
1287
1271
  expect(subject.publisher).to eq('Gates Open Research')
@@ -1380,7 +1364,7 @@ describe Briard::Metadata, vcr: true do
1380
1364
  expect(subject.types['bibtex']).to eq('phdthesis')
1381
1365
  expect(subject.types['citeproc']).to eq('thesis')
1382
1366
  expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Conrad, Heiko',
1383
- 'givenName' => 'Heiko', 'familyName' => 'Conrad', 'nameIdentifiers' => [], 'affiliation' => [] }])
1367
+ 'givenName' => 'Heiko', 'familyName' => 'Conrad' }])
1384
1368
  expect(subject.titles).to eq([{ 'title' => 'Dynamics of colloids in molecular glass forming liquids studied via X-ray photon correlation spectroscopy' }])
1385
1369
  expect(subject.dates).to eq([{ 'date' => '2014', 'dateType' => 'Issued' },
1386
1370
  { 'date' => '2014', 'dateType' => 'Copyrighted' },
@@ -1403,11 +1387,7 @@ describe Briard::Metadata, vcr: true do
1403
1387
  expect(subject.types['citeproc']).to eq('article-journal')
1404
1388
  expect(subject.creators.length).to eq(2)
1405
1389
  expect(subject.creators.first).to eq('affiliation' => [{ 'name' => 'Тверская государственная сельскохозяйственная академия' }],
1406
- 'familyName' => 'Ганичева',
1407
- 'givenName' => 'А.В.',
1408
- 'name' => 'Ганичева, А.В.',
1409
- 'nameIdentifiers' => [],
1410
- 'nameType' => 'Personal')
1390
+ 'name' => 'Ганичева, А.В.')
1411
1391
  expect(subject.titles.last).to eq('title' => 'MODEL OF SYSTEM DYNAMICS OF PROCESS OF TRAINING',
1412
1392
  'titleType' => 'TranslatedTitle')
1413
1393
  expect(subject.dates).to eq([{ 'date' => '2019-02-09', 'dateType' => 'Issued' }])
@@ -1469,7 +1449,7 @@ describe Briard::Metadata, vcr: true do
1469
1449
  expect(subject.doi).to eq('10.5061/dryad.8515')
1470
1450
  expect(subject.creators).to eq([{
1471
1451
  'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0003-1419-2405',
1472
- 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Fenner, Martin', 'givenName' => 'Martin', 'familyName' => 'Fenner'
1452
+ 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'name' => 'Fenner, Martin', 'givenName' => 'Martin', 'familyName' => 'Fenner', 'nameType' => 'Personal'
1473
1453
  }])
1474
1454
  expect(subject.titles).to eq([{ 'title' => 'Eating your own Dog Food' }])
1475
1455
  expect(subject.publisher).to eq('DataCite')
@@ -1490,8 +1470,7 @@ describe Briard::Metadata, vcr: true do
1490
1470
  expect(subject.content_url).to eq('https://storage.googleapis.com/gtex_analysis_v7/single_tissue_eqtl_data/GTEx_Analysis_v7_eQTL_expression_matrices.tar.gz')
1491
1471
  expect(subject.types['schemaOrg']).to eq('Dataset')
1492
1472
  expect(subject.types['resourceType']).to eq('DroNc-seq data')
1493
- expect(subject.creators).to eq([{ 'name' => 'The GTEx Consortium', 'nameType' => 'Organizational',
1494
- 'nameIdentifiers' => [], 'affiliation' => [] }])
1473
+ expect(subject.creators).to eq([{ 'name' => 'The GTEx Consortium', 'nameType' => 'Organizational' }])
1495
1474
  expect(subject.titles).to eq([{ 'title' => 'DroNc-seq data' }])
1496
1475
  expect(subject.subjects).to eq([{ 'subject' => 'gtex' }, { 'subject' => 'annotation' },
1497
1476
  { 'subject' => 'phenotype' }, { 'subject' => 'gene regulation' }, { 'subject' => 'transcriptomics' }])
@@ -1522,8 +1501,8 @@ describe Briard::Metadata, vcr: true do
1522
1501
  expect(subject.types['resourceTypeGeneral']).to eq('Dataset')
1523
1502
  expect(subject.types['ris']).to eq('DATA')
1524
1503
  expect(subject.types['citeproc']).to eq('dataset')
1525
- expect(subject.creators.first).to eq('familyName' => 'Den Heijer', 'givenName' => 'C',
1526
- 'name' => 'Den Heijer, C', 'nameType' => 'Personal', 'nameIdentifiers' => [], 'affiliation' => [])
1504
+ expect(subject.creators.first).to eq('familyName' => 'den Heijer', 'givenName' => 'C',
1505
+ 'name' => 'den Heijer, C', 'nameType' => 'Personal')
1527
1506
  expect(subject.titles).to eq([{ 'lang' => 'en',
1528
1507
  'title' => 'Meteo measurements at the Sand Motor' }])
1529
1508
  expect(subject.publication_year).to eq('2017')
@@ -1644,8 +1623,8 @@ describe Briard::Metadata, vcr: true do
1644
1623
  },
1645
1624
  'creators' =>
1646
1625
  [
1647
- { 'nameType' => 'Personal', 'name' => 'Smith, John', 'givenName' => 'John',
1648
- 'familyName' => 'Smith' }
1626
+ { 'name' => 'Smith, John', 'givenName' => 'John',
1627
+ 'familyName' => 'Smith', 'nameType' => 'Personal' }
1649
1628
  ],
1650
1629
  'titles' =>
1651
1630
  [
@@ -1664,7 +1643,7 @@ describe Briard::Metadata, vcr: true do
1664
1643
  'contributors' =>
1665
1644
  [
1666
1645
  { 'name' => 'Hallett, Richard', 'givenName' => 'Richard', 'familyName' => 'Hallett',
1667
- 'contributorType' => 'ProjectLeader' }
1646
+ 'contributorType' => 'ProjectLeader', 'nameType' => 'Personal' }
1668
1647
  ]
1669
1648
  }
1670
1649
  )
@@ -1706,7 +1685,7 @@ describe Briard::Metadata, vcr: true do
1706
1685
  'contributors' =>
1707
1686
  [
1708
1687
  { 'name' => 'Hallett, Richard', 'givenName' => 'Richard', 'familyName' => 'Hallett',
1709
- 'contributorType' => 'ProjectLeader' }
1688
+ 'contributorType' => 'ProjectLeader', 'nameType' => 'Personal' }
1710
1689
  ]
1711
1690
  }
1712
1691
  )
@@ -1727,32 +1706,24 @@ describe Briard::Metadata, vcr: true do
1727
1706
  'name' => 'Luo, R',
1728
1707
  'familyName' => 'Luo',
1729
1708
  'givenName' => 'R',
1730
- 'nameIdentifiers' => [],
1731
- 'affiliation' => [],
1732
1709
  'nameType' => 'Personal'
1733
1710
  },
1734
1711
  {
1735
1712
  'name' => 'Liu, B',
1736
1713
  'familyName' => 'Liu',
1737
1714
  'givenName' => 'B',
1738
- 'nameIdentifiers' => [],
1739
- 'affiliation' => [],
1740
1715
  'nameType' => 'Personal'
1741
1716
  },
1742
1717
  {
1743
1718
  'name' => 'Xie, Y',
1744
1719
  'familyName' => 'Xie',
1745
1720
  'givenName' => 'Y',
1746
- 'nameIdentifiers' => [],
1747
- 'affiliation' => [],
1748
1721
  'nameType' => 'Personal'
1749
1722
  },
1750
1723
  {
1751
1724
  'name' => 'Li, Z',
1752
1725
  'familyName' => 'Li',
1753
1726
  'givenName' => 'Z',
1754
- 'nameIdentifiers' => [],
1755
- 'affiliation' => [],
1756
1727
  'nameType' => 'Personal'
1757
1728
  }
1758
1729
  ]
@@ -57,8 +57,8 @@ describe Briard::Metadata, vcr: true do
57
57
  # expect(subject.url).to eq("https://blog.datacite.org/eating-your-own-dog-food")
58
58
  expect(subject.types).to eq('bibtex' => 'misc', 'citeproc' => 'article',
59
59
  'reourceType' => 'NPM Package', 'resourceTypeGeneral' => 'Software', 'ris' => 'GEN', 'schemaOrg' => 'SoftwareSourceCode')
60
- expect(subject.creators).to eq([{ 'affiliation' => [], 'familyName' => 'Brancotte',
61
- 'givenName' => 'Bryan', 'name' => 'Brancotte, Bryan', 'nameIdentifiers' => [], 'nameType' => 'Personal' }])
60
+ expect(subject.creators).to eq([{ 'familyName' => 'Brancotte',
61
+ 'givenName' => 'Bryan', 'name' => 'Brancotte, Bryan', 'nameType' => 'Personal' }])
62
62
  expect(subject.titles).to eq([{ 'title' => 'edam-browser' }])
63
63
  expect(subject.descriptions).to eq([{ 'description' =>
64
64
  + 'The EDAM Browser is a client-side web-based visualization javascript widget. Its goals are to help describing bio-related resources and service with EDAM, and to facilitate and foster community contributions to EDAM.',
@@ -36,9 +36,7 @@ describe Briard::Metadata, vcr: true do
36
36
  expect(subject.creators.first).to eq('nameType' => 'Personal',
37
37
  'name' => 'Sankar, Martial',
38
38
  'givenName' => 'Martial',
39
- 'familyName' => 'Sankar',
40
- 'nameIdentifiers' => [],
41
- 'affiliation' => [])
39
+ 'familyName' => 'Sankar')
42
40
  expect(subject.titles).to eq([{ 'title' => 'Automated quantitative histology reveals vascular morphodynamics during Arabidopsis hypocotyl secondary growth' }])
43
41
  expect(subject.descriptions.first['description']).to start_with('Among various advantages, their small size makes model organisms preferred subjects of investigation.')
44
42
  expect(subject.dates).to eq([{ 'date' => '2014', 'dateType' => 'Issued' }])
@@ -58,8 +56,7 @@ describe Briard::Metadata, vcr: true do
58
56
  expect(subject.id).to eq('https://doi.org/10.7554/elife.01567')
59
57
  expect(subject.types).to eq('citeproc' => 'misc', 'resourceTypeGeneral' => 'Dissertation',
60
58
  'ris' => 'THES', 'schemaOrg' => 'Thesis')
61
- expect(subject.creators).to eq([{ 'nameType' => 'Personal', 'name' => 'Toparlar, Y.',
62
- 'givenName' => 'Y.', 'familyName' => 'Toparlar', 'nameIdentifiers' => [], 'affiliation' => [] }])
59
+ expect(subject.creators).to eq([{"name"=>"Toparlar,Y."}])
63
60
  expect(subject.titles).to eq([{ 'title' => 'A multiscale analysis of the urban heat island effect' }])
64
61
  expect(subject.descriptions.first['description']).to start_with('Designing the climates of cities')
65
62
  expect(subject.dates).to eq([{ 'date' => '2018-04-25', 'dateType' => 'Issued' },
@@ -22,7 +22,7 @@ describe Briard::Metadata, vcr: true do
22
22
  expect(subject.url).to eq('https://blog.front-matter.io/posts/eating-your-own-dog-food')
23
23
  expect(subject.types).to eq('bibtex' => 'article', 'citeproc' => 'article-newspaper',
24
24
  'resourceTypeGeneral' => 'Preprint', 'ris' => 'GEN', 'schemaOrg' => 'Article')
25
- expect(subject.creators).to eq([{ 'affiliation' => [], 'familyName' => 'Fenner',
25
+ expect(subject.creators).to eq([{ 'familyName' => 'Fenner',
26
26
  'givenName' => 'Martin', 'name' => 'Fenner, Martin', 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0003-1419-2405', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'nameType' => 'Personal' }])
27
27
  expect(subject.titles).to eq([{ 'title' => 'Eating your own Dog Food' }])
28
28
  expect(subject.descriptions.first['description']).to start_with('Eating your own dog food')
@@ -78,8 +78,7 @@ describe Briard::Metadata, vcr: true do
78
78
  expect(subject.url).to eq('https://blog.front-matter.io/posts/step-forward-for-software-citation')
79
79
  expect(subject.types).to eq('bibtex' => 'article', 'citeproc' => 'article-newspaper',
80
80
  'resourceTypeGeneral' => 'Preprint', 'ris' => 'GEN', 'schemaOrg' => 'Article')
81
- expect(subject.creators).to eq([{ 'affiliation' => [],
82
- 'familyName' => 'Fenner', 'givenName' => 'Martin', 'name' => 'Fenner, Martin', 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0003-1419-2405', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'nameType' => 'Personal' }])
81
+ expect(subject.creators).to eq([{ 'familyName' => 'Fenner', 'givenName' => 'Martin', 'name' => 'Fenner, Martin', 'nameIdentifiers' => [{ 'nameIdentifier' => 'https://orcid.org/0000-0003-1419-2405', 'nameIdentifierScheme' => 'ORCID', 'schemeUri' => 'https://orcid.org' }], 'nameType' => 'Personal' }])
83
82
  expect(subject.titles).to eq([{ 'title' => 'A step forward for software citation: GitHub&#x27;s enhanced software citation support' }])
84
83
  expect(subject.descriptions.first['description']).to start_with('On August 19, GitHub announced software citation')
85
84
  expect(subject.subjects).to eq([{ 'subject' => 'news' }])
@@ -168,7 +167,7 @@ describe Briard::Metadata, vcr: true do
168
167
  expect(subject.container).to eq('identifier' => 'https://dataverse.harvard.edu',
169
168
  'identifierType' => 'URL', 'title' => 'Harvard Dataverse', 'type' => 'DataRepository')
170
169
  expect(subject.creators).to eq([{
171
- 'name' => 'International Genetics Of Ankylosing Spondylitis Consortium (IGAS)', 'nameIdentifiers' => [], 'affiliation' => []
170
+ 'name' => 'International Genetics of Ankylosing Spondylitis Consortium (IGAS)'
172
171
  }])
173
172
  expect(subject.subjects).to eq([{ 'subject' => 'medicine, health and life sciences' },
174
173
  { 'subject' => 'genome-wide association studies' },
@@ -227,8 +226,7 @@ describe Briard::Metadata, vcr: true do
227
226
  expect(subject.content_url).to eq(['https://storage.googleapis.com/gtex_analysis_v7/single_tissue_eqtl_data/GTEx_Analysis_v7_eQTL_expression_matrices.tar.gz'])
228
227
  expect(subject.types).to eq('bibtex' => 'misc', 'citeproc' => 'dataset',
229
228
  'resourceType' => 'Gene expression matrices', 'resourceTypeGeneral' => 'Dataset', 'ris' => 'DATA', 'schemaOrg' => 'Dataset')
230
- expect(subject.creators).to eq([{ 'name' => 'The GTEx Consortium', 'nameType' => 'Organizational',
231
- 'nameIdentifiers' => [], 'affiliation' => [] }])
229
+ expect(subject.creators).to eq([{ 'name' => 'The GTEx Consortium', 'nameType' => 'Organizational'}])
232
230
  expect(subject.titles).to eq([{ 'title' => 'Fully processed, filtered and normalized gene expression matrices (in BED format) for each tissue, which were used as input into FastQTL for eQTL discovery' }])
233
231
  expect(subject.version_info).to eq('v7')
234
232
  expect(subject.subjects).to eq([{ 'subject' => 'gtex' }, { 'subject' => 'annotation' },
@@ -258,8 +256,7 @@ describe Briard::Metadata, vcr: true do
258
256
  ])
259
257
  expect(subject.types).to eq('bibtex' => 'misc', 'citeproc' => 'dataset',
260
258
  'resourceType' => 'CRAM file', 'resourceTypeGeneral' => 'Dataset', 'ris' => 'DATA', 'schemaOrg' => 'Dataset')
261
- expect(subject.creators).to eq([{ 'name' => 'TOPMed IRC', 'nameType' => 'Organizational',
262
- 'nameIdentifiers' => [], 'affiliation' => [] }])
259
+ expect(subject.creators).to eq([{ 'name' => 'TOPMed IRC', 'nameType' => 'Organizational' }])
263
260
  expect(subject.titles).to eq([{ 'title' => 'NWD165827.recab.cram' }])
264
261
  expect(subject.subjects).to eq([{ 'subject' => 'topmed' },
265
262
  { 'subject' => 'whole genome sequencing' }])
@@ -322,8 +319,7 @@ describe Briard::Metadata, vcr: true do
322
319
  expect(subject.types).to eq('bibtex' => 'misc', 'citeproc' => 'dataset',
323
320
  'resourceTypeGeneral' => 'Dataset', 'ris' => 'DATA', 'schemaOrg' => 'Dataset')
324
321
  expect(subject.creators.length).to eq(2)
325
- expect(subject.creators.first).to eq('name' => 'Tara Oceans Consortium, Coordinators',
326
- 'nameType' => 'Organizational', 'nameIdentifiers' => [], 'affiliation' => [])
322
+ expect(subject.creators.first).to eq('name' => 'Tara Oceans Consortium, Coordinators', 'nameType' => 'Organizational')
327
323
  expect(subject.titles).to eq([{ 'title' => 'Registry of all stations from the Tara Oceans Expedition (2009-2013)' }])
328
324
  expect(subject.dates).to eq([{ 'date' => '2015-02-03', 'dateType' => 'Issued' }])
329
325
  expect(subject.publication_year).to eq('2015')
@@ -349,8 +345,7 @@ describe Briard::Metadata, vcr: true do
349
345
  ])
350
346
  expect(subject.types).to eq('bibtex' => 'misc', 'citeproc' => 'dataset',
351
347
  'resourceType' => 'CRAM file', 'resourceTypeGeneral' => 'Dataset', 'ris' => 'DATA', 'schemaOrg' => 'Dataset')
352
- expect(subject.creators).to eq([{ 'name' => 'TOPMed', 'nameType' => 'Organizational',
353
- 'nameIdentifiers' => [], 'affiliation' => [] }])
348
+ expect(subject.creators).to eq([{ 'name' => 'TOPMed', 'nameType' => 'Organizational' }])
354
349
  expect(subject.titles).to eq([{ 'title' => 'NWD100953.recab.cram' }])
355
350
  expect(subject.subjects).to eq([{ 'subject' => 'topmed' },
356
351
  { 'subject' => 'whole genome sequencing' }])