Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
baa9ad11
Commit
baa9ad11
authored
Aug 26, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parsers: fix typo soup.find -> record.find
parent
1a4ae074
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CERN.py
gargantext/util/parsers/CERN.py
+2
-2
No files found.
gargantext/util/parsers/CERN.py
View file @
baa9ad11
...
@@ -70,9 +70,9 @@ class CernParser(Parser):
...
@@ -70,9 +70,9 @@ class CernParser(Parser):
#print(soup.find("record"))
#print(soup.find("record"))
for
record
in
soup
.
find_all
(
"record"
):
for
record
in
soup
.
find_all
(
"record"
):
hyperdata
=
{
v
:[]
for
v
in
self
.
MARC21
[
"100"
]
.
values
()}
hyperdata
=
{
v
:[]
for
v
in
self
.
MARC21
[
"100"
]
.
values
()}
hyperdata
[
"uid"
]
=
soup
.
find
(
"controlfield"
)
.
text
hyperdata
[
"uid"
]
=
record
.
find
(
"controlfield"
)
.
text
hyperdata
[
"language_iso2"
]
=
"en"
hyperdata
[
"language_iso2"
]
=
"en"
for
data
in
soup
.
find_all
(
"datafield"
):
for
data
in
record
.
find_all
(
"datafield"
):
tag
=
data
.
get
(
"tag"
)
tag
=
data
.
get
(
"tag"
)
if
tag
in
self
.
MARC21
.
keys
():
if
tag
in
self
.
MARC21
.
keys
():
for
sub
in
data
.
find_all
(
"subfield"
):
for
sub
in
data
.
find_all
(
"subfield"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment