Revision: 23997
          http://sourceforge.net/p/bibdesk/svn/23997
Author:   hofman
Date:     2019-07-11 13:28:24 +0000 (Thu, 11 Jul 2019)
Log Message:
-----------
don't add more than 20 alternate fields from pubmed data, e.g. addresses of 
authors

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

Modified: trunk/bibdesk/BDSKPubMedParser.m
===================================================================
--- trunk/bibdesk/BDSKPubMedParser.m    2019-07-11 12:58:59 UTC (rev 23996)
+++ trunk/bibdesk/BDSKPubMedParser.m    2019-07-11 13:28:24 UTC (rev 23997)
@@ -208,6 +208,13 @@
             while ([pubDict objectForKey:newKey] != nil) {
                 i++;
                 newKey = [key stringByAppendingFormat:@"%ld", (long)i];
+                // don't add too many fields as btparse can't handle that
+                // for instance there may be one address for every authors and 
there can be a lot
+                if (i > 20) {
+                    // just ignore them, should not be too important
+                    value = nil;
+                    break;
+                }
             }
             key = newKey;
             newString = [value copy];

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