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

Normalize and provide automatic metadata for arXiv links #1165

Open
NattyNarwhal opened this issue Mar 12, 2023 · 2 comments
Open

Normalize and provide automatic metadata for arXiv links #1165

NattyNarwhal opened this issue Mar 12, 2023 · 2 comments

Comments

@NattyNarwhal
Copy link
Contributor

If I post an arXiv link, there's some concerns:

  • The summary link vs. the PDF link, which should be used?
  • You have to copy and paste the summary for a PDF to have working abstracts for people who have descriptions inline.
  • If you're posting a PDF link, you probably want to post a link back to the summary for more detail

I propose special-case handling for arXiv. arXiv exposes an API. We can extract the ID from the link, and generate a query URL that returns the metadata in a structured form (i.e. http://export.arxiv.org/api/query?id_list=2303.05498&max_results=1 from the original URL https://arxiv.org/pdf/2303.05498.pdf). It outputs slightly spicy Atom. We can use that to extract the summary for a PDF link, include a link to the summary in the article body, add a year in the title if the paper isn't from the current year, and link the PDF.

@pushcx
Copy link
Member

pushcx commented Mar 12, 2023

Sounds like a great quality-of-life feature, we get a lot of links to arXiv.

Whoever picks this up - start from StoriesController. the fetch_url_attributes action. It's the endpoint powering the Fetch Title button.

Huh. That has me wondering if the Fetch Title button works for users with js disabled. From a glance at the action, probably not. That'd be a nice improvement as part of this, and off the top of my head it might be as easy as having that button submit to the preview action.

@pushcx
Copy link
Member

pushcx commented Feb 15, 2024

Recognizing duplicate/alternate links was handled in #965 / 9041e3d. These other features would still be nice improvements!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants