Export of all subcollections of a collection

I would like to export the contents of all subcollections of a collection.

At
http://forums.zotero.org/discussion/9102/
I read that for this you have to enable "recursive collections".
But if you do, then you also will *see* all the papers in the subcollections
during browsing -- which makes subcollections less useful:
I keep general papers here and not-yet-subcategorized papers.

For me it would make sense to have an option that enables
"recursive collections" only for exporting. (Especially for exporting
to bibtex.)

Do others have the same problem? And if so, would it be difficult
to implement?

Lars
  • One work-around would be to make a saved search of items where the collection is the parent collection you want to export and to select "search subfolders".

    I personally think that having a "recurse-on-export-only" option would be needlessly confusing & relatively pointless. But it might be useful to be able to select multiple collections in the left-most pane. Or it might be useful to be able to toggle the recursive setting more easily (as suggested in https://www.zotero.org/trac/ticket/493).
  • a saved search would have to be done for every category you want
    to export. this is annoying.

    I do not know how others use the categories. But I try to have
    fine-grained subcategories with 10-20 papers each and a narrow
    topic. This is great for browsing and organisation. But if one writes
    a paper, one seldom needs such a narrow bibliography. The supercategory
    is the right granularity for the export.

    The "recursive collection" option does not solve this problem as pointed
    out in my original post -- so even if you make it more easily accessible
    (it is sufficient accessible for me...), it would not help. (By the way,
    the option seems only to make the display recursive, but not the export).

    What would be helpful is an option for "recursive export", even if it is not
    among the visible preferences, but just a hidden one.

    Another work-around could be to export the whole group library. But if
    I understand it correctly this is not possible either (one only can export the
    whole "My Library") ?

    - Lars
  • edited June 18, 2010
    I don't see any problem here that's not solved by either more accessible recursiveCollections or multiple collection selection. Export is not going to export something other than what's visible in the UI.
  • As said: a more accessible "recursiveCollections" does not solve the problem
    at all. (because then you would always *see* all the papers in the subcollection,
    which is not what I want -- the very reason for the subcollections is to organize
    a collection that became too large).

    Multiple collection selection would mitigate the problem to some extent, but
    still be less user-friendly than the "recursive export" option. Just imagine:
    with the option, I have to enable it once and can forget about it. With the
    multiple collection selection every time I have to export a paper (= every time
    I added a reference and want to rebuild my latex file, so lots of times a day),
    I have to remember to select the folder and all of its subfolders.

    I agree that multiple collection selection is useful in many other circumstances
    and a nice feature to have. But the "recursive export option" seems to be simpler
    to me and more useful for the problem of (bibtex) exports.

    - lars

    p.s. thinking about doing the bibtex export manually every time, it would be great
    to have a commandline script that exports given folders to bibtex without user
    interaction. I could imagine something like
    zotero2bibtex [-r] <collection>*
    that exports all the given collections to stdout (needless to say: "-r" is for
    recursive exports ;) ).-- this could be the "wordprocessor plugin for latex" that
    others have been looking for already:
    http://forums.zotero.org/discussion/146/integration-with-latex/
  • a more accessible "recursiveCollections" does not solve the problem
    at all. (because then you would always *see* all the papers in the subcollection,
    which is not what I want -- the very reason for the subcollections is to organize
    a collection that became too large).
    But if the setting were more accessible, you'd be able to toggle it back after an export more easily.
    Multiple collection selection would mitigate the problem to some extent, but still be less user-friendly than the "recursive export" option.
    I don't see how it is less user friendly to be able to export exactly what, as Dan notes, is visible in the UI. Especially when "export" isn't the only action someone may wish to perform. What about report generation, bibliography generation, mass tagging, etc.? If there was a "recursive export" option, wouldn't we need options also for each of these?
    But the "recursive export option" seems to be simpler to me and more useful for the problem of (bibtex) exports.
    BibTeX will happily handle databases that have entries that are not used. Why not export your entire library?
    p.s. thinking about doing the bibtex export manually every time, it would be great to have a commandline script that exports given folders to bibtex without user interaction.
    http://www.curiousjason.com/zoterotobibtex.html
    this could be the "wordprocessor plugin for latex" that others have been looking for already: http://forums.zotero.org/discussion/146/integration-with-latex/
    See also the lytero plugin.
  • I have the same issue as Ist!

    I want to export whole (sub)collections with their subcollections, but do not want to see recursively always every entry. I expected, that if I right click on a collection folder I am able to export all containing entries. But I only get the entries in the parent folder in the resulting bibtex-file. This is not intuitive. (Changing the recursive property does not change this behaviour although you can see all entries below...)
  • +1 I agree, it would be a useful feature to be able to export a collection WITH it's subcollections.
  • edited August 8, 2011
    +1 Just a tickbox saying "include all subcollections" would be fine for me.
    But for now multiple selection will do, thanks for that.

    Actually, I have no idea how to "multiple select" my (sub)collections. Ctrl (or shift) - click doesn't work in collections.
  • It is truly counterintuitive, but I worked around it by creating a subcollection: "uncategorized" in each collection, so that I can view only those, the top folder needs to stay empty, the same has to be done everytime I create a subcollection or subsubcollection.

    When viewing the top collection I see all items of all subcollections, when I right-click and export to bibtex, it exports not a single entry, because the top-folder is empty, I have to mark all entries in the right window and "export items"
  • +1 - would be a great addition
  • Hello

    if you only want to export the collections as file (and not as bibliography), you can use my addon Zotero autoexport. From this version it allows to export in batch mode collections, subcollections, saved searchs and group searchs. Automatically or manually like you want. For starting the batch export click in the Zotero menu to the new command Export collections.. then you are able to select destination, filetype, etc.

    For any suggestions or help, do not hesitate to contact me!
    Robert
  • Hey Robert, thanks for your suggestions. As of now I'm a Chrome user, but I'll look into the Firefox tool that you've developed!

    Cheers,
    Andreas
  • haven't tested this for autoexport, but most Zotero extensions also work in Standalone (download the .xpi --> Tools-->add-ons --> Install from file).
  • Has this been resolved? I also need this feature, and Lars's arguments are compelling. I'm guessing a lot of people (myself included) do this exact thing: have a collection for a broad research topic ("causal inference") and then a bunch of sub-collections ("experimental," "machine learning," "observational," "preprocessing," etc.) and then you just want to export the whole thing and let bibtex take care of picking out the right papers.
  • no changes in Zotero, no; the easiest way is still to toggle recursive collections, select all, and export.

    I think most people just use Better BibTeX to keep a full (or partial) database in sync with a .bib file.
Sign In or Register to comment.