modifications to ensure that Venice can operate without certain personal
information prompted for at registration time, if certain sites should elect to omit that information
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
//
|
||||
// The Original Code is the Venice Web Communities System.
|
||||
//
|
||||
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
|
||||
// for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
// Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
// Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
//
|
||||
// Contributor(s):
|
||||
|
||||
@@ -63,9 +63,16 @@ try
|
||||
rinput.setRequestAttribute("address.lastline",buf.toString());
|
||||
|
||||
// get the full country name and save it off
|
||||
ce = Packages.com.silverwrist.util.International.get().getCountryForCode(ci.country);
|
||||
if (ce!=null)
|
||||
rinput.setRequestAttribute("address.country",ce.name);
|
||||
scountry = "";
|
||||
if (!(ci.country.equals("XX")))
|
||||
{ // use International to get the full country name
|
||||
ce = Packages.com.silverwrist.util.International.get().getCountryForCode(ci.country);
|
||||
if (ce!=null)
|
||||
scountry = ce.name;
|
||||
|
||||
} // end if
|
||||
|
||||
rinput.setRequestAttribute("address.country",scountry);
|
||||
|
||||
// Save off the community logo tag.
|
||||
html = vlib.queryHTMLRendering(rinput);
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
//
|
||||
// The Original Code is the Venice Web Communities System.
|
||||
//
|
||||
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
|
||||
// for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
// Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
// Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
//
|
||||
// Contributor(s):
|
||||
|
||||
@@ -34,30 +34,25 @@ try
|
||||
buf = new java.lang.StringBuffer(prof.givenName);
|
||||
if (!(vlib.emptyString(prof.namePrefix)))
|
||||
{ // insert the prefix at the beginning of the string
|
||||
buf.insert(0," ");
|
||||
if (buf.length()>0)
|
||||
buf.insert(0," ");
|
||||
buf.insert(0,prof.namePrefix);
|
||||
|
||||
} // end if
|
||||
|
||||
tmp = String.fromCharCode(prof.middleInitial);
|
||||
if (tmp!=" ")
|
||||
{ // append the middle initial
|
||||
buf.append(" ");
|
||||
buf.append(tmp);
|
||||
buf.append(".");
|
||||
if (tmp!=" ") // append the middle initial
|
||||
buf.append(" ").append(tmp).append(".");
|
||||
|
||||
} // end if
|
||||
|
||||
buf.append(" ");
|
||||
buf.append(prof.familyName);
|
||||
if (!(vlib.emptyString(prof.familyName)))
|
||||
buf.append(" ").append(prof.familyName);
|
||||
if (!(vlib.emptyString(prof.nameSuffix)))
|
||||
{ // append the name suffix
|
||||
buf.append(" ");
|
||||
buf.append(prof.nameSuffix);
|
||||
buf.append(" ").append(prof.nameSuffix);
|
||||
|
||||
} // end if
|
||||
|
||||
rinput.setRequestAttribute("fullname",buf.toString());
|
||||
sfullname = buf.toString().trim();
|
||||
if (vlib.emptyString(sfullname))
|
||||
sfullname = username;
|
||||
rinput.setRequestAttribute("fullname",sfullname);
|
||||
|
||||
// determine the last line of the address and save it off
|
||||
if (vlib.emptyString(prof.locality))
|
||||
@@ -73,19 +68,22 @@ try
|
||||
else
|
||||
{ // tack together both locality and region
|
||||
buf = new java.lang.StringBuffer(prof.locality);
|
||||
buf.append(", ");
|
||||
buf.append(prof.region);
|
||||
buf.append(", ").append(prof.region);
|
||||
|
||||
} // end else
|
||||
|
||||
if (!(vlib.emptyString(prof.postalCode)))
|
||||
{ // append the postal code
|
||||
buf.append(" ");
|
||||
buf.append(prof.postalCode);
|
||||
buf.append(" ").append(prof.postalCode);
|
||||
|
||||
} // end if
|
||||
|
||||
rinput.setRequestAttribute("address.lastline",buf.toString());
|
||||
rinput.setRequestAttribute("address.lastline",buf.toString().trim());
|
||||
|
||||
scountry = prof.fullCountry();
|
||||
if (prof.country.equals("XX"))
|
||||
scountry = "";
|
||||
rinput.setRequestAttribute("country",scountry);
|
||||
|
||||
// Save off the user photo tag.
|
||||
html = vlib.queryHTMLRendering(rinput);
|
||||
@@ -105,4 +103,4 @@ catch (e)
|
||||
|
||||
} // end catch
|
||||
|
||||
vlib.output(rc); // all done!
|
||||
vlib.output(rc); // all done!
|
||||
|
||||
Reference in New Issue
Block a user