NSArray *fields, *records;
fields = [NSArray arrayWithObjects:
- @"c_name",
+ @"c_name", @"cn",
@"sn", @"givenname", @"l",
@"mail", @"telephonenumber",
nil];
}
- (NSString *)_getCN {
- NSString *sn, *gn;
-
- sn = [self->contact valueForKey:@"sn"];
- gn = [self->contact valueForKey:@"givenname"];
-
- if((!sn || [sn length] == 0) &&
- (!gn || [gn length] == 0)) {
- return @"";
- } else if(!sn || [sn length] == 0) {
- return gn;
- } else if(!gn || [gn length] == 0) {
- return sn;
- }
- return [NSString stringWithFormat:@"%@ %@", sn, gn];
+ return [self->contact valueForKey:@"cn"];
}
- (NSString *)getCN {
- (NSString *)jsOnClickCode {
/* callback parameters: (type, cn, dn, email, uid, sn) */
+
+
+
+ /* changed to : type, email, uid, sn, cn, dn */
static NSString *jsCode = \
- @"javascript:opener.window.%@('', '%@', '', '%@', '%@', '%@');";
+ @"javascript:opener.window.%@('', '%@', '%@', '%@', '%@', '');";
return [NSString stringWithFormat:jsCode,
- [self callback],
- [self getCN],
- [self getMail],
- [self getUID],
- [self getSN]];
+ [self callback],
+ [self getMail],
+ [self getUID],
+ [self getSN],
+ [self getCN]];
+
+
+
+ // return [NSString stringWithFormat:jsCode,
+ // [self callback],
+ // [self getCN],
+ // [self getMail],
+ // [self getUID],
+ // [self getSN]];
}
@end /* UIxContactsInlineListView */