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:
Eric J. Bowersox
2004-07-10 22:54:15 +00:00
parent 5c0f841ab7
commit f0bf5e31ee
9 changed files with 431 additions and 348 deletions

View File

@@ -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);

View File

@@ -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!