language for comments now properly supported
[mir.git] / etc / open / search_results.template
index 59e9f40..61dc957 100755 (executable)
        <tr>
                <td bgcolor="#eeeeee"><font color="#000000">
 
+<form method="get" action="/Mir/servlet/OpenMir">
+<input type="hidden" name="do" value="search"/>
+<h2>Search for the following in title,content, or description:</h2>
+<input type="text" name="search_content" value="${data.search_content}" /><br><br>
+
+<h2>all words or any of the words?</h2>
+<if data.search_boolean == "and">
+<input type="radio" name="search_boolean" value="and" checked="true">all words
+<input type="radio" name="search_boolean" value="or">any of the words
+<else>
+<input type="radio" name="search_boolean" value="and">all words
+<input type="radio" name="search_boolean" value="or" checked="true">any of the words
+</if>
+
+<h2>Search for articles written by:</h2>
+<input type="text" name="search_creator" value="${data.search_creator}" /><br><br>
+
+<h2>Search in the following topic only:</h2>
+<select name="search_topic">
+<if (!data.search_topic) || (data.search_topic == "") >
+<option value="" selected>All topics
+<else>
+<option value="">All topics
+</if>
+<list data.topics as topic>
+<if topic.value != "--" >
+<if data.search_topic == topic.value>
+<option selected>${topic.value}
+<else>
+<option>${topic.value}
+</if>
+</if>
+</list>
+</select>
+
+<h2>only return content with images?</h2>
+<if data.search_hasImages == "y">
+<input type="radio" name="search_hasImages" value="y" checked="true">Yes
+<input type="radio" name="search_hasImages" value="n">No
+<else>
+<input type="radio" name="search_hasImages" value="y">Yes
+<input type="radio" name="search_hasImages" value="n" checked="true">No
+</if>
+
+<h2>only return content with audio?</h2>
+<if data.search_hasAudio == "y">
+<input type="radio" name="search_hasAudio" value="y" checked="true">Yes
+<input type="radio" name="search_hasAudio" value="n">No
+<else>
+<input type="radio" name="search_hasAudio" value="y">Yes
+<input type="radio" name="search_hasAudio" value="n" checked="true">No
+</if>
+
+<h2>only return content with video?</h2>
+<if data.search_hasVideo == "y">
+<input type="radio" name="search_hasVideo" value="y" checked="true">Yes
+<input type="radio" name="search_hasVideo" value="n">No
+<else>
+<input type="radio" name="search_hasVideo" value="y">Yes
+<input type="radio" name="search_hasVideo" value="n" checked="true">No
+</if>
+<h2>how would you like the results sorted?</h2>
+<input type="radio" name="search_sort" value="score" <if data.search_sort =="score" || !data.search_sort || data.search_sort == "" >checked="true"</if>>By score
+<input type="radio" name="search_sort" value="date_desc" <if data.search_sort =="date_desc">checked="true"</if>>Newest first
+<input type="radio" name="search_sort" value="date_asc" <if data.search_sort =="date_asc">checked="true"</if>>Oldest first
+
+
+
+<br>
+<input type="submit" name="search_submit" value="Search!" />
+Previous Lucene Query was: ${data.queryString} <br>
+<if data.hasPrevious=="y">     
+<input type="submit" name="search_submit" value="Back" />      
+</if>
+<if data.hasNext=="y"> 
+<input type="submit" name="search_submit" value="Forward" />   
+</if>
+</form>
 
 <br>
 ${lang("search.info")}
@@ -22,8 +100,21 @@ ${lang("search.info")}
 Number of hits = ${data.numberOfHits}
 <br>
 <list data.hits as h>
-Title: <a href='/${lang("langcode")}${h.where}'>${h.title}</a><br >
+Title: <a href='/${lang("langcode")}${h.where}'>${h.title}</a> 
+<if h.hasAudio=="y">
+<img src="/img/audio_big.gif">
+</if>
+<if h.hasVideo == "y">
+<img src="/img/video_big.gif">
+</if>
+<br >
 Author: ${h.creator}<br >
+Date: ${h.webdb_create_formatted}<br>
+Description: ${h.description}<br >
+<list h.images as image>
+<img src="${image}">
+</list>
+<br>
 </list>
        </font>
        </td>