jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Fetcher Infrastructure for URL-based fetching

Open koppor opened this issue 3 months ago • 32 comments

Follow-up to https://github.com/JabRef/jabref/pull/16435 / issue #15411

  • URL should be routed somehow to the new infrastructure
  • If URL is an ID, use ID-based fetcher

!! Look at implementation of Web Search Panel on the left

Test cases

  • http://dx.doi.org/10.1.1.99.3548
  • https://www.semanticscholar.org/paper/Logic-LangChain%3A-Translating-Natural-Language-to-Lalwani-Lunawat/2ad8dbc163ce289e23e9c02b324c82d9c2fe8190
  • https://api.semanticscholar.org/CorpusID:269305101
  • https://dl.acm.org/doi/epdf/10.1145/3651640.3651646
  • https://gi-radar.de/397-coding-unterstuetzung-im-lauf-der-zeit/ -- should be implemented as new fetcher

koppor avatar Aug 17 '26 21:08 koppor

/assign-me

hello-ryuzaki avatar Aug 23 '26 18:08 hello-ryuzaki

👋 Hey @hello-ryuzaki, thank you for your interest in this issue! 🎉

We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.

For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.

In case you encounter failing tests during development, please check our developer FAQs!

Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.

Happy coding! 🚀

jabref-machine avatar Aug 23 '26 18:08 jabref-machine

@koppor

Planning the routing as:

  1. Identifier.from(url) → matching ID-based fetcher (covers the ACM DOI link, and arXiv / SSRN / RFC / IACR URLs for free — those parsers already accept URLs)
  2. first UrlBasedFetcher whose isRecognizedUrl(url) returns true
  3. GenericUrlBasedFetcher as fallback

Modelling isRecognizedUrl on the existing Importer.isRecognizedFormat() — same package, consumed the same way by ImportFormatReader. Does that match what you had in mind?

Also: http://dx.doi.org/10.1.1.99.3548 isn't a valid DOI (CiteSeerX ID; the link 404s) and matches none of JabRef's DOI patterns. Should that fall back to Misc, or should a dx.doi.org host be forced to DoiFetcher so the user sees a real "DOI not found" error?

hello-ryuzaki avatar Aug 25 '26 14:08 hello-ryuzaki

Should that fall back to Misc, or should a dx.doi.org host be forced to DoiFetcher so the user sees a real "DOI not found" error?

Fallback to misc

koppor avatar Aug 26 '26 06:08 koppor

Modelling isRecognizedUrl on the existing Importer.isRecognizedFormat() — same package, consumed the same way by ImportFormatReader. Does that match what you had in mind?

What do you think? Did you think of other options?

Your text reads like AI-generated. Any own thoughts? - http://dontpastetheai.com/

koppor avatar Aug 26 '26 06:08 koppor

⏰ Assignment Reminder

Hi @hello-ryuzaki, this is a friendly reminder about your assignment to this issue.

[!WARNING] This issue will be automatically unassigned in 4 days if there's no activity.

Remember that you can ask the JabRef Guru or DeepWiki about anything regarding JabRef. Additionally, our contributing guide has hints on creating a pull request and a link to our Gitter chat.

How to keep your assignment


If you are working on it, you can prevent automatic unassignment by:

  • Submitting a draft pull request with your progress within 4 days
  • Asking for the 📌 Pinned label if you need more time

We appreciate your contribution and are here to help if needed!

github-actions[bot] avatar Aug 29 '26 12:08 github-actions[bot]

hiii threre is no activity on this issue if possible can i take this?

thesauravpoddar avatar Aug 30 '26 09:08 thesauravpoddar

Hi @thesauravpoddar, I was a bit busy and didn’t get a chance to work on it. I’ll raise the PR by tomorrow EOD. Thank you for checking!

hello-ryuzaki avatar Aug 30 '26 12:08 hello-ryuzaki

Hi @thesauravpoddar , I am not getting time to take up it this issue. You can pick it up. Sorry for inconvenience caused. Thank you!

hello-ryuzaki avatar Sep 02 '26 12:09 hello-ryuzaki

Hi @thesauravpoddar , I am not getting time to take up it this issue. You can pick it up. Sorry for inconvenience caused. Thank you!

okay un-assign yourself

thesauravpoddar avatar Sep 04 '26 16:09 thesauravpoddar

@hello-ryuzaki since you are not working on this can you please unassign yourself

thesauravpoddar avatar Sep 05 '26 10:09 thesauravpoddar

@koppor can you assign it to me as @hello-ryuzaki is not going to work on this

thesauravpoddar avatar Sep 05 '26 14:09 thesauravpoddar

⚠️ Issue Already Assigned

Hi @thesauravpoddar, this issue is currently assigned to @hello-ryuzaki.

[!NOTE] If no progress is made within ** days**, the issue will be automatically unassigned.

Options for contributors
  • Wait for availability: The issue may become available if auto-unassigned
  • Collaborate: You can ask the assignee if they want help
  • Maintainer assistance: A maintainer can add you as co-assignee if appropriate

jabref-machine avatar Sep 05 '26 14:09 jabref-machine

/unassign-me

hello-ryuzaki avatar Sep 05 '26 18:09 hello-ryuzaki

@hello-ryuzaki has been unassigned from this issue.

jabref-machine avatar Sep 05 '26 18:09 jabref-machine

/assign-me

thesauravpoddar avatar Sep 05 '26 19:09 thesauravpoddar

Thank you for your continued work in JabRef. At this point, you probably already know the basics and the important links. If not, our contributing guidelines is the place you should go to.

At this point in time, you raised 4 pull request(s) of which 100% (4/4) have been merged.

jabref-machine avatar Sep 05 '26 19:09 jabref-machine

⏰ Assignment Reminder

Hi @thesauravpoddar, this is a friendly reminder about your assignment to this issue.

[!WARNING] This issue will be automatically unassigned in 4 days if there's no activity.

Remember that you can ask the JabRef Guru or DeepWiki about anything regarding JabRef. Additionally, our contributing guide has hints on creating a pull request and a link to our Gitter chat.

How to keep your assignment


If you are working on it, you can prevent automatic unassignment by:

  • Submitting a draft pull request with your progress within 4 days
  • Asking for the 📌 Pinned label if you need more time

We appreciate your contribution and are here to help if needed!

github-actions[bot] avatar Sep 09 '26 12:09 github-actions[bot]

So i am starting to work on this so far what i have understood(thinking out loud) is that when a url is given we have to extract DOI or ID and all such stuff and if they are present than route it to existing WebFetchers.getIdBasedFetchersfetchers otherwise to new GenericUrlBasedFetcher

thesauravpoddar avatar Sep 11 '26 19:09 thesauravpoddar

📋 Assignment Update

Hi @thesauravpoddar, due to inactivity, you have been unassigned from this issue.

Next steps


If you still want to work on this:

  • Submit a pull request showing your current state. You will be automatically assigned again.
  • Ask a maintainer to assign you again.

github-actions[bot] avatar Sep 19 '26 12:09 github-actions[bot]