From 6b2b08cd1b80ee645e58128aebe320be6e5a47d7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 5 Mar 2011 04:28:54 +0000 Subject: [PATCH] Group library support for Timeline --- components/zotero-protocol-handler.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/zotero-protocol-handler.js b/components/zotero-protocol-handler.js index 219b5c3253..a842ddf4a5 100644 --- a/components/zotero-protocol-handler.js +++ b/components/zotero-protocol-handler.js @@ -608,7 +608,7 @@ function ChromeExtensionHandler() { mimeType = 'text/html'; var [type, id] = pathParts; - + if(!timelineDate){ timelineDate=Date(); var dateParts=timelineDate.toString().split(' '); @@ -648,7 +648,7 @@ function ChromeExtensionHandler() { var d = ''; //passes information (type,ids, dateType) for when the XML is created if(!type || (type != 'collection' && type != 'search')) { - d += 'library'; + d += 'library' + (id ? "/" + id : ""); } else { d += type + '/' + id; @@ -682,6 +682,7 @@ function ChromeExtensionHandler() { default: type = 'library'; var s = new Zotero.Search(); + s.addCondition('libraryID', 'is', id ? id : null); s.addCondition('noChildren', 'true'); var ids = s.search(); var results = Zotero.Items.get(ids);