Fixes #1470 and makes sure the requested XML url is clean.
This commit is contained in:
parent
3ca64f746a
commit
8437a55e3e
1 changed files with 9 additions and 3 deletions
|
@ -551,11 +551,16 @@ function ChromeExtensionHandler() {
|
|||
var d = '';
|
||||
//passes information (type,ids, dateType) for when the XML is created
|
||||
if(!type || (type != 'collection' && type != 'search')) {
|
||||
d += 'library?t=' + dateType;
|
||||
d += 'library';
|
||||
}
|
||||
else {
|
||||
d += type + '/' + id + '?t=' + dateType;
|
||||
d += type + '/' + id;
|
||||
}
|
||||
|
||||
if(dateType) {
|
||||
d += '?t=' + dateType;
|
||||
}
|
||||
|
||||
content = content.replace(theTemp, theTemp + d);
|
||||
|
||||
|
||||
|
@ -576,7 +581,8 @@ function ChromeExtensionHandler() {
|
|||
break;
|
||||
|
||||
case 'search':
|
||||
var s = new Zotero.Search(ids);
|
||||
var s = new Zotero.Search();
|
||||
s.id = ids;
|
||||
var ids = s.search();
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue