Skip to content

Issue when csv field contains quotation charactersΒ #119

@nimrodyanai

Description

@nimrodyanai

It seems that if the csv field contains quotation characters at the beginning of the row. It causes the entire row to become a single field instead of splitting the fields based on the delimiter.

For example:
These three rows:
"Arbeit ist keine Ware" - 100 Jahre Internationale Arbeitsorganisation 978-3-658-25415-5 978-3-658-25416-2 https://link.springer.com/10.1007/978-3-658-25416-2 Senghaas-Knobloch 10.1007/978-3-658-25416-2 fulltext Springer Fachmedien Wiesbaden Monograph 2019 1 P

"Arbeit ist keine Ware" – 100 Jahre Internationale Arbeitsorganisation 978-3-658-35978-2 978-3-658-35979-9 https://link.springer.com/10.1007/978-3-658-35979-9 Senghaas-Knobloch 10.1007/978-3-658-35979-9 fulltext Springer Fachmedien Wiesbaden Monograph 2022 2 P

"Auf Stalin, Sieg und Vaterland!" 978-3-658-00821-5 978-3-658-00822-2 https://link.springer.com/10.1007/978-3-658-00822-2 Lutz-Auras 10.1007/978-3-658-00822-2 fulltext Springer Fachmedien Wiesbaden Monograph 2013 1 P

Will result in the following:
{ publication_title: 'Arbeit ist keine Ware" - 100 Jahre Internationale Arbeitsorganisation\t978-3-658-25415-5\t978-3-658-25416-2\t\t\t\t\t\t\thttps://link.springer.com/10.1007/978-3-658-25416-2\tSenghaas-Knobloch\t10.1007/978-3-658-25416-2\t\tfulltext\t\tSpringer Fachmedien Wiesbaden\tMonograph\t2019\t\t\t1\t\t\t\tP\n' + '"Arbeit ist keine Ware" – 100 Jahre Internationale Arbeitsorganisation\t978-3-658-35978-2\t978-3-658-35979-9\t\t\t\t\t\t\thttps://link.springer.com/10.1007/978-3-658-35979-9\tSenghaas-Knobloch\t10.1007/978-3-658-35979-9\t\tfulltext\t\tSpringer Fachmedien Wiesbaden\tMonograph\t2022\t\t\t2\t\t\t\tP\n' + '"Auf Stalin, Sieg und Vaterland!', print_identifier: '978-3-658-00821-5', online_identifier: '978-3-658-00822-2', date_first_issue_online: '', num_first_vol_online: '', num_first_issue_online: '', date_last_issue_online: '', num_last_vol_online: '', num_last_issue_online: '', title_url: 'https://link.springer.com/10.1007/978-3-658-00822-2', first_author: 'Lutz-Auras', title_id: '10.1007/978-3-658-00822-2', embargo_info: '', coverage_depth: 'fulltext', coverage_notes: '', publisher_name: 'Springer Fachmedien Wiesbaden', publication_type: 'Monograph', date_monograph_published_print: '2013', date_monograph_published_online: '', monograph_volume: '', monograph_edition: '1', first_editor: '', parent_publication_title_id: '', preceding_publication_title_id: '', access_type: 'P' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions