+2007-02-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+
+ * UI/Contacts/UIxContactEditor.m: display and handle the new
+ Freebusy URL entry.
+
+ * SoObjects/Contacts/SOGoContactLDAPFolder.m
+ ([SOGoContactLDAPFolder -_searchAttributes]): retrieve "calFBURL"
+ from the server.
+
+ * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
+ -vCard]): put the LDAP "calFBURL" field in the vCard's "FBURL"
+ entry.
+
2007-01-31 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoCalendarComponent.m
+2007-02-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+
+ * NGVCard.m ([NGVCard -classForTag:classTag]): declare an entry
+ for "FBURL".
+
2006-08-03 Helge Hess <helge.hess@opengroupware.org>
* NGVCardSaxHandler.m: fixed a bug with returning parsing results.
|| [classTag isEqualToString: @"TEL"]
|| [classTag isEqualToString: @"TZ"]
|| [classTag isEqualToString: @"URL"]
+ || [classTag isEqualToString: @"FBURL"]
|| [classTag isEqualToString: @"LABEL"]
|| [classTag isEqualToString: @"EMAIL"]
|| [classTag isEqualToString: @"NICKNAME"]
[element setValue: 3 to: location];
if (streetAddress || location)
[vcard addChild: element];
+ info = [ldapEntry singleAttributeWithName: @"calFBURL"];
+ if (info)
+ [vcard addChildWithTag: @"FBURL"
+ types: nil
+ singleValue: info];
}
return vcard;
@"locality",
@"birthyear",
@"serialNumber",
+ @"calFBURL",
nil];
}
"Note: " = "Note: ";
"Timezone: " = "Timezone: ";
"Birthday: " = "Birthday: ";
+"Freebusy URL: " = "Freebusy URL: ";
"Add as..." = "Add as...";
"Recipient" = "Recipient";
"Note: " = "Commentaires : ";
"Timezone: " = "Fuseau horaire : ";
"Birthday: " = "D. de naissance : ";
+"Freebusy URL: " = "Adresse du FreeBusy : ";
"Add as..." = "Ajouter...";
"Recipient" = "Destinataire";
{
if ((self = [super init]))
{
- snapshot = [[NSMutableDictionary alloc] initWithCapacity:16];
+ snapshot = [[NSMutableDictionary alloc] initWithCapacity: 16];
preferredEmail = nil;
}
to: [self _simpleValueForType: @"work" inArray: elements]];
[self _setSnapshotValue: @"homeURL"
to: [self _simpleValueForType: @"home" inArray: elements]];
+ [self _setSnapshotValue: @"calFBURL"
+ to: [[card uniqueChildWithTag: @"FBURL"] value: 0]];
[self _setSnapshotValue: @"title" to: [card title]];
[self _setupOrgFields];
[self _setSnapshotValue: @"tz" to: [card tz]];
[self _setSnapshotValue: @"note" to: [card note]];
- [self _retrieveQueryParameter: @"contactEmail"
- intoSnapshotValue: @"workMail"];
- [self _retrieveQueryParameter: @"contactFN"
- intoSnapshotValue: @"fn"];
+ [self _retrieveQueryParameter: @"contactEmail"
+ intoSnapshotValue: @"workMail"];
+ [self _retrieveQueryParameter: @"contactFN"
+ intoSnapshotValue: @"fn"];
}
- (id <WOActionResults>) defaultAction
[element setValue: 5 to: [snapshot objectForKey: @"workPostalCode"]];
[element setValue: 6 to: [snapshot objectForKey: @"workCountry"]];
+ element = [CardElement simpleElementWithTag: @"fburl"
+ value: [snapshot objectForKey: @"calFBURL"]];
+ [card setUniqueChild: element];
+
[self _savePhoneValues];
[self _saveEmails];
}
</label>
</td>
</tr>
+ <tr>
+ <td colspan="2">
+ <label><var:string label:value="Freebusy URL: " const:escapeHTML="NO" />
+ <input type="text" class="textField" name="calFBURL" id="calFBURL"
+ var:value="snapshot.calFBURL" />
+ </label>
+ </td>
+ </tr>
<tr>
<td colspan="2">
<label><var:string label:value="Note: " const:escapeHTML="NO" />