Revision: 21921 http://sourceforge.net/p/bibdesk/svn/21921 Author: hofman Date: 2018-02-13 17:45:37 +0000 (Tue, 13 Feb 2018) Log Message: ----------- search for meta element directly in head
Modified Paths: -------------- trunk/bibdesk/BDSKACMDLParser.m trunk/bibdesk/BDSKScienceDirectParser.m Modified: trunk/bibdesk/BDSKACMDLParser.m =================================================================== --- trunk/bibdesk/BDSKACMDLParser.m 2018-02-13 17:40:08 UTC (rev 21920) +++ trunk/bibdesk/BDSKACMDLParser.m 2018-02-13 17:45:37 UTC (rev 21921) @@ -45,7 +45,7 @@ + (NSString *)host { return @"dl.acm.org"; } -+ (NSString *)linkedBibTeXNodeXPath { return @".//meta[@name='citation_abstract_html_url']/@content"; } ++ (NSString *)linkedBibTeXNodeXPath { return @"./head/meta[@name='citation_abstract_html_url']/@content"; } + (NSString *)linkedBibTeXURLStringFromNode:(NSXMLNode *)node { NSString *nodeString = [node stringValue]; Modified: trunk/bibdesk/BDSKScienceDirectParser.m =================================================================== --- trunk/bibdesk/BDSKScienceDirectParser.m 2018-02-13 17:40:08 UTC (rev 21920) +++ trunk/bibdesk/BDSKScienceDirectParser.m 2018-02-13 17:45:37 UTC (rev 21921) @@ -43,7 +43,7 @@ + (NSString *)host { return @"www.sciencedirect.com"; } -+ (NSString *)linkedBibTeXNodeXPath { return @".//meta[@name='citation_pii']"; } ++ (NSString *)linkedBibTeXNodeXPath { return @"./head/meta[@name='citation_pii']"; } + (NSString *)linkedBibTeXURLStringFromNode:(NSXMLNode *)node { NSString *piiValue = [node stringValueOfAttribute:@"content"]; 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 Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit