| 1 |
<% String pageTitle = "Published Data"; %> |
|---|
| 2 |
<%@ include file="header2.jsp" %> |
|---|
| 3 |
|
|---|
| 4 |
<%@ page import="java.util.*" %> |
|---|
| 5 |
<%@ page import="com.qwirx.lex.Search" %> |
|---|
| 6 |
<%@ page import="com.qwirx.lex.Search.SearchResult" %> |
|---|
| 7 |
<%@ page import="com.qwirx.lex.hebrew.*" %> |
|---|
| 8 |
<%@ page import="com.qwirx.lex.morph.*" %> |
|---|
| 9 |
<%@ page import="jemdros.*" %> |
|---|
| 10 |
<%@ page import="org.aptivate.webutils.EditField" %> |
|---|
| 11 |
|
|---|
| 12 |
<% |
|---|
| 13 |
EditField field = new EditField(request); |
|---|
| 14 |
List<String> books = emdros.getEnumerationConstantNames("book_name_e"); |
|---|
| 15 |
|
|---|
| 16 |
int maxResults = 100; |
|---|
| 17 |
|
|---|
| 18 |
try |
|---|
| 19 |
{ |
|---|
| 20 |
maxResults = Integer.parseInt(request.getParameter("max_results")); |
|---|
| 21 |
} |
|---|
| 22 |
catch (Exception e) |
|---|
| 23 |
{ |
|---|
| 24 |
// do nothing |
|---|
| 25 |
} |
|---|
| 26 |
|
|---|
| 27 |
Search search = new Search(emdros); |
|---|
| 28 |
search.setMaxResults(maxResults); |
|---|
| 29 |
List<SearchResult> results = search.advanced("published = 1"); |
|---|
| 30 |
%> |
|---|
| 31 |
|
|---|
| 32 |
<h3>Published Clauses</h3> |
|---|
| 33 |
|
|---|
| 34 |
<% |
|---|
| 35 |
if (results.size() == 0) |
|---|
| 36 |
{ |
|---|
| 37 |
%><h4>No matches found</h4><% |
|---|
| 38 |
} |
|---|
| 39 |
else |
|---|
| 40 |
{ |
|---|
| 41 |
int numShown = search.getResultCount(); |
|---|
| 42 |
%><h4>Displaying first <%= results.size() %> of |
|---|
| 43 |
<%= search.getResultCount() %> results.</h4><% |
|---|
| 44 |
%> |
|---|
| 45 |
<table class="search_results"> |
|---|
| 46 |
<tr> |
|---|
| 47 |
<th>Verb</th> |
|---|
| 48 |
<th>Logical Structure</th> |
|---|
| 49 |
<th>Reference</th> |
|---|
| 50 |
</tr> |
|---|
| 51 |
<% |
|---|
| 52 |
|
|---|
| 53 |
for (Iterator<SearchResult> i = results.iterator(); i.hasNext();) |
|---|
| 54 |
{ |
|---|
| 55 |
SearchResult result = i.next(); |
|---|
| 56 |
|
|---|
| 57 |
%> |
|---|
| 58 |
<tr> |
|---|
| 59 |
<td><%= |
|---|
| 60 |
HebrewConverter.toHebrew(result.getPredicate()) |
|---|
| 61 |
%></td> |
|---|
| 62 |
<td><%= |
|---|
| 63 |
HebrewConverter.toHtml(result.getLogicalStructure()) |
|---|
| 64 |
%></td> |
|---|
| 65 |
<td><a href="<%= result.getLinkUrl() %>"><%= |
|---|
| 66 |
result.getLocation() |
|---|
| 67 |
%></a></td> |
|---|
| 68 |
</tr> |
|---|
| 69 |
<% |
|---|
| 70 |
} |
|---|
| 71 |
|
|---|
| 72 |
%> |
|---|
| 73 |
</table> |
|---|
| 74 |
<% |
|---|
| 75 |
} |
|---|
| 76 |
%> |
|---|
| 77 |
|
|---|
| 78 |
<%@ include file="footer.jsp" %> |
|---|