Update of /var/cvs/contributions/lucene/templates
In directory james.mmbase.org:/tmp/cvs-serv18049

Modified Files:
        index.jspx search.jspx 
Log Message:



See also: http://cvs.mmbase.org/viewcvs/contributions/lucene/templates


Index: index.jspx
===================================================================
RCS file: /var/cvs/contributions/lucene/templates/index.jspx,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- index.jspx  29 Jan 2008 21:38:51 -0000      1.30
+++ index.jspx  1 Feb 2008 11:11:06 -0000       1.31
@@ -51,6 +51,17 @@
             <th>search</th>
             <th>full index</th>
           </tr>
+          <mm:import externid="clear" />
+          <mm:present referid="clear">
+            <mm:function module="lucene" referids="[EMAIL PROTECTED]" 
name="clearDirectory" />
+          </mm:present>
+          <mm:import externid="clearcopy" />
+          <mm:present referid="clearcopy">
+            <mm:functioncontainer>
+              <mm:param name="copy" value="true" />
+              <mm:function module="lucene" referids="[EMAIL PROTECTED]" 
name="clearDirectory" />
+            </mm:functioncontainer>
+          </mm:present>
           <mm:listfunction id="index" module="lucene" name="list">
             <c:catch var="exception1">
               <tr>
@@ -70,11 +81,19 @@
                   <mm:function module="lucene" referids="index" 
name="searchsize">
                     ${_}
                   </mm:function>
+                  <mm:link>
+                    <mm:param name="clear">${index}</mm:param>
+                    (<a href="${_}">X</a>)
+                  </mm:link>
                   <mm:functioncontainer>
                     <mm:param name="copy" value="true" />
                     <mm:function referids="index" module="lucene" 
name="searchsize">
                       /${_}
                     </mm:function>
+                    <mm:link>
+                      <mm:param name="clearcopy">${index}</mm:param>
+                      (<a href="${_}">X</a>)
+                    </mm:link>
                   </mm:functioncontainer>
                 </td>
                 <td>


Index: search.jspx
===================================================================
RCS file: /var/cvs/contributions/lucene/templates/search.jspx,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- search.jspx 12 Oct 2007 14:22:29 -0000      1.12
+++ search.jspx 1 Feb 2008 11:11:06 -0000       1.13
@@ -1,4 +1,5 @@
 <html xmlns="http://www.w3.org/1999/xhtml";
+      xmlns:c="http://java.sun.com/jsp/jstl/core";
       xmlns:jsp="http://java.sun.com/JSP/Page";
       xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0";>
   <jsp:output doctype-root-element="html"
@@ -72,6 +73,8 @@
 
         <mm:present referid="value" >
           <table>
+
+            <c:catch var="toomanyclauses">
             <mm:nodelistfunction module="lucene" name="search" 
referids="value,index,max,offset,extraconstraints,sortfields,fields,analyzer,filter">
               <mm:first>
                 <tr>
@@ -129,6 +132,8 @@
                 </td>
               </tr>
             </mm:nodelistfunction>
+            </c:catch>
+            ${toomanyclauses}
           </table>
         </mm:present>
 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to