Update of /var/cvs/applications/searchrelate/templates
In directory james.mmbase.org:/tmp/cvs-serv5695
Modified Files:
page.jspx
Log Message:
made it possible to search on number too
See also: http://cvs.mmbase.org/viewcvs/applications/searchrelate/templates
Index: page.jspx
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/page.jspx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- page.jspx 17 Apr 2008 20:00:00 -0000 1.6
+++ page.jspx 21 Apr 2008 10:53:24 -0000 1.7
@@ -9,7 +9,7 @@
Presents a table with one page of query results. Plus paging to other
pages (in tfoot).
Used in ajax-calls, but can also be directly included with mm:include
(for initial results).
@todo Searching only happens in actual mmbase queries now. How about
lucene queries?
- @version $Id: page.jspx,v 1.6 2008/04/17 20:00:00 andre Exp $
+ @version $Id: page.jspx,v 1.7 2008/04/21 10:53:24 michiel Exp $
-->
<jsp:output omit-xml-declaration="true" />
<mm:content expires="0" type="application/xml">
@@ -29,6 +29,10 @@
<mm:constraint field="${field.current.name}" operator="LIKE"
value="%${search}%" casesensitive="false"/>
</c:if>
</mm:fieldlist>
+ <mm:compare regexp="[0-9]+" referid="search">
+ <mm:constraint field="number" value="${search}" />
+
+ </mm:compare>
</mm:composite>
</c:if>
<mm:size id="size" write="false" />
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs