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

Create "File Magic Wizard" #380

Closed
koppor opened this issue Nov 24, 2019 · 4 comments
Closed

Create "File Magic Wizard" #380

koppor opened this issue Nov 24, 2019 · 4 comments

Comments

@koppor
Copy link
Owner

koppor commented Nov 24, 2019

When having a large libraries, a user wants to have all possible PDFs auto-linked to the respective bib entry

  • Auto-link all files existing in the library directory
  • Download all missing files

(Source: JabRef#5216 (comment))

@flurfis
Copy link

flurfis commented Oct 21, 2020

This issue was recommended as part of our course “software engineering” from the university of Basel, and we decided to work on this issue.

But there are insecurities if we understood the issue correctly (especially the first point). So, we would like to clarify if our interpretation captures the meaning of the issue.

The File Magic Wizard allows the user to download all files from a library to the local computer of the user without creating dublicates in the target directory.
Concerning the point: “Auto-link all files existing in the library directory”
We understood it this way:

  • If a new library is created in JabRef, there will be a new field variable (related to the library) which contains a list with all links of the “download-source” from all files in the library.

  • Every time a new BibEntry is added to the library, the corresponding link is added to the list.

  • This list exists in case the whole library needs to be downloaded, so it is not necessary to iterate through the whole library.

  • The user can not view this list.

Thanks in advance!

@koppor
Copy link
Owner Author

koppor commented Oct 22, 2020

Please think of a researcher having a .bib file with 1000 entries and 850 PDFs on his hard disk. He wants to be "quickly" be able to manage that chaos.

Example:

  • Bib Entry A - no file attached (exists on hard disk)
  • Bib Entry B - no file attached (does not exist on hard disk, but entry has DOI set)
  • Bib Entry C - no file attached (does not exist on hard disk, entry has not DOI set, but DOI can be derived from title)
  • Bib Entry D - no file attached (does not exist on hard disk, entry has not DOI set, DOI cannot be determined)
  • Bib Entry E - file attached (exists on hard disk)
  • Bib Entry F - file attached (does not exist on hard disk, but entry has DOI set)
  • Bib Entry G - file attached (does not exist on hard disk, entry has not DOI set, but DOI can be derived from title)
  • Bib Entry H - file attached (does not exist on hard disk, entry has not DOI set, DOI cannot be determined)

"file attached" means that the BibEntry has a file field. F to H are rare special cases.

(DOI could also be another identifier. Go into the code of JabRef and learn about document downloaders)

When executing the file wizard, the result is as follows:

  • Bib Entry A - file attached
  • Bib Entry B - file attached (was downloaded automatically, entry has DOI set)
  • Bib Entry C - file attached (was downloaded automatically, entry has DOI set)
  • Bib Entry D - no file attached
  • Bib Entry E - file attached (exists on hard disk)
  • Bib Entry F - file attached (was downloaded automatically, entry has DOI set, content of file field updated)
  • Bib Entry G - file attached (was downloaded automatically, entry has DOI set, content of file field updated)
  • Bib Entry H - no file field anymore

Log contains INFO entries on the actions done.

Your first assumption does not hold as JabRef does not (or seldomly) stores the URL location (typically)

Can you craft an exmaple with concrete BibTeX entries A to H and respetive files or would you need support for that? You find some bib entries at https://github.com/JabRef/jabref/blob/master/src/test/resources/testbib/jabref-authors.bib.

You should find some existing test case in the source when searchign for unlinkedFilesTestBib.bib (use Ctrl+Shift+F)

https://github.com/JabRef/jabref/blob/master/src/test/resources/org/jabref/util/unlinkedFilesTestBib.bib

In other words

Another example

The use case is an existing library, which should be quality-improved by JabRef.

Think about a .bib file with 1000 entries and a folder structure as follows:

grafik

grafik

Now, the user has nonono clue, if a PDF is linked in the bib file.

It is important that the Wizard can be rerun and the wizard (seems to) rember the old state.

I especially remind on VDI 90, S16.ff:

Inkrementelle Aufgabenbearbeitung ermögichen

(even though the text there describes a slightly different scenario. Nevertheless, I want to do some quality control on the process. Don't have the time to handle 4500 PDFs in one run)

@koppor
Copy link
Owner Author

koppor commented Nov 3, 2020

The issue JabRef#4652 describes an improved UI for displaying unlinked files.

@koppor
Copy link
Owner Author

koppor commented Jan 4, 2021

We keep the distinction between online search and local disk search. No File Magic Wizard will appear.

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