THE GREAT RENAMING! All that was "SIG" should now be "community," except for

the database and the URLs (for backward compatibility).  Do a full rebuild
after browsing this one!
This commit is contained in:
Eric J. Bowersox
2001-11-07 08:43:09 +00:00
parent fe352efbd1
commit dde12bdf2e
131 changed files with 2573 additions and 2503 deletions

View File

@@ -21,11 +21,11 @@
<%@ page import = "com.silverwrist.venice.servlets.Variables" %>
<%@ page import = "com.silverwrist.venice.servlets.format.*" %>
<%!
private static String getSIGHostName(SIGContext sig)
private static String getCommunityHostName(CommunityContext comm)
{
try
{ // get the host name for the specified SIG
UserProfile prof = sig.getHostProfile();
{ // get the host name for the specified community
UserProfile prof = comm.getHostProfile();
return prof.getUserName();
} // end try
@@ -35,13 +35,13 @@ private static String getSIGHostName(SIGContext sig)
} // end catch
} // end getSIGHostName
} // end getCommunityHostName
private static int getSIGMemberCount(SIGContext sig)
private static int getCommunityMemberCount(CommunityContext comm)
{
try
{ // get the member count for the specified SIG
return sig.getMemberCount();
{ // get the member count for the specified community
return comm.getMemberCount();
} // end try
catch (DataException e)
@@ -50,11 +50,11 @@ private static int getSIGMemberCount(SIGContext sig)
} // end catch
} // end getSIGMemberCount
} // end getCommunityMemberCount
private static String getActivityString(SIGContext sig, RenderData rdat)
private static String getActivityString(CommunityContext comm, RenderData rdat)
{
return rdat.getActivityString(sig.getLastAccessDate());
return rdat.getActivityString(comm.getLastAccessDate());
} // end getActivityString
@@ -71,16 +71,16 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<FORM METHOD="POST" ACTION="<%= rdat.getEncodedServletPath("find") %>"><DIV CLASS="content">
<INPUT TYPE=HIDDEN NAME="disp" VALUE="<%= data.getDisplayOption() %>">
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="0">
<% if (data.getDisplayOption()==FindData.FD_SIGS) { %>
<% if (rdat.useHTMLComments()) { %><!-- Find SIGs Form --><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find SIGs:</B></FONT><BR>
<% if (data.getDisplayOption()==FindData.FD_COMMUNITIES) { %>
<% if (rdat.useHTMLComments()) { %><!-- Find Communities Form --><% } %>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,4) %><B>Find Communities:</B></FONT><BR>
<%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
Display all SIGs whose&nbsp;&nbsp;
Display all communities whose&nbsp;&nbsp;
<SELECT NAME="field" SIZE=1>
<OPTION VALUE="<%= SearchMode.FIELD_SIG_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_SIG_NAME)) { %>SELECTED<% } %> >name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_SIG_SYNOPSIS %>"
<% if (data.searchFieldIs(SearchMode.FIELD_SIG_SYNOPSIS)) { %>SELECTED<% } %> >synopsis</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_COMMUNITY_NAME %>"
<% if (data.searchFieldIs(SearchMode.FIELD_COMMUNITY_NAME)) { %>SELECTED<% } %> >name</OPTION>
<OPTION VALUE="<%= SearchMode.FIELD_COMMUNITY_SYNOPSIS %>"
<% if (data.searchFieldIs(SearchMode.FIELD_COMMUNITY_SYNOPSIS)) { %>SELECTED<% } %> >synopsis</OPTION>
</SELECT><BR>
<% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
@@ -203,7 +203,7 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,3) %>
<%-- The initial search results --%>
<B><% if (cat!=null) { %>SIGs in Category<% } else { %>Search Results<% } %></B>
<B><% if (cat!=null) { %>Communities in Category<% } else { %>Search Results<% } %></B>
<% if (data.getFindCount()>0) { %>
(Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
<%= data.getFindCount() %>)
@@ -250,13 +250,13 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
</TD>
<TD ALIGN=LEFT CLASS="content"><%= rdat.getStdFontTag(ColorSelectors.CONTENT_FOREGROUND,2) %>
<% Object item = results.get(i); %>
<% if (data.getDisplayOption()==FindData.FD_SIGS) { %>
<% if (data.getDisplayOption()==FindData.FD_COMMUNITIES) { %>
<%
SIGContext sig = (SIGContext)item;
String host_name = getSIGHostName(sig);
int members = getSIGMemberCount(sig);
CommunityContext comm = (CommunityContext)item;
String host_name = getCommunityHostName(comm);
int members = getCommunityMemberCount(comm);
%>
<A HREF="<%= rdat.getEncodedServletPath("sig/" + sig.getAlias()) %>"><%= StringUtil.encodeHTML(sig.getName()) %></A><BR>
<A HREF="<%= rdat.getEncodedServletPath("sig/" + comm.getAlias()) %>"><%= StringUtil.encodeHTML(comm.getName()) %></A><BR>
<% if (host_name!=null) { %>
Host: <A HREF="<%= rdat.getEncodedServletPath("user/" + host_name) %>"><%= host_name %></A>
<% } // end if (got host name) %>
@@ -265,8 +265,8 @@ private static String getActivityString(SIGContext sig, RenderData rdat)
<%= members %> members
<% } // end if (got member count) %>
<% if ((host_name!=null) || (members>=0)) { %><BR><% } %>
Latest activity: <%= getActivityString(sig,rdat) %><BR>
<EM><%= StringUtil.encodeHTML(sig.getSynopsis()) %></EM>
Latest activity: <%= getActivityString(comm,rdat) %><BR>
<EM><%= StringUtil.encodeHTML(comm.getSynopsis()) %></EM>
<% } else if (data.getDisplayOption()==FindData.FD_USERS) { %>
<% UserFound uf = (UserFound)item; %>