Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P
pubmed
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 2
    • Issues 2
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • crawlers
  • pubmed
  • Merge Requests
  • !1

Closed
Opened May 23, 2019 by Mael NICOLAS@mudada
  • Report abuse
Report abuse

Fix #1

Error Origin

there is multiple types of xml that can be send back via the fetch function.

type1:

<PubmedArticleSet>
    <PubmedArticle>
...

type2:

<PubmedArticleSet>\n
    <PubmedBookArticle>\n
...

As you can see the type2 isn't formatted the same way as type1, which caused error since we used force on the parser.

Fix

tagIgnoreAttrs switched to manyTagsUntil so type2 doesn't create an error anymore only an empty result.

Edited May 28, 2019 by Mael NICOLAS

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b search-fetch-parse origin/search-fetch-parse

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout origin/dev
git merge --no-ff search-fetch-parse

Step 4. Push the result of the merge to GitLab

git push origin dev

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 0
  • Commits 7
  • Changes 13
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/crawlers/pubmed!1