Import adds PDF link *and* URL to file entry

I don’t know when it started, but at some point when importing a new entry (either with the arXiv downloader within JabRef or the browser extension), the file entry contains both the link to the PDF and the URL. On PC this does not matter, but when I try to open the PDF on my iPad using the .bib, the I app am using gets confused as it think its the whole file entry which is the link to the PDF. This is new behaviour. I just want the PDF link in the file entry. I can’t find anything in the settings which would allow be to turn off the URL in the file entry.

Example:

Removing everything after PDF fixes the issue.

Hi,

Indeed, this is fairly new and was requested and implemented by @ror3d and refs:

Maybe we can add a settings switch to toggle this behavior?

So that’s the use case for including the link in the file name. Thanks for sharing. This does seem like a good feature to have, I’m just in an edge case where it’s a hinderance.

I fully support adding a switch to toggle this behaviour. Hopefully it’s not too hard to implement.

@orionpilot Which iPad app do you use?

We have a discussion whether we should refactor the file field (Refactor BibTeX file field · Issue #98 · JabRef/jabref · GitHub). TL;DR: The pro side is, the file field could be more clean. The con side is that all aplications need to adapt…

In the concrete issue, JabRef’s behavior can be adapted to write a file field compatible with the iPad app.

Fix by @Siedlerchr: Add pref switch to not store url by Siedlerchr · Pull Request #11735 · JabRef/jabref · GitHub

@orionpilot You can now try the latest development version:

https://builds.jabref.org/main/

You can disable the feature in the preferences under Web Search “Keep downloaded url”

1 Like

I use this app. Since JabRef is built on the bib file, I wanted something that also relies on the bib and this app fits that very well. I link the same folder (on the cloud) where my JabRef stores my PDFs and the app can find them. I will note that the app already works if there are more than 1 PDF linked in an entry.

The app does explicitly call out JabRef regarding using the file field to find the attachments.

1 Like

That was quick! And I’ve tested it and it works as expected!

While testing I’ve found that the app tries to find the PDF under its default name. However when I import the file, it gets auto-renamed to my preferred format. Without the auto-rename this may not have been noticed.

In the example above, the PDF has the name between Full Text PDF and .pdf:PDF. But the app is trying to find the name between articles/<name>.pdf.

Okay, which app are you using? I don’t know how it works but jabref file format is pretty much
Description:path to full text.pdf:FileType

It’s called References. More info in this reply.

I think you should submit feedback to the developer References | Benjamin Burton (maybe even link to this thread)

Seems like they are not parsing the file field correctly:

This is JabRef’s implementation for writing the file field to bibtex: jabref/src/main/java/org/jabref/logic/bibtex/FileFieldWriter.java at 14ba56d8ce19b80a53b1a22b10bb2d9da783f29a · JabRef/jabref · GitHub

(We also have corresponding tests)
The counterpart would be the parser:

1 Like

Understood, thanks for the info! I have submitted feedback to the developer and linked to this thread. I will update once I hear back.

The app developer has seen my email and will fix the parsing issue @Siedlerchr mentioned above in the next app update, expected to be released soon. I will update this thread once the update has been published and I have tested it.

1 Like

References v3.4 released 2024-09-13 fixes this issue. I have tested it and it works. The app can now find the PDF when the URL is included in the file entry. Even with this fix, I am happy that the next JabRef version will include a toggle for this behaviour.

Thank you all for the help and the quick turnaround!

1 Like