Permalink
Browse files

add library to list of groups to extract

  • Loading branch information...
1 parent 34bb6b2 commit 5bf56635bacb2c418d4eeedc32f7ef4ccf8ebcd1 @corajr corajr committed Sep 17, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 chrome/content/papermachines/papermachines.js
@@ -605,8 +605,11 @@ Zotero.PaperMachines = {
var itemGroups = [];
if ("isLibrary" in itemGroup && itemGroup.isLibrary()) {
if (itemGroup.id == "L") {
+ itemGroups.push(ZoteroPane.collectionsView._dataItems[0][0]);
var collectionKeys = Zotero.DB.columnQuery("SELECT key from collections WHERE libraryID IS NULL;");
- itemGroups = collectionKeys.map(function(d) { return Zotero.Collections.getByLibraryAndKey(null, d); });
+ if (collectionKeys) {
+ itemGroups = collectionKeys.map(function(d) { return Zotero.Collections.getByLibraryAndKey(null, d); });
+ }
}
} else {
if ("isCollection" in itemGroup && itemGroup.isCollection()) {

0 comments on commit 5bf5663

Please sign in to comment.