Xunius / Menotexport

Python solution to export annotations from your Mendeley library.
GNU General Public License v3.0
124 stars 20 forks source link

Keep Folder Structure for Zotero #15

Open StRuoff opened 7 years ago

StRuoff commented 7 years ago

After I was able to pull all the Highlighting and Folders with the pdfs from Mendeley, I wanted to export it to Zotero. I did so by .ris and .bib files and Zotero found all the data (pdfs, comments, highlights). But I just got one big collection (as "folders" are called in Zotero). Maybe I missed it (after reading all Info about Menotexport), but it seems as Zotero is not able to read the {folder} tag from the bib/ris file to create a new collection. Is this feature in menotexport or does Zotero just not support such kind of importing bib/ris files?

Xunius commented 7 years ago

Hi, I can't tell you now. Give me a couple of days and let me test it out. Thanks for the input!

kjnez commented 6 years ago

Hi, I also think keeping the folder structure is very important. I used the GUI tool to export and after importing into zotero the folder structure got lost. Hope you can solve this problem.

Thanks for your work!

Xunius commented 6 years ago

Geez I completely forgot about this. Will have a look and see what I can do

Xunius commented 6 years ago

Hi both, a quick update: I was informed by the Zotero people that this is possible, but that would require a different format of the exported bibliography data other than .bib or .ris.. I need bit more time to learn this new format, and test it out first, so a tedious workaround for now is

  1. export the sub-folders (SubFolder1, SubFolder2, SubFolder3 ...) separately of a parent folder (e.g. ParentFolder1) in Mendeley
  2. import the subfolders to Zotero
  3. Create the parent folder ParentFolder1 by hand in Zotero
  4. Drag n drop the imported subfolders (called collections following Zotero's naming) under ParentFolder1, so you get the original structure.

This is apparently not ideal, and I will try to add the supported format to easy it.