2001-01-31 13:55:37 -07:00
|
|
|
<%--
|
|
|
|
The contents of this file are subject to the Mozilla Public License Version 1.1
|
|
|
|
(the "License"); you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
|
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
|
|
|
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
|
|
|
language governing rights and limitations under the License.
|
|
|
|
|
2001-02-10 00:20:27 -07:00
|
|
|
The Original Code is the Venice Web Communities System.
|
2001-01-31 13:55:37 -07:00
|
|
|
|
|
|
|
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
|
|
|
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
2002-01-16 14:17:05 -07:00
|
|
|
Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
2001-01-31 13:55:37 -07:00
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
--%>
|
2002-01-06 19:05:37 -07:00
|
|
|
<%@ page import = "java.util.Iterator" %>
|
|
|
|
<%@ page import = "java.util.List" %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<%@ page import = "com.silverwrist.venice.core.*" %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<%@ page import = "com.silverwrist.venice.ui.view.FindView" %>
|
|
|
|
<%@ taglib uri="/tlds/util" prefix="util" %>
|
2002-01-16 14:17:05 -07:00
|
|
|
<%@ taglib uri="/tlds/global" prefix="global" %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<%
|
2002-01-06 19:05:37 -07:00
|
|
|
FindView data = FindView.get(request);
|
2002-01-16 14:17:05 -07:00
|
|
|
CategoryDescriptor cat = null;
|
2001-01-31 13:55:37 -07:00
|
|
|
%>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:comment>Find page</util:comment>
|
|
|
|
<util:menuheader caption="Find:">
|
|
|
|
<% if (data.testDisplayMode(FindView.FD_COMMUNITIES)) { %>
|
|
|
|
<util:menuheaderitem selected="true">
|
|
|
|
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_COMMUNITIES %></util:href>
|
|
|
|
<util:text>Communities</util:text>
|
|
|
|
</util:menuheaderitem>
|
|
|
|
<% } else { %>
|
|
|
|
<util:menuheaderitem>
|
|
|
|
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_COMMUNITIES %></util:href>
|
|
|
|
<util:text>Communities</util:text>
|
|
|
|
</util:menuheaderitem>
|
|
|
|
<% } // end if %>
|
|
|
|
<% if (data.testDisplayMode(FindView.FD_USERS)) { %>
|
|
|
|
<util:menuheaderitem selected="true">
|
|
|
|
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_USERS %></util:href>
|
|
|
|
<util:text>Users</util:text>
|
|
|
|
</util:menuheaderitem>
|
|
|
|
<% } else { %>
|
|
|
|
<util:menuheaderitem>
|
|
|
|
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_USERS %></util:href>
|
|
|
|
<util:text>Users</util:text>
|
|
|
|
</util:menuheaderitem>
|
|
|
|
<% } // end if %>
|
2002-01-16 14:17:05 -07:00
|
|
|
<global:categories_enabled>
|
|
|
|
<% if (data.testDisplayMode(FindView.FD_CATEGORIES)) { %>
|
|
|
|
<util:menuheaderitem selected="true">
|
|
|
|
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_CATEGORIES %></util:href>
|
|
|
|
<util:text>Categories</util:text>
|
|
|
|
</util:menuheaderitem>
|
|
|
|
<% } else { %>
|
|
|
|
<util:menuheaderitem>
|
|
|
|
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_CATEGORIES %></util:href>
|
|
|
|
<util:text>Categories</util:text>
|
|
|
|
</util:menuheaderitem>
|
|
|
|
<% } // end if %>
|
|
|
|
</global:categories_enabled>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testDisplayMode(FindView.FD_POSTS)) { %>
|
|
|
|
<util:menuheaderitem selected="true">
|
|
|
|
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_POSTS %></util:href>
|
|
|
|
<util:text>Posts</util:text>
|
|
|
|
</util:menuheaderitem>
|
|
|
|
<% } else { %>
|
|
|
|
<util:menuheaderitem>
|
|
|
|
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_POSTS %></util:href>
|
|
|
|
<util:text>Posts</util:text>
|
|
|
|
</util:menuheaderitem>
|
|
|
|
<% } // end if %>
|
|
|
|
</util:menuheader>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
|
|
|
<%-- Display the search form --%>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:comment>Find form</util:comment>
|
|
|
|
<util:form action="find.js.vs" type="servlet"><DIV CLASS="content">
|
|
|
|
<INPUT TYPE=HIDDEN NAME="disp" VALUE="<%= data.getDisplayMode() %>">
|
2001-01-31 13:55:37 -07:00
|
|
|
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="0">
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testDisplayMode(FindView.FD_POSTS)) { %>
|
|
|
|
<util:comment>Find Posts form</util:comment>
|
|
|
|
<util:font color="content.fg" size="content-heading"><B>Find Posts:</B></util:font>
|
|
|
|
<util:font color="content.fg" size="content">
|
|
|
|
Keywords: <SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=64 MAXLENGTH=255
|
|
|
|
VALUE="<%= data.getTerm() %>"></SPAN>
|
|
|
|
</util:font><BR>
|
2001-11-19 02:16:11 -07:00
|
|
|
<% } else { %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testDisplayMode(FindView.FD_COMMUNITIES)) { %>
|
|
|
|
<util:comment>Find Communities form</util:comment>
|
|
|
|
<util:font color="content.fg" size="content-heading"><B>Find Communities:</B></util:font>
|
|
|
|
<util:font color="content.fg" size="content">
|
2001-12-07 22:02:00 -07:00
|
|
|
Display all communities whose
|
|
|
|
<SELECT NAME="field" SIZE=1>
|
|
|
|
<OPTION VALUE="<%= SearchMode.FIELD_COMMUNITY_NAME %>"
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testField(SearchMode.FIELD_COMMUNITY_NAME)) { %>SELECTED<% } %> >name</OPTION>
|
2001-12-07 22:02:00 -07:00
|
|
|
<OPTION VALUE="<%= SearchMode.FIELD_COMMUNITY_SYNOPSIS %>"
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testField(SearchMode.FIELD_COMMUNITY_SYNOPSIS)) { %>SELECTED<% } %> >synopsis</OPTION>
|
2001-12-07 22:02:00 -07:00
|
|
|
</SELECT><BR>
|
2002-01-06 19:05:37 -07:00
|
|
|
</util:font>
|
|
|
|
<% } else if (data.testDisplayMode(FindView.FD_USERS)) { %>
|
|
|
|
<util:comment>Find Users form</util:comment>
|
|
|
|
<util:font color="content.fg" size="content-heading"><B>Find Users:</B></util:font>
|
|
|
|
<util:font color="content.fg" size="content">
|
2001-12-07 22:02:00 -07:00
|
|
|
Display all users whose
|
|
|
|
<SELECT NAME="field" SIZE=1>
|
|
|
|
<OPTION VALUE="<%= SearchMode.FIELD_USER_NAME %>"
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testField(SearchMode.FIELD_USER_NAME)) { %>SELECTED<% } %> >user name</OPTION>
|
2001-12-07 22:02:00 -07:00
|
|
|
<OPTION VALUE="<%= SearchMode.FIELD_USER_DESCRIPTION %>"
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testField(SearchMode.FIELD_USER_DESCRIPTION)) { %>SELECTED<% } %> >description</OPTION>
|
2001-12-07 22:02:00 -07:00
|
|
|
<OPTION VALUE="<%= SearchMode.FIELD_USER_GIVEN_NAME %>"
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testField(SearchMode.FIELD_USER_GIVEN_NAME)) { %>SELECTED<% } %> >first name</OPTION>
|
2001-12-07 22:02:00 -07:00
|
|
|
<OPTION VALUE="<%= SearchMode.FIELD_USER_FAMILY_NAME %>"
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testField(SearchMode.FIELD_USER_FAMILY_NAME)) { %>SELECTED<% } %> >last name</OPTION>
|
2001-12-07 22:02:00 -07:00
|
|
|
</SELECT><BR>
|
2002-01-06 19:05:37 -07:00
|
|
|
</util:font>
|
|
|
|
<% } else if (data.testDisplayMode(FindView.FD_CATEGORIES)) { %>
|
2002-01-16 14:17:05 -07:00
|
|
|
<global:categories_enabled>
|
|
|
|
<util:comment>Find Categories form</util:comment>
|
|
|
|
<util:font color="content.fg" size="content-heading"><B>Find Categories:</B></util:font>
|
|
|
|
<util:font color="content.fg" size="content">
|
|
|
|
Display all categories whose name
|
|
|
|
</util:font>
|
|
|
|
</global:categories_enabled>
|
|
|
|
<global:categories_disabled>
|
|
|
|
<%-- shouldn't get here --%>
|
|
|
|
<H1><FONT COLOR="red">Display parameter invalid!</FONT></H1>
|
|
|
|
</global:categories_disabled>
|
2001-12-07 22:02:00 -07:00
|
|
|
<% } else { %>
|
|
|
|
<%-- shouldn't get here --%>
|
|
|
|
<H1><FONT COLOR="red">Display parameter invalid!</FONT></H1>
|
|
|
|
<% } // end if %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:font color="content.fg" size="content">
|
2001-12-07 22:02:00 -07:00
|
|
|
<SELECT NAME="mode" SIZE=1>
|
|
|
|
<OPTION VALUE="<%= SearchMode.SEARCH_PREFIX %>"
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testMode(SearchMode.SEARCH_PREFIX)) { %>SELECTED<% } %> >starts with the string</OPTION>
|
2001-12-07 22:02:00 -07:00
|
|
|
<OPTION VALUE="<%= SearchMode.SEARCH_SUBSTRING %>"
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testMode(SearchMode.SEARCH_SUBSTRING)) { %>SELECTED<% } %> >contains the string</OPTION>
|
2001-12-07 22:02:00 -07:00
|
|
|
<OPTION VALUE="<%= SearchMode.SEARCH_REGEXP %>"
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testMode(SearchMode.SEARCH_REGEXP)) { %>SELECTED<% } %> >matches the regular
|
|
|
|
expression</OPTION>
|
2001-12-07 22:02:00 -07:00
|
|
|
</SELECT>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testDisplayMode(FindView.FD_CATEGORIES)) { %><BR><% } else { %> <% } %>
|
2001-12-07 22:02:00 -07:00
|
|
|
<SPAN CLASS="cinput"><INPUT TYPE=TEXT CLASS="cinput" NAME="term" SIZE=32 MAXLENGTH=255
|
2002-01-06 19:05:37 -07:00
|
|
|
VALUE="<%= data.getTerm() %>"></SPAN><BR>
|
|
|
|
</util:font>
|
|
|
|
<% } // end if %>
|
|
|
|
<util:button id="search" type="input"/>
|
|
|
|
</DIV></util:form>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
|
|
|
<%-- Display the current category --%>
|
2002-01-16 14:17:05 -07:00
|
|
|
<global:categories_enabled>
|
|
|
|
<% cat = data.getCategory(); %>
|
|
|
|
<% if (cat!=null) { %>
|
|
|
|
<util:comment>Display Category Name</util:comment>
|
|
|
|
<HR><util:font color="content.fg" size="subhead">
|
|
|
|
<B>Category:
|
|
|
|
<% if (cat.getCategoryID()<0) { %>
|
|
|
|
Top
|
|
|
|
<% } else { %>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">find.js.vs?disp=<%= FindView.FD_COMMUNITIES %></util:href>
|
|
|
|
<util:text>Top</util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% for (int i=0; i<cat.getNumLevels(); i++) { %>
|
|
|
|
<% if (i<(cat.getNumLevels()-1)) { %>
|
|
|
|
:
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
find.js.vs?disp=<%= FindView.FD_COMMUNITIES %>&cat=<%= cat.getIDAtLevel(i) %>
|
|
|
|
</util:href>
|
|
|
|
<util:text><util:escape><%= cat.getTitleAtLevel(i) %></util:escape></util:text>
|
2002-01-06 19:05:37 -07:00
|
|
|
</util:xlink>
|
2002-01-16 14:17:05 -07:00
|
|
|
<% } else { %>
|
|
|
|
: <util:escape><%= cat.getTitleAtLevel(i) %></util:escape>
|
|
|
|
<% } // end if %>
|
|
|
|
<% } // end for %>
|
|
|
|
<% } // end if (displaying the subcategory tree) %>
|
|
|
|
</B><P>
|
|
|
|
|
|
|
|
<%-- Display the subcategory list --%>
|
|
|
|
<% List subcats = data.getSubCategories(); %>
|
|
|
|
<% if ((subcats!=null) && (subcats.size()>0)) { %>
|
|
|
|
<util:comment>Display Subcategory List</util:comment>
|
|
|
|
<B>Subcategories:</B><BR>
|
|
|
|
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=2>
|
|
|
|
<% Iterator it = subcats.iterator(); %>
|
|
|
|
<% while (it.hasNext()) { %>
|
|
|
|
<TR VALIGN=TOP>
|
|
|
|
<TD ALIGN=CENTER WIDTH=14><util:stdbullet/></TD>
|
|
|
|
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
|
|
|
<% CategoryDescriptor c = (CategoryDescriptor)(it.next()); %>
|
|
|
|
<B><util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
find.js.vs?disp=<%= FindView.FD_COMMUNITIES %>&cat=<%= c.getLinkedCategoryID() %>
|
|
|
|
</util:href>
|
|
|
|
<util:text>
|
|
|
|
<util:escape><%= c.getTitleAtLevel(c.getNumLevels()-1) %></util:escape>
|
|
|
|
</util:text>
|
|
|
|
</util:xlink>
|
|
|
|
<% if (c.isSymbolicLink()) { %><EM>@</EM><% } %>
|
|
|
|
</util:font></TD>
|
|
|
|
</TR>
|
|
|
|
<% } // end while %>
|
|
|
|
</TABLE>
|
|
|
|
<% } // end if (displaying subcategory list) %>
|
|
|
|
</util:font>
|
|
|
|
<% } // end if (category specified) %>
|
|
|
|
</global:categories_enabled>
|
2002-01-06 19:05:37 -07:00
|
|
|
|
|
|
|
<%-- Display the search results --%>
|
|
|
|
<% List results = data.getResults(); %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% if (results!=null) { %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:comment>Display Search Results</util:comment>
|
2001-01-31 13:55:37 -07:00
|
|
|
<%
|
|
|
|
// Determine the number of results to display and whether to display a "next" button
|
|
|
|
int dcount = results.size();
|
|
|
|
boolean go_next = false;
|
2002-01-06 19:05:37 -07:00
|
|
|
if (dcount>data.getMaxResults())
|
2001-01-31 13:55:37 -07:00
|
|
|
{ // there's a "next"
|
2002-01-06 19:05:37 -07:00
|
|
|
dcount = data.getMaxResults();
|
2001-01-31 13:55:37 -07:00
|
|
|
go_next = true;
|
|
|
|
|
|
|
|
} // end if
|
|
|
|
%>
|
|
|
|
<HR>
|
|
|
|
<TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER><TR VALIGN=MIDDLE>
|
2002-01-06 19:05:37 -07:00
|
|
|
<TD WIDTH="50%" ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
2001-01-31 13:55:37 -07:00
|
|
|
<%-- The initial search results --%>
|
2001-11-07 01:43:09 -07:00
|
|
|
<B><% if (cat!=null) { %>Communities in Category<% } else { %>Search Results<% } %></B>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% if (data.getFindCount()>0) { %>
|
|
|
|
(Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of
|
|
|
|
<%= data.getFindCount() %>)
|
|
|
|
<% } else { %>(None)<% } %>
|
2002-01-06 19:05:37 -07:00
|
|
|
</util:font></TD>
|
2001-01-31 13:55:37 -07:00
|
|
|
|
2001-10-30 19:13:02 -07:00
|
|
|
<TD WIDTH="50%" ALIGN=RIGHT CLASS="content">
|
2001-01-31 13:55:37 -07:00
|
|
|
<% if (go_next || (data.getOffset()>0)) { %>
|
|
|
|
<%-- The navigational form that allows us to page through the results --%>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:comment>Navigational form</util:comment>
|
|
|
|
<util:form action="find.js.vs" type="servlet"><DIV CLASS="content">
|
|
|
|
<INPUT TYPE=HIDDEN NAME="disp" VALUE="<%= data.getDisplayMode() %>">
|
2001-01-31 13:55:37 -07:00
|
|
|
<% if (cat!=null) { %><INPUT TYPE=HIDDEN NAME="cat" VALUE="<%= cat.getCategoryID() %>"><% } %>
|
|
|
|
<INPUT TYPE=HIDDEN NAME="ofs" VALUE="<%= data.getOffset() %>">
|
2002-01-06 19:05:37 -07:00
|
|
|
<INPUT TYPE=HIDDEN NAME="field" VALUE="<%= data.getField() %>">
|
|
|
|
<INPUT TYPE=HIDDEN NAME="mode" VALUE="<%= data.getMode() %>">
|
|
|
|
<INPUT TYPE=HIDDEN NAME="term" VALUE="<%= data.getTerm() %>">
|
2001-01-31 13:55:37 -07:00
|
|
|
<INPUT TYPE=HIDDEN NAME="fcount" VALUE="<%= data.getFindCount() %>">
|
|
|
|
<% if (data.getOffset()>0) { %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:button id="previous" type="input"/>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% } else { %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:button id="_null_"/>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% } // end if %>
|
|
|
|
|
|
|
|
<% if (go_next) { %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:button id="next" type="input"/>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% } else { %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:button id="_null_"/>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% } // end if %>
|
2002-01-06 19:05:37 -07:00
|
|
|
</DIV></util:form>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% } else { %> <% } %>
|
|
|
|
</TD>
|
|
|
|
</TR></TABLE><BR>
|
|
|
|
|
|
|
|
<%-- Display the results of the search --%>
|
2002-01-06 19:05:37 -07:00
|
|
|
<TABLE BORDER=0 ALIGN=LEFT CELLPADDING=0 CELLSPACING=4>
|
|
|
|
<% if (data.testDisplayMode(FindView.FD_POSTS) && (dcount>0)) { %>
|
2001-12-07 22:02:00 -07:00
|
|
|
<TR VALIGN=TOP>
|
|
|
|
<TH ALIGN=LEFT CLASS="CONTENT">
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:font color="content.fg" size="content"><B><U>Post Link</U></B></util:font>
|
2001-12-07 22:02:00 -07:00
|
|
|
</TH>
|
|
|
|
<TH ALIGN=LEFT CLASS="CONTENT">
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:font color="content.fg" size="content"><B><U>Author</U></B></util:font>
|
2001-12-07 22:02:00 -07:00
|
|
|
</TH>
|
|
|
|
<TH ALIGN=LEFT CLASS="CONTENT">
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:font color="content.fg" size="content"><B><U>Post Date</U></B></util:font>
|
2001-12-07 22:02:00 -07:00
|
|
|
</TH>
|
|
|
|
<TH ALIGN=LEFT CLASS="CONTENT">
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:font color="content.fg" size="content"><B><U>Lines</U></B></util:font>
|
2001-12-07 22:02:00 -07:00
|
|
|
</TH>
|
|
|
|
<TH ALIGN=LEFT CLASS="CONTENT"> </TH>
|
|
|
|
</TR>
|
|
|
|
<% } // end if %>
|
2001-01-31 13:55:37 -07:00
|
|
|
<% for (int i=0; i<dcount; i++) { %>
|
|
|
|
<TR VALIGN=TOP>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testDisplayMode(FindView.FD_POSTS)) { %>
|
2001-12-07 22:02:00 -07:00
|
|
|
<% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">go/<%= post.getIdentifier() %></util:href>
|
|
|
|
<util:text><%= post.getIdentifier() %></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
</util:font></TD>
|
|
|
|
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">user/<%= post.getAuthor() %></util:href>
|
|
|
|
<util:text><%= post.getAuthor() %></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
</util:font></TD>
|
|
|
|
<TD ALIGN=LEFT CLASS="content" NOWRAP><util:font color="content.fg" size="content">
|
|
|
|
<%= data.formatDate(post.getPostDate()) %>
|
|
|
|
</util:font></TD>
|
|
|
|
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
2001-12-07 22:02:00 -07:00
|
|
|
<%= post.getLineCount() %>
|
2002-01-06 19:05:37 -07:00
|
|
|
</util:font></TD>
|
|
|
|
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
|
|
|
<util:escape><%= post.getText() %></util:escape>
|
|
|
|
</util:font></TD>
|
2001-12-07 22:02:00 -07:00
|
|
|
<% } else { %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<TD ALIGN=CENTER WIDTH=14><util:stdbullet/></TD>
|
|
|
|
<TD ALIGN=LEFT CLASS="content"><util:font color="content.fg" size="content">
|
2001-12-07 22:02:00 -07:00
|
|
|
<% Object item = results.get(i); %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% if (data.testDisplayMode(FindView.FD_COMMUNITIES)) { %>
|
2001-12-07 22:02:00 -07:00
|
|
|
<%
|
|
|
|
CommunityContext comm = (CommunityContext)item;
|
2002-01-06 19:05:37 -07:00
|
|
|
String host_name = FindView.getCommunityHostName(comm);
|
|
|
|
int members = FindView.getCommunityMemberCount(comm);
|
2001-12-07 22:02:00 -07:00
|
|
|
%>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">sig/<%= comm.getAlias() %></util:href>
|
|
|
|
<util:text><util:escape><%= comm.getName() %></util:escape></util:text>
|
|
|
|
</util:xlink><BR>
|
2001-12-07 22:02:00 -07:00
|
|
|
<% if (host_name!=null) { %>
|
2002-01-06 19:05:37 -07:00
|
|
|
Host:
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">user/<%= host_name %></util:href>
|
|
|
|
<util:text><%= host_name %></util:text>
|
|
|
|
</util:xlink>
|
2001-12-07 22:02:00 -07:00
|
|
|
<% } // end if (got host name) %>
|
|
|
|
<% if (members>=0) { %>
|
|
|
|
<% if (host_name!=null) { %> - <% } %>
|
|
|
|
<%= members %> members
|
|
|
|
<% } // end if (got member count) %>
|
|
|
|
<% if ((host_name!=null) || (members>=0)) { %><BR><% } %>
|
2002-01-06 19:05:37 -07:00
|
|
|
Latest activity: <%= data.getActivityString(comm.getLastAccessDate()) %><BR>
|
|
|
|
<EM><util:escape><%= comm.getSynopsis() %></util:escape></EM>
|
|
|
|
<% } else if (data.testDisplayMode(FindView.FD_USERS)) { %>
|
2001-12-07 22:02:00 -07:00
|
|
|
<% UserFound uf = (UserFound)item; %>
|
2002-01-06 19:05:37 -07:00
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">user/<%= uf.getName() %></util:href>
|
|
|
|
<util:text><%= uf.getName() %></util:text>
|
|
|
|
</util:xlink><BR>
|
|
|
|
<util:escape><%= uf.getGivenName() %></util:escape>
|
|
|
|
<util:escape><%= uf.getFamilyName() %></util:escape>,
|
|
|
|
from <util:escape><%= uf.getLocality() %></util:escape>,
|
|
|
|
<util:escape><%= uf.getRegion() %></util:escape> <%= uf.getCountry() %>
|
|
|
|
<% if (uf.getDescription()!=null) { %>
|
|
|
|
<BR><EM><util:escape><%= uf.getDescription() %></util:escape></EM>
|
|
|
|
<% } // end if %>
|
|
|
|
<% } else if (data.testDisplayMode(FindView.FD_CATEGORIES)) { %>
|
2002-01-16 14:17:05 -07:00
|
|
|
<global:categories_enabled>
|
|
|
|
<% CategoryDescriptor cd = (CategoryDescriptor)item; %>
|
|
|
|
<util:xlink>
|
|
|
|
<util:href type="servlet">
|
|
|
|
find.js.vs?disp=<%= FindView.FD_COMMUNITIES %>&cat=<%= cd.getLinkedCategoryID() %>
|
|
|
|
</util:href>
|
|
|
|
<util:text><util:escape><%= cd.toString() %></util:escape></util:text>
|
|
|
|
</util:xlink>
|
|
|
|
</global:categories_enabled>
|
2002-01-06 19:05:37 -07:00
|
|
|
<% } // end if %>
|
|
|
|
</util:font></TD>
|
2001-12-07 22:02:00 -07:00
|
|
|
<% } // end if %>
|
2001-01-31 13:55:37 -07:00
|
|
|
</TR>
|
|
|
|
<% } // end for %>
|
|
|
|
</TABLE><BR CLEAR=LEFT>
|
|
|
|
<% } // end if (results found) %>
|