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: loss of formatting in abstract #57

Open
csgrant00 opened this issue Aug 4, 2023 · 4 comments
Open

Elsevier: loss of formatting in abstract #57

csgrant00 opened this issue Aug 4, 2023 · 4 comments

Comments

@csgrant00
Copy link
Contributor

csgrant00 commented Aug 4, 2023

/proj/ads/abstracts/data/ELS/CONSYN.AST/2023/ELS.080423/2214-5524/S2214552423X00030/S2214552423000275/S2214552423000275.xml

@seasidesparrow
Copy link
Member

The bulleted points at the end of the article are being demarked with &bull;, but without a preceeding <p> or <br>. The Elsevier XML has these elements embedded in a <ce: list>/<ce: list-item> tree, so there are no explicit line breaks; the list elements specify paragraph breaks for each bullet.

Are paragraph tags allowed in abstracts, @csgrant00 ?

@csgrant00
Copy link
Contributor Author

I think so, at least I think they should be. I'll try to check...

@seasidesparrow seasidesparrow transferred this issue from adsabs/ADSManualParser Aug 7, 2023
@seasidesparrow
Copy link
Member

This can be addressed by updating this line of code to link the two pieces of text with a "\n" rather than an empty space:

abstract = abstract + " " + abs_text.get_text()

@seasidesparrow
Copy link
Member

Will also require either removing the call to self._clean_output at the end of this block, or an upstream change to base parser here:

def _clean_output(self, input):

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