+2004-10-27 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v0.9.17
+
+ * UIxContactEditor.[wox|m]: new parameters "mobile", "departmentNumber"
+ and "l" passed to callback. Provide proper unescaping to the
+ callback's parameters. (#985, #987)
+
+ * UIxContactView.wox: properly display new properties, suppress
+ rendering of "Organization". (#985)
+
+ * {English.lproj|French.lproj}/default.strings: needed to change some
+ labels according to new requirements.
+
2004-10-20 Marcus Mueller <znek@mulle-kybernetik.com>
* UIxContactsSelectionView.m: several properties provided to the
"Contact viewer" = "Contact Viewer";
"Contact editor" = "Contact Editor";
+"Common" = "Common";
"Name" = "Name";
"Lastname" = "Lastname";
"Firstname" = "Firstname";
-"EMail" = "Email";
-"Phone" = "Phone";
+
+"Phones" = "Phone numbers";
+"OfficePhone" = "Office";
+"HomePhone" = "Home";
+"MobilePhone" = "Mobile";
"Fax" = "Fax";
"Location" = "Location";
"Organisation" = "Organisation";
"Unit" = "Unit";
-"Common" = "Common";
"Addresses" = "Addresses";
"Postal" = "Postal";
"Home" = "Home";
+
"Extended" = "Extended";
+"EMail" = "Email";
"URL" = "URL";
/* button labels */
"Contact viewer" = "Visualiser le contact";
"Contact editor" = "Editer le contact";
+"Common" = "Common";
"Name" = "Nom";
"Lastname" = "Nom";
"Firstname" = "Prénom";
-"EMail" = "Courriel";
-"Phone" = "Téléphone";
+
+"Phones" = "Phone numbers";
+"OfficePhone" = "Office";
+"HomePhone" = "Home";
+"MobilePhone" = "Mobile";
"Fax" = "Fax";
+
"Location" = "Lieux";
"Organisation" = "Organisation";
"Unit" = "Département";
"Addresses" = "Adresses";
"Postal" = "Professionnelle";
"Home" = "Personnelle";
+
"Extended" = "Internet";
"URL" = "URL";
+"EMail" = "Courriel";
/* button labels */
- (NSString *)jsCopyContactCode {
static NSString *jsCode = \
+ @"function unescapeCallbackParameter(s) {\n"
+ @" if(!s || s.length == 0)\n"
+ @" return s;\n"
+ @" s = s.replace(/'/g, \"'\");\n"
+ @" s = s.replace(/"/g, '\"');\n"
+ @" return s;\n"
+ @"}\n"
+ @"\n"
@"function copyContact(type, cn, dn, email, uid, sn, "
@"givenName, telephoneNumber, facsimileTelephoneNumber, "
- @"postalAddress, homePostalAddress"
+ @"mobile, "
+ @"postalAddress, homePostalAddress, "
+ @"departmentNumber, l"
@") {\n"
@" var e;\n"
@" e = document.getElementById('email');\n"
@" e.setAttribute('value', email);\n"
@" e = document.getElementById('sn');\n"
- @" e.setAttribute('value', sn);\n"
+ @" e.setAttribute('value', unescapeCallbackParameter(sn));\n"
@" e = document.getElementById('givenName');\n"
- @" e.setAttribute('value', givenName);\n"
+ @" e.setAttribute('value', unescapeCallbackParameter(givenName));\n"
@" e = document.getElementById('telephoneNumber');\n"
@" e.setAttribute('value', telephoneNumber);\n"
@" e = document.getElementById('facsimileTelephoneNumber');\n"
@" e.setAttribute('value', facsimileTelephoneNumber);\n"
+ @" e = document.getElementById('mobile');\n"
+ @" e.setAttribute('value', mobile);\n"
@" e = document.getElementById('postalAddress');\n"
- @" e.setAttribute('value', postalAddress);\n"
+ @" e.setAttribute('value', unescapeCallbackParameter(postalAddress));\n"
@" e = document.getElementById('homePostalAddress');\n"
- @" e.setAttribute('value', homePostalAddress);\n"
+ @" e.setAttribute('value', unescapeCallbackParameter(homePostalAddress));\n"
+ @" e = document.getElementById('departmentNumber');\n"
+ @" e.setAttribute('value', unescapeCallbackParameter(departmentNumber));\n"
+ @" e = document.getElementById('l');\n"
+ @" e.setAttribute('value', unescapeCallbackParameter(l));\n"
@"}\n";
return jsCode;
}
const:windowId="UIxContactTemplates"
label:title="Copy from Anais"
const:callback="copyContact"
- const:extraAttributes="givenName,telephoneNumber,facsimileTelephoneNumber,postalAddress,homePostalAddress"
+ const:extraAttributes="givenName,telephoneNumber,facsimileTelephoneNumber,mobile,postalAddress,homePostalAddress,departmentNumber,l"
/>
</td>
</tr><tr>
<tr>
<td align="left" colspan="2">
<span class="aptview_title">
- <var:string label:value="Telephones" />
+ <var:string label:value="Phones" />
</span>
</td>
</tr>
<tr valign="top">
<td align="right" width="15%">
<span class="aptview_text">
- <var:string label:value="Phone" />:
+ <var:string label:value="OfficePhone" />:
</span>
</td>
<td align="left" bgcolor="#FFFFF0">
</span>
</td>
</tr>
+ <tr valign="top">
+ <td align="right" width="15%">
+ <span class="aptview_text">
+ <var:string label:value="HomePhone" />:
+ </span>
+ </td>
+ <td align="left" bgcolor="#FFFFF0">
+ <span class="aptview_text">
+ <input type="text"
+ name="homeTelephoneNumber"
+ id="homeTelephoneNumber"
+ var:value="snapshot.homeTelephoneNumber"
+ size="60"
+ />
+ </span>
+ </td>
+ </tr>
+ <tr valign="top">
+ <td align="right" width="15%">
+ <span class="aptview_text">
+ <var:string label:value="MobilePhone" />:
+ </span>
+ </td>
+ <td align="left" bgcolor="#FFFFF0">
+ <span class="aptview_text">
+ <!-- pamela.schema defines this as 'mobile',
+ NOT 'mobileTelephoneNumber'
+ -->
+ <input type="text"
+ name="mobile"
+ id="mobile"
+ var:value="snapshot.mobile"
+ size="60"
+ />
+ </span>
+ </td>
+ </tr>
<tr valign="top">
<td align="right" width="15%">
<span class="aptview_text">
</span>
</td>
</tr>
+ <tr valign="top">
+ <td align="right" width="15%">
+ <span class="aptview_text">
+ <var:string label:value="Unit" />:
+ </span>
+ </td>
+ <td align="left" bgcolor="#FFFFF0">
+ <span class="aptview_text">
+ <input type="text"
+ name="departmentNumber"
+ id="departmentNumber"
+ var:value="snapshot.departmentNumber"
+ size="60"
+ />
+ </span>
+ </td>
+ </tr>
+ <tr valign="top">
+ <td align="right" width="15%">
+ <span class="aptview_text">
+ <var:string label:value="Location" />:
+ </span>
+ </td>
+ <td align="left" bgcolor="#FFFFF0">
+ <span class="aptview_text">
+ <input type="text"
+ name="l"
+ id="l"
+ var:value="snapshot.l"
+ size="60"
+ />
+ </span>
+ </td>
+ </tr>
<tr valign="top">
<td align="right" width="15%">
<span class="aptview_text">
<tr>
<td valign="top" width="100%">
<table width="100%" border="0" cellpadding="4" cellspacing="0">
- <!-- general contact info -->
- <tr valign="top">
- <td align="right" width="15%" bgcolor="#E8E8E0">
+ <!-- general contact info -->
+ <tr valign="top">
+ <td align="right" width="15%" bgcolor="#E8E8E0">
+ <span class="aptview_text"
+ ><var:string label:value="Name" />:</span>
+ </td>
+ <td align="left" bgcolor="#FFFFF0">
+ <span class="aptview_text">
+ <var:string value="clientObject.cn" />
+ </span>
+ </td>
+ </tr>
+ <tr valign="top">
+ <td align="right" width="15%" bgcolor="#E8E8E0">
<span class="aptview_text"
- ><var:string label:value="Name" />:</span>
- </td>
- <td align="left" bgcolor="#FFFFF0">
+ ><var:string label:value="Unit" />:</span>
+ </td>
+ <td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <var:string value="clientObject.cn" />
+ <var:string value="clientObject.departmentNumber"/></span>
+ </td>
+ </tr>
+ <tr valign="top">
+ <td align="right" width="15%" bgcolor="#E8E8E0">
+ <span class="aptview_text"
+ ><var:string label:value="Location" />:</span>
+ </td>
+ <td align="left" bgcolor="#FFFFF0">
+ <span class="aptview_text">
+ <var:string value="clientObject.l" />
</span>
- </td>
- </tr>
- <tr valign="top">
- <td align="right" width="15%" bgcolor="#E8E8E0">
- <span class="aptview_text"
- ><var:string label:value="Location" />:</span>
- </td>
- <td align="left" bgcolor="#FFFFF0">
- <span class="aptview_text">
- <var:string value="clientObject.l" />
- </span>
- </td>
- </tr>
+ </td>
+ </tr>
</table>
</td>
</tr>
<tr valign="top">
<td align="right" width="15%" bgcolor="#E8E8E0">
<span class="aptview_text"
- ><var:string label:value="Phone" />:</span>
+ ><var:string label:value="OfficePhone" />:</span>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
<tr valign="top">
<td align="right" width="15%" bgcolor="#E8E8E0">
<span class="aptview_text"
- ><var:string label:value="Fax" />:</span>
+ ><var:string label:value="HomePhone" />:</span>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <var:string value="clientObject.facsimileTelephoneNumber"
- /></span>
+ <var:string value="clientObject.homeTelephoneNumber"/></span>
</td>
</tr>
<tr valign="top">
<td align="right" width="15%" bgcolor="#E8E8E0">
<span class="aptview_text"
- ><var:string label:value="Organisation" />:</span>
+ ><var:string label:value="MobilePhone" />:</span>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <var:string value="clientObject.o"/></span>
+ <var:string value="clientObject.mobile"/></span>
+ </td>
+ </tr>
+ <tr valign="top">
+ <td align="right" width="15%" bgcolor="#E8E8E0">
+ <span class="aptview_text"
+ ><var:string label:value="Fax" />:</span>
+ </td>
+ <td align="left" bgcolor="#FFFFF0">
+ <span class="aptview_text">
+ <var:string value="clientObject.facsimileTelephoneNumber"
+ /></span>
</td>
</tr>
+ <!--
<tr valign="top">
<td align="right" width="15%" bgcolor="#E8E8E0">
<span class="aptview_text"
- ><var:string label:value="Unit" />:</span>
+ ><var:string label:value="Organisation" />:</span>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <var:string value="clientObject.ou"/></span>
+ <var:string value="clientObject.o"/></span>
</td>
</tr>
+ -->
<tr valign="top">
<td align="right" width="15%" bgcolor="#E8E8E0">
<span class="aptview_text"
# $Id$
-SUBMINOR_VERSION:=16
+SUBMINOR_VERSION:=17
# v0.9.16 requires libSOGoUI v0.9.16