Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_refs() failing to read in first field of first record #20

Open
nealhaddaway opened this issue Apr 10, 2022 · 1 comment
Open

read_refs() failing to read in first field of first record #20

nealhaddaway opened this issue Apr 10, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nealhaddaway
Copy link
Collaborator

The first record isn't being read in properly - TY-JOUR is being shown in a 'ZZ' field instead of being recognised as source_type. I think this is because few RIS files have a field code signifying the start of the file, 'TY - ' is the start of the text file.

See this example from EMBASE: https://gitlab.com/extending-the-earcheck/living-review/-/blob/master/search/literature_search_02/Embase_290521_N974.RIS?expanded=true&viewer=simple

@nealhaddaway nealhaddaway added the bug Something isn't working label Apr 10, 2022
@shjenkins94
Copy link

Coming in late but I think the problem is that the file is UTF-8 with BOM. So there's some invisible characters before the first TY that cause a regexpr call in prep_ris to not match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants