Group library support for Timeline
This commit is contained in:
parent
f94242f7ad
commit
6b2b08cd1b
1 changed files with 3 additions and 2 deletions
|
@ -648,7 +648,7 @@ function ChromeExtensionHandler() {
|
||||||
var d = '';
|
var d = '';
|
||||||
//passes information (type,ids, dateType) for when the XML is created
|
//passes information (type,ids, dateType) for when the XML is created
|
||||||
if(!type || (type != 'collection' && type != 'search')) {
|
if(!type || (type != 'collection' && type != 'search')) {
|
||||||
d += 'library';
|
d += 'library' + (id ? "/" + id : "");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
d += type + '/' + id;
|
d += type + '/' + id;
|
||||||
|
@ -682,6 +682,7 @@ function ChromeExtensionHandler() {
|
||||||
default:
|
default:
|
||||||
type = 'library';
|
type = 'library';
|
||||||
var s = new Zotero.Search();
|
var s = new Zotero.Search();
|
||||||
|
s.addCondition('libraryID', 'is', id ? id : null);
|
||||||
s.addCondition('noChildren', 'true');
|
s.addCondition('noChildren', 'true');
|
||||||
var ids = s.search();
|
var ids = s.search();
|
||||||
var results = Zotero.Items.get(ids);
|
var results = Zotero.Items.get(ids);
|
||||||
|
|
Loading…
Reference in a new issue