mjwestgate / revtools

Tools to support research synthesis in R
https://revtools.net
48 stars 26 forks source link

ris import error when file contains untagged text #8

Closed mjwestgate closed 6 years ago

mjwestgate commented 6 years ago

read_bibliography sometimes behaves poorly when given a .ris file that contains untagged information in separate text blocks (see attached file).

Specifically, this text is assigned to the wrong reference, as it occurs after the 'ER' tag. Key issue is to ensure that information is either deleted or assigned to the correct reference. Related issue is to ensure that read_bibliography always returns the correct number of references - currently it returns n+1 for every n references in the source file.

A sub-problem with this file is that references are numbered, but this information is not stored in a sensible way - correct or delete this information.

ris_error_1.txt

mjwestgate commented 6 years ago

solved by excluding any text that lacks tags - this approach is more stable but less complete.