spec/readers/crossref_reader_spec.rb in briard-2.7.0 vs spec/readers/crossref_reader_spec.rb in briard-2.7.1

- old
+ new

@@ -111,11 +111,11 @@ 'rightsIdentifier' => 'cc-by-4.0', 'rightsIdentifierScheme' => 'SPDX', 'rightsUri' => 'https://creativecommons.org/licenses/by/4.0/legalcode', 'schemeUri' => 'https://spdx.org/licenses/' }]) expect(subject.dates).to eq([{ 'date' => '2019-07-02', 'dateType' => 'Issued' }, - { 'date' => '2019-09-22T02:40:23Z', 'dateType' => 'Updated' }]) + { 'date' => '2019-09-22T06:40:23Z', 'dateType' => 'Updated' }]) expect(subject.publication_year).to eq('2019') expect(subject.publisher).to eq('Frontiers Media SA') expect(subject.funding_references).to eq([{ 'awardNumber' => 'CA17111', 'funderIdentifier' => 'https://doi.org/10.13039/501100000921', 'funderIdentifierType' => 'Crossref Funder ID', 'funderName' => 'COST (European Cooperation in Science and Technology)' }]) expect(subject.related_identifiers.length).to eq(70) @@ -283,11 +283,11 @@ 'familyName' => 'Fenton' }, { 'nameType' => 'Personal', 'name' => 'Rands, S. A.', 'givenName' => 'S. A.', 'familyName' => 'Rands' } ]) expect(subject.rights_list).to eq([{ 'rightsUri' => 'http://doi.wiley.com/10.1002/tdm_license_1.1' }]) expect(subject.titles).to eq([{ 'title' => 'THE IMPACT OF PARASITE MANIPULATION AND PREDATOR FORAGING BEHAVIOR ON PREDATOR???PREY COMMUNITIES' }]) expect(subject.dates).to eq([{ 'date' => '2006-11', 'dateType' => 'Issued' }, - { 'date' => '2019-04-28T13:51:50Z', 'dateType' => 'Updated' }]) + { 'date' => '2019-04-28T17:51:50Z', 'dateType' => 'Updated' }]) expect(subject.publication_year).to eq('2006') expect(subject.publisher).to eq('Wiley') expect(subject.related_identifiers.length).to eq(35) expect(subject.related_identifiers.first).to eq('relatedIdentifier' => '0012-9658', 'relatedIdentifierType' => 'ISSN', 'relationType' => 'IsPartOf', 'resourceTypeGeneral' => 'Collection') @@ -665,11 +665,11 @@ 'resourceType' => 'SaComponent', 'resourceTypeGeneral' => 'Text', 'ris' => 'JOUR', 'schemaOrg' => 'ScholarlyArticle') expect(subject.creators).to eq([{ 'name' => ':(unav)', 'nameType' => 'Organizational' }]) expect(subject.titles).to eq([{ 'title' => ':(unav)' }]) expect(subject.descriptions.empty?).to be(true) expect(subject.dates).to eq([{ 'date' => '2015-10-20', 'dateType' => 'Issued' }, - { 'date' => '2018-10-19T21:13:42Z', 'dateType' => 'Updated' }]) + { 'date' => '2018-10-19T17:13:42Z', 'dateType' => 'Updated' }]) expect(subject.publication_year).to eq('2015') expect(subject.publisher).to eq('Public Library of Science (PLoS)') expect(subject.agency).to eq('crossref') end @@ -749,11 +749,11 @@ 'resourceType' => 'BookChapter', 'resourceTypeGeneral' => 'BookChapter', 'ris' => 'CHAP', 'schemaOrg' => 'Chapter') expect(subject.creators).to eq([{ 'affiliation' => [{ 'name' => 'Universit?? de Lyon, France' }], 'familyName' => 'Bichot', 'givenName' => 'Charles-Edmond', 'name' => 'Bichot, Charles-Edmond', 'nameType' => 'Personal' }]) expect(subject.titles).to eq([{ 'title' => 'Unsupervised and Supervised Image Segmentation Using Graph Partitioning' }]) expect(subject.dates).to eq([{ 'date' => '2012-08-08', 'dateType' => 'Issued' }, - { 'date' => '2019-07-02T13:17:21Z', 'dateType' => 'Updated' }]) + { 'date' => '2019-07-02T17:17:21Z', 'dateType' => 'Updated' }]) expect(subject.publication_year).to eq('2012') expect(subject.publisher).to eq('IGI Global') expect(subject.agency).to eq('crossref') expect(subject.container['type']).to eq('Book') expect(subject.container['title']).to eq('Graph-Based Methods in Computer Vision') @@ -807,10 +807,10 @@ 'resourceTypeGeneral' => 'Book', 'ris' => 'BOOK', 'schemaOrg' => 'Book') expect(subject.creators).to eq([{ 'familyName' => 'Leung', 'givenName' => 'Vincent S.', 'name' => 'Leung, Vincent S.', 'nameType' => 'Personal' }]) expect(subject.titles).to eq([{ 'title' => 'The Politics of the Past in Early China' }]) expect(subject.dates).to eq([{ 'date' => '2019-07-01', 'dateType' => 'Issued' }, - { 'date' => '2021-01-08T19:18:57Z', 'dateType' => 'Updated' }]) + { 'date' => '2022-09-22T13:22:42Z', 'dateType' => 'Updated' }]) expect(subject.publication_year).to eq('2019') expect(subject.publisher).to eq('Cambridge University Press (CUP)') expect(subject.agency).to eq('crossref') expect(subject.date_registered).to eq('2019-07-06T10:19:22Z') end