From: <ho...@us...> - 2006-11-20 11:11:35
|
Revision: 8551 http://svn.sourceforge.net/bibdesk/?rev=8551&view=rev Author: hofman Date: 2006-11-20 03:11:35 -0800 (Mon, 20 Nov 2006) Log Message: ----------- Combined handling of display for person fields. Modified Paths: -------------- trunk/bibdesk/BibItem.m Modified: trunk/bibdesk/BibItem.m =================================================================== --- trunk/bibdesk/BibItem.m 2006-11-20 10:44:48 UTC (rev 8550) +++ trunk/bibdesk/BibItem.m 2006-11-20 11:11:35 UTC (rev 8551) @@ -1358,12 +1358,10 @@ return [[self authorOrEditorAtIndex:2] displayName]; }else if([field isEqualToString:BDSKLastAuthorEditorString] ){ return [[self lastAuthorOrEditor] displayName]; - } else if([field isEqualToString:BDSKAuthorString]) { - return [self pubAuthorsForDisplay]; + } else if([field isPersonField]) { + return [self peopleStringForDisplayFromField:field]; } else if([field isEqualToString:BDSKAuthorEditorString]){ return [self pubAuthorsOrEditorsForDisplay]; - } else if([field isEqualToString:BDSKEditorString]) { - return [self peopleStringForDisplayFromField:BDSKEditorString]; }else if([field isURLField]){ return [self smallImageForURLField:field]; }else if([field isRatingField]){ @@ -1698,8 +1696,8 @@ valueStr = [[NSAttributedString alloc] initWithString:stringValue attributes:bodyAttributes]; - }else if([key isEqualToString:BDSKAuthorString]){ - if((stringValue = [self pubAuthorsForDisplay])) + }else if([key isPersonField]){ + if((stringValue = [self peopleStringForDisplayFromField:key])) valueStr = [[NSAttributedString alloc] initWithString:stringValue attributes:bodyAttributes]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |