Revision: 22517
http://sourceforge.net/p/bibdesk/svn/22517
Author: hofman
Date: 2018-08-23 21:07:11 +0000 (Thu, 23 Aug 2018)
Log Message:
-----------
rename xpath variable
Modified Paths:
--------------
trunk/bibdesk/BDSKArxivParser.m
Modified: trunk/bibdesk/BDSKArxivParser.m
===================================================================
--- trunk/bibdesk/BDSKArxivParser.m 2018-08-23 13:51:12 UTC (rev 22516)
+++ trunk/bibdesk/BDSKArxivParser.m 2018-08-23 21:07:11 UTC (rev 22517)
@@ -97,7 +97,7 @@
DOMXPathExpression *arxivIDNodePath = nil;
DOMXPathExpression *pdfURLNodePath = nil;
DOMXPathExpression *doiNodePath = nil;
- DOMXPathExpression *arxivNodePath = nil;
+ DOMXPathExpression *arxivMetaNodePath = nil;
DOMXPathExpression *titleNodePath = nil;
DOMXPathExpression *authorsNodePath = nil;
DOMXPathExpression *journalNodePath = nil;
@@ -132,7 +132,7 @@
pdfURLNodePath = [[self domDocument]
createExpression:@"./a[contains(text(),'pdf')]" resolver:nil];
doiNodePath = [[self domDocument]
createExpression:@"./div[@class='list-doi']/span/following-sibling::text()"
resolver:nil];
- arxivNodePath = [[self domDocument]
createExpression:@"./following-sibling::dd/div[@class='meta']" resolver:nil];
+ arxivMetaNodePath = [[self domDocument]
createExpression:@"./following-sibling::dd/div[@class='meta']" resolver:nil];
titleNodePath = [[self domDocument]
createExpression:@"./div[contains(concat(' ',normalize-space(@class),' '),'
list-title ')]/span/following-sibling::text()" resolver:nil];
authorsNodePath = [[self domDocument]
createExpression:@"./div[@class='list-authors']/a" resolver:nil];
@@ -221,8 +221,8 @@
}
}
- if (arxivNodePath) {
- arxivNode = [arxivSearchResult
singleNodeForXPathExpression:arxivNodePath];
+ if (arxivMetaNodePath) {
+ arxivNode = [arxivSearchResult
singleNodeForXPathExpression:arxivMetaNodePath];
} else {
arxivNode = arxivSearchResult;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit