JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.53k stars 2.47k forks source link

Show a progress indicator when dragging and dropping PDF files to JabRef #8738

Open claell opened 2 years ago

claell commented 2 years ago

Is your suggestion for improvement related to a problem? Please describe. When I drag a PDF document into JabRef, it often takes time for it to process it. I also have experienced exceptions for that operation.

Describe the solution you'd like In general, I like to see some indicator that something is going on in the background (especially when dragging more than one file to the window).

Additional context I think that Citavi has this (might not be ideal, either, but at least it is there).

claell commented 2 years ago

@Siedlerchr another useful label for this is probably ui.

claell commented 2 years ago

Apparently, there is already a UI element for background tasks. Possibly, that can be extended. grafik

Yu0404531 commented 1 year ago

Hi , I'm a new contributor — could you please give me a permission so I can view and modify the code ?

Yu0404531 commented 1 year ago

Ues “Jabref/logic/pdg/search/indexing/indexingTaskManager “ UI to Display “Jabref/gui/util ”TableRowFactory process bar. It this way ok?

Ravitwr commented 1 year ago

Could I be assigned this task?

ThiloteE commented 1 year ago

@Ravitwr thanks for your enthusiasm and commitment to JabRef. I have seen that you asked to be assigned to multiple issues. Just give a word, if you think you will not manage to work on or fix all of them, then I will unassign you. That way other people will know, the issue is "free to take"

Ravitwr commented 1 year ago

Hi @claell , I tried dragging and dropping some files (30+) at the same. The process was almost instantaneous. Are there any specific files which causes problem.

claell commented 1 year ago

@Ravitwr Thanks for looking into this. I don't know specific files right now, let me check.

claell commented 1 year ago

The behavior seems to have improved from 5.7 to 5.9. I still had 5.7 installed and there, if I saw it correctly, the GUI was frozen after dropping something there. After updating to 5.9 later, the GUI is no longer frozen, and potentially, also the addition of the entry is faster (might just be subjective).

claell commented 1 year ago

Just tested again with a larger bunch of over thirty book PDFs. There, it really takes a long time (still not finished, in fact). Each entry takes from few seconds to maybe even half a minute to be added subsequently. The books sometimes have several hundred pages.

claell commented 1 year ago

Let me know if you need more specific details in order to be able to reproduce.

Ravitwr commented 1 year ago

@claell Thanks for the input. Earlier I was trying to enter the files which didn't had the metadata therefore it was much faster. I am able to reproduce the problem with some other files. Will try to add the progress indicator.

koppor commented 5 months ago

Pre-condition to reproduce is to enable online-processing of PDFs:

Ensure that using GROBID is enabled:

image

koppor commented 5 months ago

Implementation hint: