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

Extract all affiliations for each author #162

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

ZhangWoW123
Copy link
Contributor

Fix the issue where the medline_parser.parse_author_affiliation function will only extract the first affiliation. Now the function will extract all the affiliation for each author and use pipe | to concatenate them.

For example, if the XML file is

<Author ValidYN="Y">
  <LastName>Horvath</LastName>
  <ForeName>Hacsi</ForeName>
  <Initials>H</Initials>
  <AffiliationInfo>
    <Affiliation>My 1st affiliation</Affiliation>
  </AffiliationInfo>
  <AffiliationInfo>
    <Affiliation>My 2nd affiliation</Affiliation>
  </AffiliationInfo>
  <AffiliationInfo>
    <Affiliation>My 3rd affiliation</Affiliation>
  </AffiliationInfo>
</Author>

Then the affiliation for this author will be

My 1st affiliation|My 2nd affiliation|My 3rd affiliation

@Michael-E-Rose Michael-E-Rose merged commit b2d0402 into titipata:master Oct 29, 2024
0 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants