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

Elsevier hepcrawl: parser parses twice the same affiliation #215

Open
ErnestaP opened this issue Oct 23, 2023 · 0 comments
Open

Elsevier hepcrawl: parser parses twice the same affiliation #215

ErnestaP opened this issue Oct 23, 2023 · 0 comments
Assignees

Comments

@ErnestaP
Copy link

ErnestaP commented Oct 23, 2023

XML file has the same affiliation mentioned twice:

 <ce:affiliation id="aff0760"
                        affiliation-id="S0370269323005798-47d5dbba09b0bd9431eed98216197c7a">
                        <ce:label>bz</ce:label>
                        <ce:textfn>University of Turin and INFN, I-10125, Turin, Italy</ce:textfn>
                        <sa:affiliation>
                            <sa:organization>University of Turin</sa:organization>
                            <sa:organization>INFN</sa:organization>
                            <sa:city>Turin</sa:city>
                            <sa:postal-code>I-10125</sa:postal-code>
                            <sa:country>Italy</sa:country>
                        </sa:affiliation>
                        <ce:source-text id="srct0390">University of Turin and INFN, (C)INFN,
                            I-10125, Turin, Italy</ce:source-text>
  </ce:affiliation>

and

<ce:affiliation id="aff0780"
                        affiliation-id="S0370269323005798-47d5dbba09b0bd9431eed98216197c7a">
                        <ce:label>bx</ce:label>
                        <ce:textfn>University of Turin and INFN, I-10125, Turin, Italy</ce:textfn>
                        <sa:affiliation>
                            <sa:organization>University of Turin</sa:organization>
                            <sa:organization>INFN</sa:organization>
                            <sa:city>Turin</sa:city>
                            <sa:postal-code>I-10125</sa:postal-code>
                            <sa:country>Italy</sa:country>
                        </sa:affiliation>
                        <ce:source-text id="srct0380">University of Turin and INFN, (A)University of
                            Turin, I-10125, Turin, Italy</ce:source-text>
                    </ce:affiliation>

and then we have an author:

<ce:author id="au0190"
                        author-id="S0370269323005798-b3038b43e63d20193d6435921f446ab8">
                        <ce:given-name>E.</ce:given-name>
                        <ce:surname>Bianco</ce:surname>
                        <ce:cross-ref refid="aff0780" id="crf0250">
                            <ce:sup>bx</ce:sup>
                        </ce:cross-ref>
                        <ce:cross-ref refid="aff0760" id="crf0260">
                            <ce:sup>bz</ce:sup>
                        </ce:cross-ref>
        </ce:author>

It breaks our validation.
Parser source code:
https://github.com/SCOAP3/hepcrawl/blob/master/hepcrawl/extractors/s3_elsevier_parser.py#L181-L182

@ErnestaP ErnestaP changed the title Elsevier hepcrawl: halts article with similar affiliation value Elsevier hepcrawl: parser parses twice the same affiliation Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants