Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r355 - in registry/trunk/app: Model View/CoIdentifierAssignments

Subject: COmanage Developers List

List archive

[comanage-dev] r355 - in registry/trunk/app: Model View/CoIdentifierAssignments


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r355 - in registry/trunk/app: Model View/CoIdentifierAssignments
  • Date: Fri, 31 Aug 2012 23:14:38 -0400

Author: benno
Date: 2012-08-31 23:14:38 -0400 (Fri, 31 Aug 2012)
New Revision: 355

Modified:
registry/trunk/app/Model/CoIdentifierAssignment.php
registry/trunk/app/View/CoIdentifierAssignments/fields.inc
Log:
Support lower case in autogenerated identifiers (CO-433)

Modified: registry/trunk/app/Model/CoIdentifierAssignment.php
===================================================================
--- registry/trunk/app/Model/CoIdentifierAssignment.php 2012-08-31 18:33:40
UTC (rev 354)
+++ registry/trunk/app/Model/CoIdentifierAssignment.php 2012-09-01 03:14:38
UTC (rev 355)
@@ -379,12 +379,21 @@

// Do the actual parameter replacement
switch($format[$i]) {
+ case 'f':
+ $base .= sprintf("%.".$width."s",
strtolower($name['family']));
+ break;
case 'F':
$base .= sprintf("%.".$width."s", $name['family']);
break;
+ case 'g':
+ $base .= sprintf("%.".$width."s",
strtolower($name['given']));
+ break;
case 'G':
$base .= sprintf("%.".$width."s", $name['given']);
break;
+ case 'm':
+ $base .= sprintf("%.".$width."s",
strtolower($name['middle']));
+ break;
case 'M':
$base .= sprintf("%.".$width."s", $name['middle']);
break;

Modified: registry/trunk/app/View/CoIdentifierAssignments/fields.inc
===================================================================
--- registry/trunk/app/View/CoIdentifierAssignments/fields.inc 2012-08-31
18:33:40 UTC (rev 354)
+++ registry/trunk/app/View/CoIdentifierAssignments/fields.inc 2012-09-01
03:14:38 UTC (rev 355)
@@ -162,9 +162,9 @@

onchange="javascript:document.getElementById('CoIdentifierAssignmentFormat').value=this.value">
<option value=""><?php print _txt('fd.ia.format.prefab');
?></option>
<option value=""><?php print _txt('fd.ia.format.p0'); ?></option>
- <option
value="(G).(F)[1:.(#)]@myvo.org"><?php
print _txt('fd.ia.format.p1'); ?></option>
- <option
value="(G)[1:.(M:1)].(F)[2:.(#)]@myvo.org"><?php
print _txt('fd.ia.format.p2'); ?></option>
- <option value="(G:1)(M:1)(F:1)(#)@myvo.org"><?php print
_txt('fd.ia.format.p3'); ?></option>
+ <option
value="(g).(f)[1:.(#)]@myvo.org"><?php
print _txt('fd.ia.format.p1'); ?></option>
+ <option
value="(g)[1:.(m:1)].(f)[2:.(#)]@myvo.org"><?php
print _txt('fd.ia.format.p2'); ?></option>
+ <option value="(g:1)(m:1)(f:1)(#)@myvo.org"><?php print
_txt('fd.ia.format.p3'); ?></option>
</select>
<?php endif; ?>
</td>



  • [comanage-dev] r355 - in registry/trunk/app: Model View/CoIdentifierAssignments, svnlog, 08/31/2012

Archive powered by MHonArc 2.6.16.

Top of Page