Tweak patch from 41de387
to keep file style consistent
This commit is contained in:
parent
41de3876d8
commit
13a2bb99e1
1 changed files with 6 additions and 6 deletions
|
@ -3369,7 +3369,7 @@ var ZoteroPane = new function()
|
|||
|
||||
for each(var item in items) {
|
||||
if (item.isRegularItem()) {
|
||||
//Prefer physical attachments (not links)
|
||||
// Prefer local file attachments
|
||||
var uri = Components.classes["@mozilla.org/network/standard-url;1"]
|
||||
.createInstance(Components.interfaces.nsIURI);
|
||||
var snapID = item.getBestAttachment();
|
||||
|
@ -3384,7 +3384,7 @@ var ZoteroPane = new function()
|
|||
}
|
||||
}
|
||||
|
||||
//fall back to URI field then DOI
|
||||
// Fall back to URI field, then DOI
|
||||
var uri = item.getField('url');
|
||||
if (!uri) {
|
||||
var doi = item.getField('DOI');
|
||||
|
@ -3397,12 +3397,12 @@ var ZoteroPane = new function()
|
|||
}
|
||||
}
|
||||
|
||||
//fall back to first link attachment
|
||||
if(!uri) {
|
||||
// Fall back to first attachment link
|
||||
if (!uri) {
|
||||
var link = item.getAttachments()[0];
|
||||
if(link) {
|
||||
if (link) {
|
||||
link = Zotero.Items.get(link);
|
||||
if(link) uri = link.getField('url');
|
||||
if (link) uri = link.getField('url');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue