mirror of
https://github.com/zotero/zotero.git
synced 2026-10-12 03:48:16 +00:00
Group library support for Timeline
This commit is contained in:
parent
811ada5374
commit
82bb00b6ab
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue