- all servletmodules and all modules now use log4j for logging
[mir.git] / etc / open / search_results.template
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
3 <html>
4 <head>
5         <title>${lang("search.htmltitle")}</title>
6 </head>
7
8 <body bgcolor="White" text="Black" link="#006600" vlink="#666666" alink="Red">
9
10 <table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#cccccc">
11         <tr>
12                 <td align="center" bgcolor="#666666">
13                 <font color="White">${lang("search.title")}</font></td>
14         </tr>
15         <tr>
16                 <td bgcolor="#eeeeee"><font color="#000000">
17
18 <form method="get" action="/Mir/servlet/OpenMir">
19 <input type="hidden" name="do" value="search"/>
20 <h2>Search for the following in title,content, or description:</h2>
21 <input type="text" name="search_content" value="${data.search_content}" /><br><br>
22
23 <h2>all words or any of the words?</h2>
24 <if data.search_boolean == "and">
25 <input type="radio" name="search_boolean" value="and" checked="true">all words
26 <input type="radio" name="search_boolean" value="or">any of the words
27 <else>
28 <input type="radio" name="search_boolean" value="and">all words
29 <input type="radio" name="search_boolean" value="or" checked="true">any of the words
30 </if>
31
32 <h2>Search for articles written by:</h2>
33 <input type="text" name="search_creator" value="${data.search_creator}" /><br><br>
34
35 <h2>Search in the following topic only:</h2>
36 <select name="search_topic">
37 <if (!data.search_topic) || (data.search_topic == "") >
38 <option value="" selected>All topics
39 <else>
40 <option value="">All topics
41 </if>
42 <list data.topics as topic>
43 <if topic.value != "--" >
44 <if data.search_topic == topic.value>
45 <option selected>${topic.value}
46 <else>
47 <option>${topic.value}
48 </if>
49 </if>
50 </list>
51 </select>
52
53 <h2>only return content with images?</h2>
54 <if data.search_hasImages == "y">
55 <input type="radio" name="search_hasImages" value="y" checked="true">Yes
56 <input type="radio" name="search_hasImages" value="n">No
57 <else>
58 <input type="radio" name="search_hasImages" value="y">Yes
59 <input type="radio" name="search_hasImages" value="n" checked="true">No
60 </if>
61
62 <h2>only return content with audio?</h2>
63 <if data.search_hasAudio == "y">
64 <input type="radio" name="search_hasAudio" value="y" checked="true">Yes
65 <input type="radio" name="search_hasAudio" value="n">No
66 <else>
67 <input type="radio" name="search_hasAudio" value="y">Yes
68 <input type="radio" name="search_hasAudio" value="n" checked="true">No
69 </if>
70
71 <h2>only return content with video?</h2>
72 <if data.search_hasVideo == "y">
73 <input type="radio" name="search_hasVideo" value="y" checked="true">Yes
74 <input type="radio" name="search_hasVideo" value="n">No
75 <else>
76 <input type="radio" name="search_hasVideo" value="y">Yes
77 <input type="radio" name="search_hasVideo" value="n" checked="true">No
78 </if>
79 <h2>how would you like the results sorted?</h2>
80 <input type="radio" name="search_sort" value="score" <if data.search_sort =="score" || !data.search_sort || data.search_sort == "" >checked="true"</if>>By score
81 <input type="radio" name="search_sort" value="date_desc" <if data.search_sort =="date_desc">checked="true"</if>>Newest first
82 <input type="radio" name="search_sort" value="date_asc" <if data.search_sort =="date_asc">checked="true"</if>>Oldest first
83
84
85
86 <br>
87 <input type="submit" value="Search!" />
88 Previous Lucene Query was: ${data.queryString}
89 </form>
90
91 <br>
92 ${lang("search.info")}
93 <br>
94 Number of hits = ${data.numberOfHits}
95 <br>
96 <list data.hits as h>
97 Title: <a href='/${lang("langcode")}${h.where}'>${h.title}</a> 
98 <if h.hasAudio=="y">
99 <img src="/img/audio_big.gif">
100 </if>
101 <if h.hasVideo == "y">
102 <img src="/img/video_big.gif">
103 </if>
104 <br >
105 Author: ${h.creator}<br >
106 Date: ${h.webdb_create}<br>
107 Description: ${h.description}<br >
108 <list h.images as image>
109 <img src="${image}">
110 </list>
111 <br>
112 </list>
113         </font>
114         </td>
115 </tr>
116
117 <tr>
118         <td valign="top" align="center" bgcolor="#666666">
119         <a href="javascript:history.go(-2)"><font color="White"><b>&gt;&gt; ${lang("postingdone.back")}</b></font></a>
120                 </td>
121         </tr>
122 </table>
123 </body>
124 </html>
125