Revision: 29220
          http://sourceforge.net/p/bibdesk/svn/29220
Author:   hofman
Date:     2025-04-27 16:37:14 +0000 (Sun, 27 Apr 2025)
Log Message:
-----------
need to get stringtype only for one record, they should all be the same

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

Modified: trunk/bibdesk/BDSKSRUGroupServer.m
===================================================================
--- trunk/bibdesk/BDSKSRUGroupServer.m  2025-04-27 16:26:25 UTC (rev 29219)
+++ trunk/bibdesk/BDSKSRUGroupServer.m  2025-04-27 16:37:14 UTC (rev 29220)
@@ -313,10 +313,12 @@
                 NSArray *records = [root 
nodesForXPath:@"/zs:searchRetrieveResponse[1]/zs:records[1]/zs:record/zs:recordData[1]/*[1]"
 error:NULL];
                 
                 NSMutableArray *pubs = [NSMutableArray array];
+                BDSKStringType stringType = BDSKStringTypeUnknown;
                 
                 for (NSXMLNode *node in records) {
                     NSString *record = [node XMLString];
-                    BDSKStringType stringType = [self 
stringTypeForRecordString:record];
+                    if (stringType == BDSKStringTypeUnknown)
+                        stringType = [self stringTypeForRecordString:record];
                     BibItem *pub = [[BDSKStringParser itemsFromString:record 
ofType:stringType error:NULL] firstObject];
                     if (pub == nil)
                         pub = [[BibItem alloc] initWithType:BDSKMiscString 
citeKey:nil pubFields:@{BDSKAnnoteString:record}];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to