bolognese 0.9.56 → 0.9.58
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Gemfile.lock +6 -4
- data/README.md +7 -0
- data/bolognese.gemspec +1 -0
- data/lib/bolognese.rb +1 -0
- data/lib/bolognese/metadata.rb +12 -4
- data/lib/bolognese/readers/bibtex_reader.rb +4 -1
- data/lib/bolognese/readers/crossref_reader.rb +60 -34
- data/lib/bolognese/readers/datacite_reader.rb +4 -11
- data/lib/bolognese/readers/ris_reader.rb +2 -1
- data/lib/bolognese/utils.rb +111 -51
- data/lib/bolognese/version.rb +1 -1
- data/lib/bolognese/writers/bibtex_writer.rb +1 -1
- data/lib/bolognese/writers/citeproc_writer.rb +1 -1
- data/lib/bolognese/writers/crosscite_writer.rb +2 -1
- data/lib/bolognese/writers/jats_writer.rb +94 -0
- data/lib/bolognese/writers/ris_writer.rb +2 -1
- data/lib/bolognese/writers/schema_org_writer.rb +2 -1
- data/resources/kernel-4/include/datacite-dateType-v4.1.xsd +1 -1
- data/resources/kernel-4/include/datacite-relationType-v4.1.xsd +1 -1
- data/resources/kernel-4/include/datacite-resourceType-v4.1.xsd +1 -1
- data/resources/kernel-4/metadata.xsd +1 -1
- data/spec/author_utils_spec.rb +1 -1
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/default.yml +9 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_bibtex.yml +9 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_crossref.yml +9 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_datacite.yml +9 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/crossref/to_schema_org.yml +9 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/default.yml +27 -13
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_bibtex.yml +25 -13
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_citation.yml +17 -17
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_crossref.yml +27 -13
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_datacite.yml +26 -12
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/crossref/to_schema_org.yml +27 -13
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/default.yml +15 -52
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_bibtex.yml +16 -51
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_citation.yml +20 -51
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite.yml +16 -49
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_datacite_json.yml +15 -50
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/datacite/to_schema_org.yml +16 -51
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/default.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_bibtex.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_datacite.yml +14 -14
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_from_id/schema_org/to_schema_org.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/authors_as_string/author.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/authors_as_string/no_author.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/authors_as_string/single_author.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/authors_as_string/with_organization.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_datacite_metadata/change_doi.yml +26 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_datacite_metadata/change_title.yml +23 -64
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/validates_against_schema.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/change_metadata_as_datacite_xml/with_data_citation.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_from_url/doi.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_from_url/not_a_doi.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_from_url/sandbox_url.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_from_url/url.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/crossref.yml +35 -31
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/datacite.yml +36 -30
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/medra.yml +35 -31
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/not_a_valid_prefix.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_registration_agency/not_found.yml +27 -27
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/doi.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/doi_with_protocol.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/dx_doi_org_url.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/force_test_resolver.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/https_url.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/test_resolver.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_resolver/test_resolver_http.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_search/doi.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_search/doi_with_protocol.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_search/dx_doi_org_url.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_search/force_test_resolver.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_search/https_url.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_search/test_resolver.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/doi_search/test_resolver_http.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref.yml +39 -86
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/crossref_doi_not_url.yml +36 -89
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite.yml +40 -85
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/datacite_doi_http.yml +36 -89
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/github.yml +19 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/orcid.yml +21 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/schema_org.yml +22 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_by_ID/unknown_DOI_registration_agency.yml +31 -82
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/bibtex.yml +20 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/citeproc.yml +21 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/codemeta.yml +23 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/crosscite.yml +22 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/crossref.yml +22 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/datacite.yml +22 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/datacite_json.yml +21 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/ris.yml +24 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_file/schema_org.yml +23 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/find_from_format_from_string/crosscite.yml +20 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/from_schema_org/with_id.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_codemeta_metadata/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_codemeta_metadata/no_codemeta_json.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_codemeta_metadata/not_found_error.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/DOI_with_ORCID_ID.yml +34 -30
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/DOI_with_SICI_DOI.yml +33 -29
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/DOI_with_data_citation.yml +35 -31
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/book_chapter.yml +150 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/dataset.yml +34 -30
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/date_in_future.yml +33 -31
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/journal_article.yml +33 -31
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/not_found_error.yml +26 -26
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/posted_content.yml +34 -30
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_raw/journal_article.yml +9 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/BlogPosting.yml +23 -64
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/BlogPosting_in_test_system.yml +22 -65
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_in_test_system.yml +24 -64
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_not_found.yml +24 -29
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Dataset.yml +24 -65
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Funding.yml +22 -65
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Funding_schema_version_4.yml +20 -65
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_only_full_name.yml +23 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_with_scheme.yml +26 -64
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/author_with_wrong_orcid_scheme.yml +24 -66
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/date.yml +24 -64
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/empty_subject.yml +24 -65
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/funding_schema_version_3.yml +24 -66
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/is_identical_to.yml +24 -64
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/keywords_with_attributes.yml +28 -64
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/leading_and_trailing_whitespace.yml +26 -64
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/multiple_author_names_in_one_creatorName.yml +23 -64
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/multiple_licenses.yml +25 -65
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_date_parts/date.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_date_parts/year-month.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_from_date_parts/year.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_parts/date.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_parts/year-month.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_date_parts/year.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_name_identifiers/has_ORCID.yml +11 -79
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_name_identifiers/has_jacow_org_scheme.yml +13 -79
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_name_identifiers/has_multiple_name_identifier.yml +14 -80
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_name_identifiers/has_no_ORCID.yml +13 -79
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_familyName.yml +11 -79
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_multiple_names_in_display-order.yml +7 -44
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_name_in_Thai.yml +12 -80
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_name_in_display-order.yml +12 -78
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_name_in_display-order_with_ORCID.yml +13 -79
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/has_name_in_sort-order.yml +12 -80
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/hyper-authorship.yml +9 -79
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/is_organization.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/multiple_author_names_in_one_field.yml +9 -79
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/multiple_name_identifier.yml +13 -44
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/name_with_affiliation.yml +14 -45
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_one_author/name_with_role.yml +14 -45
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_schema_org_metadata/BlogPosting.yml +19 -19
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_schema_org_metadata/BlogPosting_with_new_DOI.yml +20 -20
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_schema_org_metadata/not_found_error.yml +2 -2
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/handle_input/DOI_RA_not_Crossref_or_DataCite.yml +17 -23
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/handle_input/unknown_DOI_prefix.yml +8 -22
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_alternate_identifiers/insert.yml +6 -41
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_contributors/none.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_creators/insert.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_dates/insert.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_descriptions/insert.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_identifier/doi.yml +6 -41
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_person/creator_only_name.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_publication_year/insert.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_publisher/insert.yml +6 -41
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_related_identifiers/insert.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_related_identifiers/related_identifier.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_resource_type/insert.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_rights_list/insert.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_subjects/insert.yml +5 -42
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_titles/insert.yml +6 -41
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_version/insert.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_comma.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_family_name.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_id.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_known_given_name.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_no_info.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/is_personal_name_/has_type_organization.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/jsonlint/missing_comma.yml +19 -62
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/jsonlint/nil.yml +22 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/jsonlint/overlapping_keys.yml +20 -65
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/jsonlint/valid.yml +22 -63
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/SICI_doi.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_force_datacite_sandbox.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_from_datacite_sandbox.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_from_url_without_doi_proxy.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_prefix_too_long.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_prefix_with_string.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/doi_with_protocol.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/dx_doi_org_url.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/https_url.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/not_valid_doi_prefix.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_doi/url_with_one_slash.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/doi.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/doi_as_url.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/ftp.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/invalid_url.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/sandbox_via_options.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/sandbox_via_url.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/string.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/url.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_id/url_with_utf-8.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_ids/doi.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_ids/url.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_url/uri.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_url/with_trailing_slash.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/array.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/array_of_strings.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/first.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/hash.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/nil.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/parse_attributes/string.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/sanitize/should_only_keep_specific_tags.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/sanitize/should_remove_a_tags.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/to_schema_org/with_id.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid_https.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid_id.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid_with_spaces.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid_wrong_id.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid/validate_orcid_www.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid_scheme/validate_orcid_scheme.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid_scheme/validate_orcid_scheme_https.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid_scheme/validate_orcid_scheme_trailing_slash.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_orcid_scheme/validate_orcid_scheme_www.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_prefix/doi.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_prefix/doi_as_url.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_prefix/doi_with_protocol.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_prefix/only_prefix.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_url/DOI.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_url/ISSN.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_url/URL.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/validate_url/string.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/BlogPosting.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/Dataset.yml +5 -42
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/from_schema_org.yml +20 -20
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/maremma.yml +11 -11
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/text.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/with_data_citation.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/with_pages.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citation/Dataset.yml +8 -43
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citation/Journal_article.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citation/Journal_article_vancouver_style.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/BlogPosting.yml +4 -39
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/BlogPosting_schema_org.yml +19 -19
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/Dataset.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/container_title.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/journal_article.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/multiple_abstracts.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/software.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citeproc/with_pages.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_codemeta/SoftwareSourceCode_DataCite.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crosscite/datacite_database_attributes.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crosscite/maremma.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crosscite/with_ORCID_ID.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crosscite/with_data_citation.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crosscite/with_data_citation_schema_org.yml +19 -19
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crossref/from_DataCite.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_crossref/journal_article.yml +9 -3
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_json/maremma.yml +9 -9
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_json/with_ORCID_ID.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_json/with_data_citation.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_json/with_data_citation_schema_org.yml +19 -19
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/Dataset_in_schema_4_0.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/Text_pass-thru.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/maremma.yml +9 -9
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/with_ORCID_ID.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/with_data_citation.yml +19 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/with_data_citation_schema_org.yml +20 -20
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_datacite_xml/with_editor.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/Dataset_in_schema_4_0.yml +38 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/Text_pass-thru.yml +40 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/book_chapter.yml +60 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/maremma.yml +73 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/with_ORCID_ID.yml +79 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/with_data_citation.yml +79 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/with_data_citation_schema_org.yml +121 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_jats_xml/with_editor.yml +79 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/BlogPosting.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/BlogPosting_schema_org.yml +19 -19
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/Dataset.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/alternate_name.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/journal_article.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_ris/with_pages.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Funding.yml +5 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Funding_OpenAIRE.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Schema_org_JSON.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Schema_org_JSON_IsSupplementTo.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Schema_org_JSON_isReferencedBy.yml +7 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/journal_article.yml +18 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/maremma_schema_org_JSON.yml +11 -11
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/BlogPosting.yml +101 -80
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/BlogPosting_Citeproc_JSON.yml +94 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/BlogPosting_DataCite_JSON.yml +94 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/Crossref_DOI.yml +94 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/DataONE.yml +94 -40
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_turtle/Dataset.yml +99 -80
- data/spec/readers/crossref_reader_spec.rb +32 -20
- data/spec/readers/datacite_reader_spec.rb +0 -4
- data/spec/writers/bibtex_writer_spec.rb +1 -1
- data/spec/writers/citation_writer_spec.rb +1 -1
- data/spec/writers/crosscite_writer_spec.rb +4 -4
- data/spec/writers/datacite_json_writer_spec.rb +3 -3
- data/spec/writers/datacite_writer_spec.rb +4 -4
- data/spec/writers/jats_writer_spec.rb +173 -0
- data/spec/writers/ris_writer_spec.rb +19 -21
- data/spec/writers/schema_org_writer_spec.rb +2 -6
- metadata +27 -12
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/default.yml +0 -38
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_bibtex.yml +0 -38
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_datacite.yml +0 -38
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_datacite_invalid.yml +0 -38
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/convert_file/datacite/to_schema_org.yml +0 -38
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/BlogPosting_from_string.yml +0 -38
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Schema_4_1_from_string.yml +0 -38
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/Schema_4_1_from_string_with_doi_in_options.yml +0 -38
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/missing_creator.yml +0 -38
- data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_raw/BlogPosting.yml +0 -38
data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_crossref_metadata/posted_content.yml
CHANGED
@@ -17,21 +17,21 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Access-Control-Allow-Headers:
|
20
|
-
-
|
20
|
+
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
21
21
|
Access-Control-Allow-Methods:
|
22
|
-
- GET, POST, OPTIONS
|
22
|
+
- GET, POST, PATCH, PUT, DELETE, OPTIONS
|
23
23
|
Access-Control-Allow-Origin:
|
24
24
|
- "*"
|
25
|
-
Access-Control-
|
26
|
-
-
|
25
|
+
Access-Control-Expose-Headers:
|
26
|
+
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
Content-Type:
|
30
30
|
- application/vnd.api+json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Mon, 23 Oct 2017 18:02:21 GMT
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"d073b6a2c133a85e12e4749dba2b31a7"
|
35
35
|
Server:
|
36
36
|
- openresty/1.11.2.2
|
37
37
|
Status:
|
@@ -40,33 +40,25 @@ http_interactions:
|
|
40
40
|
- Accept-Encoding
|
41
41
|
Via:
|
42
42
|
- kong/0.10.3
|
43
|
-
X-
|
44
|
-
-
|
45
|
-
X-Frame-Options:
|
46
|
-
- SAMEORIGIN
|
43
|
+
X-Anonymous-Consumer:
|
44
|
+
- 'true'
|
47
45
|
X-Kong-Proxy-Latency:
|
48
|
-
- '
|
46
|
+
- '0'
|
49
47
|
X-Kong-Upstream-Latency:
|
50
|
-
- '
|
48
|
+
- '331'
|
51
49
|
X-Powered-By:
|
52
|
-
- Phusion Passenger 5.1.
|
53
|
-
X-Ratelimit-Limit-Hour:
|
54
|
-
- '100000'
|
55
|
-
X-Ratelimit-Remaining-Hour:
|
56
|
-
- '99992'
|
50
|
+
- Phusion Passenger 5.1.11
|
57
51
|
X-Request-Id:
|
58
|
-
-
|
52
|
+
- 7af89380-b715-42cb-9cda-ccf65d02097c
|
59
53
|
X-Runtime:
|
60
|
-
- '0.
|
61
|
-
X-Xss-Protection:
|
62
|
-
- 1; mode=block
|
54
|
+
- '0.328700'
|
63
55
|
Connection:
|
64
56
|
- keep-alive
|
65
57
|
body:
|
66
58
|
encoding: UTF-8
|
67
|
-
string: '{"data":{"id":"10.1101","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T20:45:32Z"}}}'
|
59
|
+
string: '{"data":{"id":"10.1101","type":"prefixes","attributes":{"registration-agency":"Crossref","created":null,"updated":"2016-09-21T20:45:32Z"},"relationships":{"clients":{"data":[]},"providers":{"data":[]}}}}'
|
68
60
|
http_version:
|
69
|
-
recorded_at:
|
61
|
+
recorded_at: Mon, 23 Oct 2017 18:02:20 GMT
|
70
62
|
- request:
|
71
63
|
method: get
|
72
64
|
uri: http://www.crossref.org/openurl/?format=unixref&id=doi:10.1101/097196&noredirect=true&pid=tech@datacite.org
|
@@ -86,21 +78,27 @@ http_interactions:
|
|
86
78
|
Server:
|
87
79
|
- Apache-Coyote/1.1
|
88
80
|
Crossref-Deployment-Name:
|
89
|
-
-
|
81
|
+
- qs4-1
|
90
82
|
Content-Type:
|
91
83
|
- text/xml;charset=UTF-8
|
92
84
|
Content-Language:
|
93
85
|
- en-US
|
94
86
|
Date:
|
95
|
-
-
|
87
|
+
- Mon, 23 Oct 2017 18:02:24 GMT
|
88
|
+
X-Cache:
|
89
|
+
- MISS from IMP-cache
|
90
|
+
X-Cache-Lookup:
|
91
|
+
- MISS from IMP-cache:3128
|
92
|
+
Via:
|
93
|
+
- 1.0 IMP-cache (squid/3.1.20)
|
96
94
|
Connection:
|
97
95
|
- close
|
98
96
|
body:
|
99
97
|
encoding: ASCII-8BIT
|
100
98
|
string: !binary |-
|
101
|
-
|
99
|
+
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGRvaV9yZWNvcmRzPg0KICA8ZG9pX3JlY29yZCBvd25lcj0iMTAuMTEwMSIgdGltZXN0YW1wPSIyMDE3LTEwLTEwIDAxOjEwOjQ5Ij4NCiAgICA8Y3Jvc3NyZWY+DQogICAgICA8cG9zdGVkX2NvbnRlbnQgdHlwZT0icHJlcHJpbnQiIGxhbmd1YWdlPSJlbiIgbWV0YWRhdGFfZGlzdHJpYnV0aW9uX29wdHM9ImFueSI+DQogICAgICAgIDxncm91cF90aXRsZT5TY2llbnRpZmljIENvbW11bmljYXRpb24gYW5kIEVkdWNhdGlvbjwvZ3JvdXBfdGl0bGU+DQogICAgICAgIDxjb250cmlidXRvcnM+DQogICAgICAgICAgPHBlcnNvbl9uYW1lIGNvbnRyaWJ1dG9yX3JvbGU9ImF1dGhvciIgc2VxdWVuY2U9ImZpcnN0Ij4NCiAgICAgICAgICAgIDxnaXZlbl9uYW1lPk1hcnRpbjwvZ2l2ZW5fbmFtZT4NCiAgICAgICAgICAgIDxzdXJuYW1lPkZlbm5lcjwvc3VybmFtZT4NCiAgICAgICAgICAgIDxPUkNJRD5odHRwOi8vb3JjaWQub3JnLzAwMDAtMDAwMy0xNDE5LTI0MDU8L09SQ0lEPg0KICAgICAgICAgIDwvcGVyc29uX25hbWU+DQogICAgICAgICAgPHBlcnNvbl9uYW1l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uMTEwMS8wOTcxOTY8L3Jlc291cmNlPg0KICAgICAgICAgIDxjb2xsZWN0aW9uIHByb3BlcnR5PSJjcmF3bGVyLWJhc2VkIj4NCiAgICAgICAgICAgIDxpdGVtIGNyYXdsZXI9ImlQYXJhZGlnbXMiPg0KICAgICAgICAgICAgICA8cmVzb3VyY2U+aHR0cHM6Ly9zeW5kaWNhdGlvbi5oaWdod2lyZS5vcmcvY29udGVudC9kb2kvMTAuMTEwMS8wOTcxOTY8L3Jlc291cmNlPg0KICAgICAgICAgICAgPC9pdGVtPg0KICAgICAgICAgIDwvY29sbGVjdGlvbj4NCiAgICAgICAgPC9kb2lfZGF0YT4NCiAgICAgIDwvcG9zdGVkX2NvbnRlbnQ+DQogICAgPC9jcm9zc3JlZj4NCiAgPC9kb2lfcmVjb3JkPg0KPC9kb2lfcmVjb3Jkcz4=
|
102
100
|
http_version:
|
103
|
-
recorded_at:
|
101
|
+
recorded_at: Mon, 23 Oct 2017 18:02:24 GMT
|
104
102
|
- request:
|
105
103
|
method: get
|
106
104
|
uri: http://api.crossref.org/prefixes/10.1101
|
@@ -130,17 +128,23 @@ http_interactions:
|
|
130
128
|
Server:
|
131
129
|
- http-kit
|
132
130
|
Date:
|
133
|
-
-
|
131
|
+
- Mon, 23 Oct 2017 18:02:25 GMT
|
134
132
|
X-Rate-Limit-Limit:
|
135
133
|
- '50'
|
136
134
|
X-Rate-Limit-Interval:
|
137
135
|
- 1s
|
136
|
+
X-Cache:
|
137
|
+
- MISS from IMP-cache
|
138
|
+
X-Cache-Lookup:
|
139
|
+
- MISS from IMP-cache:3128
|
140
|
+
Via:
|
141
|
+
- 1.0 IMP-cache (squid/3.1.20)
|
138
142
|
Connection:
|
139
|
-
-
|
143
|
+
- keep-alive
|
140
144
|
body:
|
141
145
|
encoding: UTF-8
|
142
146
|
string: '{"status":"ok","message-type":"prefix","message-version":"1.0.0","message":{"member":"http:\/\/id.crossref.org\/member\/246","name":"Cold
|
143
147
|
Spring Harbor Laboratory","prefix":"http:\/\/id.crossref.org\/prefix\/10.1101"}}'
|
144
148
|
http_version:
|
145
|
-
recorded_at:
|
149
|
+
recorded_at: Mon, 23 Oct 2017 18:02:25 GMT
|
146
150
|
recorded_with: VCR 3.0.3
|
@@ -29,17 +29,23 @@ http_interactions:
|
|
29
29
|
Server:
|
30
30
|
- http-kit
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Mon, 23 Oct 2017 18:02:26 GMT
|
33
33
|
X-Rate-Limit-Limit:
|
34
34
|
- '50'
|
35
35
|
X-Rate-Limit-Interval:
|
36
36
|
- 1s
|
37
|
+
X-Cache:
|
38
|
+
- MISS from IMP-cache
|
39
|
+
X-Cache-Lookup:
|
40
|
+
- MISS from IMP-cache:3128
|
41
|
+
Via:
|
42
|
+
- 1.0 IMP-cache (squid/3.1.20)
|
37
43
|
Connection:
|
38
|
-
-
|
44
|
+
- keep-alive
|
39
45
|
body:
|
40
46
|
encoding: UTF-8
|
41
47
|
string: '{"status":"ok","message-type":"prefix","message-version":"1.0.0","message":{"member":"http:\/\/id.crossref.org\/member\/340","name":"Public
|
42
48
|
Library of Science (PLoS)","prefix":"http:\/\/id.crossref.org\/prefix\/10.1371"}}'
|
43
49
|
http_version:
|
44
|
-
recorded_at:
|
50
|
+
recorded_at: Mon, 23 Oct 2017 18:02:26 GMT
|
45
51
|
recorded_with: VCR 3.0.3
|
@@ -17,21 +17,21 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Access-Control-Allow-Headers:
|
20
|
-
-
|
20
|
+
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
21
21
|
Access-Control-Allow-Methods:
|
22
|
-
- GET, POST, OPTIONS
|
22
|
+
- GET, POST, PATCH, PUT, DELETE, OPTIONS
|
23
23
|
Access-Control-Allow-Origin:
|
24
24
|
- "*"
|
25
|
-
Access-Control-
|
26
|
-
-
|
25
|
+
Access-Control-Expose-Headers:
|
26
|
+
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
Content-Type:
|
30
30
|
- application/vnd.api+json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Mon, 23 Oct 2017 18:03:23 GMT
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"9f9b4d4b753bd2663f9f211af7a2ad55"
|
35
35
|
Server:
|
36
36
|
- openresty/1.11.2.2
|
37
37
|
Status:
|
@@ -40,38 +40,30 @@ http_interactions:
|
|
40
40
|
- Accept-Encoding
|
41
41
|
Via:
|
42
42
|
- kong/0.10.3
|
43
|
-
X-
|
44
|
-
-
|
45
|
-
X-Frame-Options:
|
46
|
-
- SAMEORIGIN
|
43
|
+
X-Anonymous-Consumer:
|
44
|
+
- 'true'
|
47
45
|
X-Kong-Proxy-Latency:
|
48
|
-
- '
|
46
|
+
- '0'
|
49
47
|
X-Kong-Upstream-Latency:
|
50
|
-
- '
|
48
|
+
- '32'
|
51
49
|
X-Powered-By:
|
52
|
-
- Phusion Passenger 5.1.
|
53
|
-
X-Ratelimit-Limit-Hour:
|
54
|
-
- '100000'
|
55
|
-
X-Ratelimit-Remaining-Hour:
|
56
|
-
- '99942'
|
50
|
+
- Phusion Passenger 5.1.11
|
57
51
|
X-Request-Id:
|
58
|
-
-
|
52
|
+
- 25436421-b532-4881-a90a-b2dbb5956e50
|
59
53
|
X-Runtime:
|
60
|
-
- '0.
|
61
|
-
X-Xss-Protection:
|
62
|
-
- 1; mode=block
|
54
|
+
- '0.030331'
|
63
55
|
Content-Length:
|
64
|
-
- '
|
56
|
+
- '1138'
|
65
57
|
Connection:
|
66
58
|
- keep-alive
|
67
59
|
body:
|
68
60
|
encoding: UTF-8
|
69
|
-
string: '{"data":{"id":"10.5438","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"
|
61
|
+
string: '{"data":{"id":"10.5438","type":"prefixes","attributes":{"registration-agency":"DataCite","created":"2011-03-30T08:56:21.000Z","updated":null},"relationships":{"clients":{"data":[{"id":"datacite.datacite","type":"clients"}]},"providers":{"data":[{"id":"datacite","type":"providers"}]}}},"included":[{"id":"datacite.datacite","type":"clients","attributes":{"name":"DataCite","symbol":"DATACITE.DATACITE","year":2011,"contact-name":"DataCite","contact-email":"support@datacite.org","domains":"datacite.org,orcid.org,odin-project.eu,project-thor.eu,pidapalooza.org,github.com","is-active":true,"created":"2011-12-07T13:43:39Z","updated":"2017-09-24T01:44:22Z"},"relationships":{"prefixes":{"meta":{}},"provider":{"meta":{}},"repository":{"meta":{}}}},{"id":"datacite","type":"providers","attributes":{"name":"DataCite","symbol":"DATACITE","year":2011,"contact-name":"DataCite","contact-email":"support@datacite.org","logo-url":"https://assets.datacite.org/images/members/datacite.png","is-active":true,"created":"2011-12-07T13:41:07.000Z","updated":"2017-09-24T01:43:55.000Z"},"relationships":{"clients":{"meta":{}},"prefixes":{"meta":{}}}}]}'
|
70
62
|
http_version:
|
71
|
-
recorded_at:
|
63
|
+
recorded_at: Mon, 23 Oct 2017 18:03:26 GMT
|
72
64
|
- request:
|
73
65
|
method: get
|
74
|
-
uri: https://search.datacite.org/api?fl=doi,xml,allocator_symbol,datacentre_symbol,media,minted,updated&q=doi:10.5438/4k3m-nyvg&wt=json
|
66
|
+
uri: https://search.datacite.org/api?fl=doi,url,xml,allocator_symbol,datacentre_symbol,media,minted,updated&q=doi:10.5438/4k3m-nyvg&wt=json
|
75
67
|
body:
|
76
68
|
encoding: US-ASCII
|
77
69
|
string: ''
|
@@ -86,57 +78,24 @@ http_interactions:
|
|
86
78
|
message: OK
|
87
79
|
headers:
|
88
80
|
Access-Control-Allow-Methods:
|
89
|
-
- GET, POST, OPTIONS
|
81
|
+
- GET, POST, PATCH, PUT, DELETE, OPTIONS
|
90
82
|
Access-Control-Allow-Origin:
|
91
83
|
- "*"
|
92
84
|
Content-Type:
|
93
85
|
- application/json;charset=UTF-8
|
94
86
|
Date:
|
95
|
-
-
|
87
|
+
- Mon, 23 Oct 2017 18:03:29 GMT
|
96
88
|
Server:
|
97
89
|
- openresty/1.11.2.2
|
90
|
+
Content-Length:
|
91
|
+
- '3096'
|
98
92
|
Connection:
|
99
93
|
- keep-alive
|
100
94
|
body:
|
101
95
|
encoding: UTF-8
|
102
|
-
string: '{"responseHeader":{"status":0,"QTime":
|
96
|
+
string: '{"responseHeader":{"status":0,"QTime":35},"response":{"numFound":1,"start":0,"docs":[{"datacentre_symbol":"DATACITE.DATACITE","xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtNCIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtNCBodHRwOi8vc2NoZW1hLmRhdGFjaXRlLm9yZy9tZXRhL2tlcm5lbC00L21ldGFkYXRhLnhzZCI+CiAgPGlkZW50aWZpZXIgaWRlbnRpZmllclR5cGU9IkRPSSI+MTAuNTQzOC80SzNNLU5ZVkc8L2lkZW50aWZpZXI+CiAgPGNyZWF0b3JzPgogICAgPGNyZWF0b3I+CiAgICAgIDxjcmVhdG9yTmFtZT5GZW5uZXIsIE1hcnRpbjwvY3JlYXRvck5hbWU+CiAgICAgIDxnaXZlbk5hbWU+TWFydGluPC9naXZlbk5hbWU+CiAgICAgIDxmYW1pbHlOYW1lPkZlbm5lcjwvZmFtaWx5TmFtZT4KICAgICAgPG5hbWVJZGVudGlmaWVyIHNjaGVtZVVSST0iaHR0cDovL29yY2lkLm9yZy8iIG5hbWVJZGVudGlmaWVyU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R5cGU9IkRPSSIgcmVsYXRpb25UeXBlPSJSZWZlcmVuY2VzIj4xMC41NDM4LzAwMTI8L3JlbGF0ZWRJZGVudGlmaWVyPgogICAgPHJlbGF0ZWRJZGVudGlmaWVyIHJlbGF0ZWRJZGVudGlmaWVyVHlwZT0iRE9JIiByZWxhdGlvblR5cGU9IlJlZmVyZW5jZXMiPjEwLjU0MzgvNTVFNS1UNUMwPC9yZWxhdGVkSWRlbnRpZmllcj4KICAgIDxyZWxhdGVkSWRlbnRpZmllciByZWxhdGVkSWRlbnRpZmllclR5cGU9IkRPSSIgcmVsYXRpb25UeXBlPSJJc1BhcnRPZiI+MTAuNTQzOC8wMDAwLTAwU1M8L3JlbGF0ZWRJZGVudGlmaWVyPgogIDwvcmVsYXRlZElkZW50aWZpZXJzPgogIDx2ZXJzaW9uPjEuMDwvdmVyc2lvbj4KICA8ZGVzY3JpcHRpb25zPgogICAgPGRlc2NyaXB0aW9uIGRlc2NyaXB0aW9uVHlwZT0iQWJzdHJhY3QiPkVhdGluZyB5b3VyIG93biBkb2cgZm9vZCBpcyBhIHNsYW5nIHRlcm0gdG8gZGVzY3JpYmUgdGhhdCBhbiBvcmdhbml6YXRpb24gc2hvdWxkIGl0c2VsZiB1c2UgdGhlIHByb2R1Y3RzIGFuZCBzZXJ2aWNlcyBpdCBwcm92aWRlcy4gRm9yIERhdGFDaXRlIHRoaXMgbWVhbnMgdGhhdCB3ZSBzaG91bGQgdXNlIERPSXMgd2l0aCBhcHByb3ByaWF0ZSBtZXRhZGF0YSBhbmQgc3RyYXRlZ2llcyBmb3IgbG9uZy10ZXJtIHByZXNlcnZhdGlvbiBmb3IuLi48L2Rlc2NyaXB0aW9uPgogIDwvZGVzY3JpcHRpb25zPgo8L3Jlc291cmNlPgo=","allocator_symbol":"DATACITE","minted":"2016-12-19T20:49:21Z","updated":"2017-01-09T13:53:12Z","doi":"10.5438/4K3M-NYVG","media":["application/xml:https://blog.datacite.org/eating-your-own-dog-food/eating-your-own-dog-food.xml"]}]}}
|
103
97
|
|
104
98
|
'
|
105
99
|
http_version:
|
106
|
-
recorded_at:
|
107
|
-
- request:
|
108
|
-
method: head
|
109
|
-
uri: https://doi.org/10.5438/4k3m-nyvg
|
110
|
-
body:
|
111
|
-
encoding: US-ASCII
|
112
|
-
string: ''
|
113
|
-
headers:
|
114
|
-
User-Agent:
|
115
|
-
- Maremma - https://github.com/datacite/maremma
|
116
|
-
Accept:
|
117
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
118
|
-
response:
|
119
|
-
status:
|
120
|
-
code: 303
|
121
|
-
message: See Other
|
122
|
-
headers:
|
123
|
-
Server:
|
124
|
-
- Apache-Coyote/1.1
|
125
|
-
Vary:
|
126
|
-
- Accept
|
127
|
-
Location:
|
128
|
-
- https://blog.datacite.org/eating-your-own-dog-food/
|
129
|
-
Expires:
|
130
|
-
- Wed, 23 Aug 2017 08:12:45 GMT
|
131
|
-
Content-Type:
|
132
|
-
- text/html;charset=utf-8
|
133
|
-
Content-Length:
|
134
|
-
- '187'
|
135
|
-
Date:
|
136
|
-
- Wed, 23 Aug 2017 08:05:13 GMT
|
137
|
-
body:
|
138
|
-
encoding: UTF-8
|
139
|
-
string: ''
|
140
|
-
http_version:
|
141
|
-
recorded_at: Wed, 23 Aug 2017 08:05:13 GMT
|
100
|
+
recorded_at: Mon, 23 Oct 2017 18:03:28 GMT
|
142
101
|
recorded_with: VCR 3.0.3
|
@@ -17,21 +17,21 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Access-Control-Allow-Headers:
|
20
|
-
-
|
20
|
+
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
21
21
|
Access-Control-Allow-Methods:
|
22
|
-
- GET, POST, OPTIONS
|
22
|
+
- GET, POST, PATCH, PUT, DELETE, OPTIONS
|
23
23
|
Access-Control-Allow-Origin:
|
24
24
|
- "*"
|
25
|
-
Access-Control-
|
26
|
-
-
|
25
|
+
Access-Control-Expose-Headers:
|
26
|
+
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
Content-Type:
|
30
30
|
- application/vnd.api+json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Mon, 23 Oct 2017 18:02:40 GMT
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"9f9b4d4b753bd2663f9f211af7a2ad55"
|
35
35
|
Server:
|
36
36
|
- openresty/1.11.2.2
|
37
37
|
Status:
|
@@ -40,38 +40,30 @@ http_interactions:
|
|
40
40
|
- Accept-Encoding
|
41
41
|
Via:
|
42
42
|
- kong/0.10.3
|
43
|
-
X-
|
44
|
-
-
|
45
|
-
X-Frame-Options:
|
46
|
-
- SAMEORIGIN
|
43
|
+
X-Anonymous-Consumer:
|
44
|
+
- 'true'
|
47
45
|
X-Kong-Proxy-Latency:
|
48
|
-
- '
|
46
|
+
- '0'
|
49
47
|
X-Kong-Upstream-Latency:
|
50
|
-
- '
|
48
|
+
- '823'
|
51
49
|
X-Powered-By:
|
52
|
-
- Phusion Passenger 5.1.
|
53
|
-
X-Ratelimit-Limit-Hour:
|
54
|
-
- '100000'
|
55
|
-
X-Ratelimit-Remaining-Hour:
|
56
|
-
- '99991'
|
50
|
+
- Phusion Passenger 5.1.11
|
57
51
|
X-Request-Id:
|
58
|
-
-
|
52
|
+
- 97e0d4b7-bb95-4313-b41d-ac154a8aebf2
|
59
53
|
X-Runtime:
|
60
|
-
- '0.
|
61
|
-
X-Xss-Protection:
|
62
|
-
- 1; mode=block
|
54
|
+
- '0.077999'
|
63
55
|
Content-Length:
|
64
|
-
- '
|
56
|
+
- '1138'
|
65
57
|
Connection:
|
66
58
|
- keep-alive
|
67
59
|
body:
|
68
60
|
encoding: UTF-8
|
69
|
-
string: '{"data":{"id":"10.5438","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"
|
61
|
+
string: '{"data":{"id":"10.5438","type":"prefixes","attributes":{"registration-agency":"DataCite","created":"2011-03-30T08:56:21.000Z","updated":null},"relationships":{"clients":{"data":[{"id":"datacite.datacite","type":"clients"}]},"providers":{"data":[{"id":"datacite","type":"providers"}]}}},"included":[{"id":"datacite.datacite","type":"clients","attributes":{"name":"DataCite","symbol":"DATACITE.DATACITE","year":2011,"contact-name":"DataCite","contact-email":"support@datacite.org","domains":"datacite.org,orcid.org,odin-project.eu,project-thor.eu,pidapalooza.org,github.com","is-active":true,"created":"2011-12-07T13:43:39Z","updated":"2017-09-24T01:44:22Z"},"relationships":{"prefixes":{"meta":{}},"provider":{"meta":{}},"repository":{"meta":{}}}},{"id":"datacite","type":"providers","attributes":{"name":"DataCite","symbol":"DATACITE","year":2011,"contact-name":"DataCite","contact-email":"support@datacite.org","logo-url":"https://assets.datacite.org/images/members/datacite.png","is-active":true,"created":"2011-12-07T13:41:07.000Z","updated":"2017-09-24T01:43:55.000Z"},"relationships":{"clients":{"meta":{}},"prefixes":{"meta":{}}}}]}'
|
70
62
|
http_version:
|
71
|
-
recorded_at:
|
63
|
+
recorded_at: Mon, 23 Oct 2017 18:02:41 GMT
|
72
64
|
- request:
|
73
65
|
method: get
|
74
|
-
uri: https://search.test.datacite.org/api?fl=doi,xml,allocator_symbol,datacentre_symbol,media,minted,updated&q=doi:10.5438/mcnv-ga6n&wt=json
|
66
|
+
uri: https://search.test.datacite.org/api?fl=doi,url,xml,allocator_symbol,datacentre_symbol,media,minted,updated&q=doi:10.5438/mcnv-ga6n&wt=json
|
75
67
|
body:
|
76
68
|
encoding: US-ASCII
|
77
69
|
string: ''
|
@@ -86,59 +78,24 @@ http_interactions:
|
|
86
78
|
message: OK
|
87
79
|
headers:
|
88
80
|
Access-Control-Allow-Methods:
|
89
|
-
- GET, POST, OPTIONS
|
81
|
+
- GET, POST, PATCH, PUT, DELETE, OPTIONS
|
90
82
|
Access-Control-Allow-Origin:
|
91
83
|
- "*"
|
92
84
|
Content-Type:
|
93
85
|
- application/json;charset=UTF-8
|
94
86
|
Date:
|
95
|
-
-
|
87
|
+
- Mon, 23 Oct 2017 18:02:45 GMT
|
96
88
|
Server:
|
97
89
|
- openresty/1.11.2.2
|
98
90
|
Content-Length:
|
99
|
-
- '
|
91
|
+
- '2539'
|
100
92
|
Connection:
|
101
93
|
- keep-alive
|
102
94
|
body:
|
103
95
|
encoding: UTF-8
|
104
|
-
string: '{"responseHeader":{"status":0,"QTime":
|
96
|
+
string: '{"responseHeader":{"status":0,"QTime":1},"response":{"numFound":1,"start":0,"docs":[{"datacentre_symbol":"SANDBOX.XH38-7HZV","url":"https://blog.datacite.org/re3data-webinar-and-datacite-en-avant/","xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlc291cmNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtNCIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtNCBodHRwOi8vc2NoZW1hLmRhdGFjaXRlLm9yZy9tZXRhL2tlcm5lbC00L21ldGFkYXRhLnhzZCI+CiAgPGlkZW50aWZpZXIgaWRlbnRpZmllclR5cGU9IkRPSSI+MTAuNTQzOC9NQ05WLUdBNk48L2lkZW50aWZpZXI+CiAgPGNyZWF0b3JzPgogICAgPGNyZWF0b3I+CiAgICAgIDxjcmVhdG9yTmFtZT5XaXR0LCBNaWNoYWVsPC9jcmVhdG9yTmFtZT4KICAgICAgPGdpdmVuTmFtZT5NaWNoYWVsPC9naXZlbk5hbWU+CiAgICAgIDxmYW1pbHlOYW1lPldpdH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HRyaWJ1dGlvbjwvcmlnaHRzPgogIDwvcmlnaHRzTGlzdD4KICA8ZGVzY3JpcHRpb25zPgogICAgPGRlc2NyaXB0aW9uIGRlc2NyaXB0aW9uVHlwZT0iQWJzdHJhY3QiPlRoZSBpbmF1Z3VyYWwgbWVldGluZyBvZiB0aGUgRGF0YUNpdGUgcmUzZGF0YSBXb3JraW5nIEdyb3VwIHdhcyBjb252ZW5lZCBpbiBQYXJpcyBvbiBTZXB0ZW1iZXIgMjB0aCBhdCB0aGUgb2ZmaWNlcyBvZiB0aGUgSW50ZXJuYXRpb25hbCBDb3VuY2lsIGZvciBTY2llbmNlIChJQ1NVKS4gQ28tY2hhaXJzIE1pY2hhZWwgV2l0dCBhbmQgRnJhbmsgU2Nob2x6ZSBnYXZlIHRoZSBiYWNrZ3JvdW5kIGFuZCBoaXN0b3J5IG9mIERhdGFiaWIuLi48L2Rlc2NyaXB0aW9uPgogIDwvZGVzY3JpcHRpb25zPgo8L3Jlc291cmNlPg==","allocator_symbol":"SANDBOX","minted":"2016-12-19T15:46:57Z","updated":"2017-07-24T02:05:32Z","doi":"10.5438/MCNV-GA6N"}]}}
|
105
97
|
|
106
98
|
'
|
107
99
|
http_version:
|
108
|
-
recorded_at:
|
109
|
-
- request:
|
110
|
-
method: head
|
111
|
-
uri: https://handle.test.datacite.org/10.5438/mcnv-ga6n
|
112
|
-
body:
|
113
|
-
encoding: US-ASCII
|
114
|
-
string: ''
|
115
|
-
headers:
|
116
|
-
User-Agent:
|
117
|
-
- Maremma - https://github.com/datacite/maremma
|
118
|
-
Accept:
|
119
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
120
|
-
response:
|
121
|
-
status:
|
122
|
-
code: 302
|
123
|
-
message: Found
|
124
|
-
headers:
|
125
|
-
Access-Control-Allow-Methods:
|
126
|
-
- GET, POST, OPTIONS
|
127
|
-
Access-Control-Allow-Origin:
|
128
|
-
- "*"
|
129
|
-
Content-Type:
|
130
|
-
- text/html; charset=utf-8
|
131
|
-
Date:
|
132
|
-
- Wed, 23 Aug 2017 10:23:51 GMT
|
133
|
-
Location:
|
134
|
-
- https://blog.datacite.org/re3data-webinar-and-datacite-en-avant/
|
135
|
-
Server:
|
136
|
-
- openresty/1.11.2.2
|
137
|
-
Connection:
|
138
|
-
- keep-alive
|
139
|
-
body:
|
140
|
-
encoding: UTF-8
|
141
|
-
string: ''
|
142
|
-
http_version:
|
143
|
-
recorded_at: Wed, 23 Aug 2017 10:23:51 GMT
|
100
|
+
recorded_at: Mon, 23 Oct 2017 18:02:45 GMT
|
144
101
|
recorded_with: VCR 3.0.3
|
data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/get_datacite_metadata/DOI_in_test_system.yml
CHANGED
@@ -17,21 +17,21 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Access-Control-Allow-Headers:
|
20
|
-
-
|
20
|
+
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
21
21
|
Access-Control-Allow-Methods:
|
22
|
-
- GET, POST, OPTIONS
|
22
|
+
- GET, POST, PATCH, PUT, DELETE, OPTIONS
|
23
23
|
Access-Control-Allow-Origin:
|
24
24
|
- "*"
|
25
|
-
Access-Control-
|
26
|
-
-
|
25
|
+
Access-Control-Expose-Headers:
|
26
|
+
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
Content-Type:
|
30
30
|
- application/vnd.api+json; charset=utf-8
|
31
31
|
Date:
|
32
|
-
-
|
32
|
+
- Mon, 23 Oct 2017 18:03:34 GMT
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"d35e41fa8af3297fd67751e7c48a5df9"
|
35
35
|
Server:
|
36
36
|
- openresty/1.11.2.2
|
37
37
|
Status:
|
@@ -40,36 +40,29 @@ http_interactions:
|
|
40
40
|
- Accept-Encoding
|
41
41
|
Via:
|
42
42
|
- kong/0.10.3
|
43
|
-
X-
|
44
|
-
-
|
45
|
-
X-Frame-Options:
|
46
|
-
- SAMEORIGIN
|
43
|
+
X-Anonymous-Consumer:
|
44
|
+
- 'true'
|
47
45
|
X-Kong-Proxy-Latency:
|
48
|
-
- '
|
46
|
+
- '0'
|
49
47
|
X-Kong-Upstream-Latency:
|
50
|
-
- '
|
48
|
+
- '77'
|
51
49
|
X-Powered-By:
|
52
|
-
- Phusion Passenger 5.1.
|
53
|
-
X-Ratelimit-Limit-Hour:
|
54
|
-
- '100000'
|
55
|
-
X-Ratelimit-Remaining-Hour:
|
56
|
-
- '99990'
|
50
|
+
- Phusion Passenger 5.1.11
|
57
51
|
X-Request-Id:
|
58
|
-
-
|
52
|
+
- d1abfb73-180a-489c-a0cf-095dc3f172a2
|
59
53
|
X-Runtime:
|
60
|
-
- '0.
|
61
|
-
X-Xss-Protection:
|
62
|
-
- 1; mode=block
|
54
|
+
- '0.075042'
|
63
55
|
Connection:
|
64
56
|
- keep-alive
|
65
57
|
body:
|
66
|
-
encoding:
|
67
|
-
string:
|
58
|
+
encoding: ASCII-8BIT
|
59
|
+
string: !binary |-
|
60
|
+
eyJkYXRhIjp7ImlkIjoiMTAuMjAzNzUiLCJ0eXBlIjoicHJlZml4ZXMiLCJhdHRyaWJ1dGVzIjp7InJlZ2lzdHJhdGlvbi1hZ2VuY3kiOiJEYXRhQ2l0ZSIsImNyZWF0ZWQiOiIyMDE1LTEyLTE0VDA4OjE5OjU2LjAwMFoiLCJ1cGRhdGVkIjpudWxsfSwicmVsYXRpb25zaGlwcyI6eyJjbGllbnRzIjp7ImRhdGEiOlt7ImlkIjoic3ViZ29lLmRhcmlhaCIsInR5cGUiOiJjbGllbnRzIn0seyJpZCI6InN1YmdvZS50ZXh0Z3JpZCIsInR5cGUiOiJjbGllbnRzIn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
72
|
-
uri: https://search.test.datacite.org/api?fl=doi,xml,allocator_symbol,datacentre_symbol,media,minted,updated&q=doi:10.20375/0000-0001-ddb8-7&wt=json
|
65
|
+
uri: https://search.test.datacite.org/api?fl=doi,url,xml,allocator_symbol,datacentre_symbol,media,minted,updated&q=doi:10.20375/0000-0001-ddb8-7&wt=json
|
73
66
|
body:
|
74
67
|
encoding: US-ASCII
|
75
68
|
string: ''
|
@@ -84,57 +77,24 @@ http_interactions:
|
|
84
77
|
message: OK
|
85
78
|
headers:
|
86
79
|
Access-Control-Allow-Methods:
|
87
|
-
- GET, POST, OPTIONS
|
80
|
+
- GET, POST, PATCH, PUT, DELETE, OPTIONS
|
88
81
|
Access-Control-Allow-Origin:
|
89
82
|
- "*"
|
90
83
|
Content-Type:
|
91
84
|
- application/json;charset=UTF-8
|
92
85
|
Date:
|
93
|
-
-
|
86
|
+
- Mon, 23 Oct 2017 18:03:41 GMT
|
94
87
|
Server:
|
95
88
|
- openresty/1.11.2.2
|
89
|
+
Content-Length:
|
90
|
+
- '1713'
|
96
91
|
Connection:
|
97
92
|
- keep-alive
|
98
93
|
body:
|
99
94
|
encoding: UTF-8
|
100
|
-
string: '{"responseHeader":{"status":0,"QTime":
|
95
|
+
string: '{"responseHeader":{"status":0,"QTime":1},"response":{"numFound":1,"start":0,"docs":[{"datacentre_symbol":"SUBGOE.DARIAH","xml":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8cmVzb3VyY2UgeG1sbnM9Imh0dHA6Ly9kYXRhY2l0ZS5vcmcvc2NoZW1hL2tlcm5lbC00IiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6c2NoZW1hTG9jYXRpb249Imh0dHA6Ly9kYXRhY2l0ZS5vcmcvc2NoZW1hL2tlcm5lbC00IGh0dHA6Ly9zY2hlbWEuZGF0YWN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h0cz4KICAgIDwvcmlnaHRzTGlzdD4KPC9yZXNvdXJjZT4K","allocator_symbol":"SUBGOE","minted":"2017-08-22T17:29:41Z","updated":"2017-08-22T17:29:41Z","doi":"10.20375/0000-0001-DDB8-7"}]}}
|
101
96
|
|
102
97
|
'
|
103
98
|
http_version:
|
104
|
-
recorded_at:
|
105
|
-
- request:
|
106
|
-
method: head
|
107
|
-
uri: https://handle.test.datacite.org/10.20375/0000-0001-ddb8-7
|
108
|
-
body:
|
109
|
-
encoding: US-ASCII
|
110
|
-
string: ''
|
111
|
-
headers:
|
112
|
-
User-Agent:
|
113
|
-
- Maremma - https://github.com/datacite/maremma
|
114
|
-
Accept:
|
115
|
-
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
116
|
-
response:
|
117
|
-
status:
|
118
|
-
code: 302
|
119
|
-
message: Found
|
120
|
-
headers:
|
121
|
-
Access-Control-Allow-Methods:
|
122
|
-
- GET, POST, OPTIONS
|
123
|
-
Access-Control-Allow-Origin:
|
124
|
-
- "*"
|
125
|
-
Content-Type:
|
126
|
-
- text/html; charset=utf-8
|
127
|
-
Date:
|
128
|
-
- Wed, 23 Aug 2017 10:36:24 GMT
|
129
|
-
Location:
|
130
|
-
- https://hdl.handle.net/21.T11998/0000-0001-DDB8-7
|
131
|
-
Server:
|
132
|
-
- openresty/1.11.2.2
|
133
|
-
Connection:
|
134
|
-
- keep-alive
|
135
|
-
body:
|
136
|
-
encoding: UTF-8
|
137
|
-
string: ''
|
138
|
-
http_version:
|
139
|
-
recorded_at: Wed, 23 Aug 2017 10:36:24 GMT
|
99
|
+
recorded_at: Mon, 23 Oct 2017 18:03:41 GMT
|
140
100
|
recorded_with: VCR 3.0.3
|