Revision: 22571
          http://sourceforge.net/p/bibdesk/svn/22571
Author:   hofman
Date:     2018-09-09 14:48:46 +0000 (Sun, 09 Sep 2018)
Log Message:
-----------
Append pdf extension, as arxiv does not add it in the href

Modified Paths:
--------------
    trunk/bibdesk/BDSKArxivParser.m

Modified: trunk/bibdesk/BDSKArxivParser.m
===================================================================
--- trunk/bibdesk/BDSKArxivParser.m     2018-09-09 14:46:43 UTC (rev 22570)
+++ trunk/bibdesk/BDSKArxivParser.m     2018-09-09 14:48:46 UTC (rev 22571)
@@ -203,6 +203,8 @@
                 // fix relative urls
                 if (NO == [string containsString:@"://"])
                     string = [[NSURL URLWithString:string relativeToURL:url] 
absoluteString];
+                if ([[string lowercaseString] hasSuffix:@".pdf"])
+                    string = [string stringByAppendingString:@".pdf"];
                 if (addUrlField)
                     [pubFields setValue:string forKey:BDSKUrlString];
                 if (addLinkedFiles)

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

Reply via email to