Revision: 24458
          http://sourceforge.net/p/bibdesk/svn/24458
Author:   hofman
Date:     2019-12-11 22:55:02 +0000 (Wed, 11 Dec 2019)
Log Message:
-----------
get items from channel if not present outside it

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

Modified: trunk/bibdesk/BDSKPRISMParser.m
===================================================================
--- trunk/bibdesk/BDSKPRISMParser.m     2019-12-11 22:11:23 UTC (rev 24457)
+++ trunk/bibdesk/BDSKPRISMParser.m     2019-12-11 22:55:02 UTC (rev 24458)
@@ -77,6 +77,8 @@
     NSMutableArray *pubs = [NSMutableArray array];
     
     NSArray *items = [[doc rootElement] nodesForXPath:@"./item" error:NULL];
+    if ([items count] == 0)
+        items = [[doc rootElement] nodesForXPath:@"./channel/item" error:NULL];
     
     for (NSXMLNode *node in items) {
         NSMutableDictionary *pubDict = [[NSMutableDictionary alloc] 
initWithCapacity:5];

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