Revision: 24848
          http://sourceforge.net/p/bibdesk/svn/24848
Author:   hofman
Date:     2020-06-17 14:27:37 +0000 (Wed, 17 Jun 2020)
Log Message:
-----------
return group array always as strings, persons are handled separately for groups 
themselves

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

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2020-06-17 06:30:20 UTC (rev 24847)
+++ trunk/bibdesk/BibItem.m     2020-06-17 14:27:37 UTC (rev 24848)
@@ -3230,13 +3230,13 @@
 
 - (NSArray *)groupArrayForField:(NSString *)field{
     NSString *value = [[self stringValueOfField:field] expandedString];
-    if([NSString isEmptyString:value])
+    if([NSString isEmptyString:value]){
         return [NSArray array];
-    if([field isSingleValuedGroupField]){
-        // types and journals should be added as a whole
+    }else if([field isSingleValuedGroupField]){
+        // titles and journals should be added as a whole
         return [NSArray arrayWithObject:value];
     }else if([field isPersonField]){
-        return [self peopleArrayForField:field];
+        return [[self peopleArrayForField:field] valueForKey:@"originalName"];
     }else{
         NSArray *groupArray;
         NSCharacterSet *acSet = [[BDSKTypeManager sharedManager] 
separatorCharacterSetForField:field];

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