Revision: 21972 http://sourceforge.net/p/bibdesk/svn/21972 Author: hofman Date: 2018-02-19 22:38:58 +0000 (Mon, 19 Feb 2018) Log Message: ----------- Spires mirrors are discontinued, so don't support them
Modified Paths: -------------- trunk/bibdesk/BDSKSpiresParser.m Modified: trunk/bibdesk/BDSKSpiresParser.m =================================================================== --- trunk/bibdesk/BDSKSpiresParser.m 2018-02-19 22:30:51 UTC (rev 21971) +++ trunk/bibdesk/BDSKSpiresParser.m 2018-02-19 22:38:58 UTC (rev 21972) @@ -59,21 +59,6 @@ return bibtexString; } -+ (BOOL)canParseDocument:(DOMDocument *)domDocument xmlDocument:(NSXMLDocument *)xmlDocument fromURL:(NSURL *)url{ - static NSArray *spiresHosts = nil; - if (spiresHosts == nil) - spiresHosts = [[NSArray alloc] initWithObjects:@"www.slac.stanford.edu", @"www-library.desy.de", @"www-spires.fnal.gov", @"usparc.ihep.su", @"www-spires.dur.ac.uk", @"www.yukawa.kyoto-u.ac.jp", @"www.spires.lipi.go.id", nil]; - - NSString *host = [[url host] lowercaseString]; - if ([host isEqualToString:[self host]] == NO && ([spiresHosts containsObject:host] == NO || [[url path] hasCaseInsensitivePrefix:@"/spires"] == NO)) - return NO; - - NSError *error = nil; - NSInteger nodecount = [[[xmlDocument rootElement] nodesForXPath:[self linkedBibTeXNodeXPath] error:&error] count]; - - return nodecount > 0; -} - + (NSDictionary *)parserInfo { NSString * parserDescription = NSLocalizedString(@"INSPIRE database of literature on particle physics.", @"Description for INSPIRE site"); return [BDSKWebParser parserInfoWithName:@"INSPIRE" address:@"https://inspirehep.net/" description:parserDescription feature:BDSKParserFeaturePublic]; 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