Revision: 28116
http://sourceforge.net/p/bibdesk/svn/28116
Author: hofman
Date: 2022-12-15 10:38:46 +0000 (Thu, 15 Dec 2022)
Log Message:
-----------
change referrer URL, we don't use the serverName anymore
Modified Paths:
--------------
trunk/bibdesk/BDSKMathSciNetParser.m
trunk/bibdesk/BDSKNumdamParser.m
Modified: trunk/bibdesk/BDSKMathSciNetParser.m
===================================================================
--- trunk/bibdesk/BDSKMathSciNetParser.m 2022-12-15 07:30:13 UTC (rev
28115)
+++ trunk/bibdesk/BDSKMathSciNetParser.m 2022-12-15 10:38:46 UTC (rev
28116)
@@ -99,10 +99,8 @@
// Determine the server name to use.
// If the referring URL's server name contains 'ams', assume we were using
a mirror server before and continue using that.
// If not, we're processing MR IDs not coming from a MathSciNet page and
use the default 'ams.org' server.
- NSString * serverName = [[URL host] lowercaseString];
- if (!serverName || [serverName rangeOfString:@"ams"].location ==
NSNotFound) {
- serverName = @"www.ams.org";
- }
+ if (URL == nil || [[URL host] rangeOfString:@"ams"
options:NSCaseInsensitiveSearch].location == NSNotFound)
+ URL = [NSURL URLWithString:@"https://www.ams.org"];
// Loop through IDs in batches of MSNBATCHSIZE. */
NSUInteger count = [IDs count];
Modified: trunk/bibdesk/BDSKNumdamParser.m
===================================================================
--- trunk/bibdesk/BDSKNumdamParser.m 2022-12-15 07:30:13 UTC (rev 28115)
+++ trunk/bibdesk/BDSKNumdamParser.m 2022-12-15 10:38:46 UTC (rev 28116)
@@ -123,7 +123,7 @@
URLString = [match groupAtIndex:1];
/*
- NSArray * MRRequests = [BDSKMathSciNetParser
bibTeXRequestsForZMathIDs:ZMathReferences referrer:[self URL] error:outError];
+ NSArray * MRRequests = [BDSKMathSciNetParser
bibTeXRequestsForMRIDs:ZMathReferences referrer:[self URL] error:outError];
for (NSURLRequest *request in MRRequests) {
NSDictionary *contextInfo = [NSDictionary
dictionaryWithObjectsAndKeys:[BDSKMathSciNetParser class], @"parserClass",
firstMRIDIsOwnId ? URLString : nil, @"URLString", nil];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit