BeelGroup / Docear-Desktop

Docear's desktop version (GPL)
298 stars 90 forks source link

fixed Mendeley and Zotero BibTeX file updater #294

Open stlanger opened 10 years ago

stlanger commented 10 years ago

see email (especially the provided BibTeX file) "Fwd: Forum post - Re: The file "E" is used ambiguously in your references database" received on January 7th, 2014 at 2:22 pm

see also forum thread to this email: http://www.docear.org/support/forums/docear-support-forums-group3/bug-reports-forum6/docear-doesnt-open-after-latest-download-thread95/

there are several things to fix

  1. while our BibTeX pre-processor parses and changes the entries in order to make the BibTeX file compatible to JabRef, a lot of map updaters fire. This is extremely slow. (fixed by https://github.com/Docear/Desktop/commit/7791277d72c223b10860103b22da743dcc2ef69f)
  2. the BibTeX file provided was created using Zotero, but our BibTeX pre-processor recognizes it as a Mendeley file --> I think that's why backslashes in file paths are not escaped correctly
  3. multiple dialogs open telling the user about ambigous file definitions. There should only be one and an option to discard all changes
stlanger commented 10 years ago

regarding 1., a small excerpt of the log with the map updaters firing INFO: updating view for map: Unsaved map: "literature_and_annotations.mm" Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: resetting folding complete: 0 Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: updating view for map: Unsaved map: "literature_and_annotations.mm" Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: resetting folding complete: 0 Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: updating view for map: Unsaved map: "literature_and_annotations.mm" Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: resetting folding complete: 0 Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: updating view for map: Unsaved map: "literature_and_annotations.mm" Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: resetting folding complete: 0 Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: updating view for map: Unsaved map: "literature_and_annotations.mm" Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: resetting folding complete: 0 Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: updating view for map: Unsaved map: "literature_and_annotations.mm" Jan 8, 2014 1:41:52 PM org.freeplane.core.util.LogUtils info INFO: resetting folding complete: 0

Joeran commented 10 years ago

let the user select a checkbox to ignore these problems in the future. in this case, use the first match for actions like assigning bibtex data to PDFs.

genzmehr commented 10 years ago

see: http://www.docear.org/support/forums/docear-support-forums-group3/bug-reports-forum6/docear-1-02-freezes-when-adding-new-references-thread756/ and also mail title: "Docear 1.02 freezes when adding new references"

stlanger commented 10 years ago

see also attached BibTeX file in email "Bib problems" received on Feb 5, 2014

stlanger commented 10 years ago
file = {Schichtdickenmessgerät TM-8810 SD7: Amazon.de: Baumarkt:E\:\\documents\\EOS\\09_Wissensdatenbank\\00_Literaturdatenbank\\storage\\PSTMC5ZT\\B00473W5HW.html:text/html;Schichtdickenmessgerät Ultraschall TM-8812 SD9: Amazon.de: Baumarkt:E\:\\documents\\EOS\\09_Wissensdatenbank\\00_Literaturdatenbank\\storage\\BAUPBK8A\\ref=pd_sim_sbs_diy_1.html:text/html},

is recognized as a file "Amazon.de"

stlanger commented 10 years ago

JabRef expects all file fields to have the following format: file = {<DESCRIPTION>:<FILELINK>:<TYPE>} (i.e. the actual link at the 2nd position)

however Zotero does not escape any colons, so from this entry: file = {Femto-LASIK Professionals :: Der Femtosekundenlaser :: Der Intralase Femtosekunden Laser beim Einsatz: Femto-LASIK:E:\documents\EOS\09_Wissensdatenbank\00_Literaturdatenbank\storage\CMVG8MHT\intralase.html:text/html} JabRef extracts an empty string as the file link

stlanger commented 10 years ago

multiple: issues with mendeley files:

stlanger commented 10 years ago

spaces should not be escaped using "; " - in current versions of JabRef there is no way to define multiple urls and urls like "Go to ISI" (see above) would also be translated to "Go; to; ISI"

instead we should implement into JabRef that url fields are separated using ";" and " " and then either open both URLs or just the first

I don't know what <Go to ISI> means - even Mendeley does not work correctly with it: image

stlanger commented 10 years ago

something is not working: during testing i broke another Bib-file in my "Testing"-project