Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
An Automated System for Lookup Persistent Identifiers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Mercell
An Automated System for Lookup Persistent Identifiers
Commits
5d8feb7f
There was an error fetching the commit references. Please try again later.
Commit
5d8feb7f
authored
2 months ago
by
Peter Mercell
Browse files
Options
Downloads
Patches
Plain Diff
Instead of returning no element when problem with parsing, return an empty element
parent
5514c202
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/txt_parser.py
+8
-0
8 additions, 0 deletions
shared/txt_parser.py
with
8 additions
and
0 deletions
shared/txt_parser.py
+
8
−
0
View file @
5d8feb7f
...
...
@@ -31,6 +31,14 @@ def parse_txt(txt_data,parser):
books
=
str
(
txt_data
,
"
utf-8
"
).
split
(
'
\n
'
)
for
book
in
books
:
if
create_query_using_attributes_txt
(
book
,
query
)
==
"
NO DATA
"
:
output
.
append
({
"
author
"
:
""
,
"
bibliographic
"
:
""
,
"
doi
"
:
""
,
"
doi score
"
:
""
,
"
doi_link
"
:
""
,
"
title
"
:
""
,
})
query
=
{}
continue
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment