Update of /var/cvs/applications/searchrelate/META-INF/tags/mm/searchrelate
In directory james.mmbase.org:/tmp/cvs-serv28942

Modified Files:
        relate.tagx 
Log Message:
made useage of 'current' query optional. If not used, the tool is only a 
searcher


See also: 
http://cvs.mmbase.org/viewcvs/applications/searchrelate/META-INF/tags/mm/searchrelate


Index: relate.tagx
===================================================================
RCS file: 
/var/cvs/applications/searchrelate/META-INF/tags/mm/searchrelate/relate.tagx,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- relate.tagx 14 Apr 2008 16:20:24 -0000      1.17
+++ relate.tagx 15 Apr 2008 13:40:21 -0000      1.18
@@ -6,7 +6,7 @@
     >
   <!--
       @author Michiel Meeuwissen
-      @version $Id: relate.tagx,v 1.17 2008/04/14 16:20:24 michiel Exp $
+      @version $Id: relate.tagx,v 1.18 2008/04/15 13:40:21 michiel Exp $
   -->
   <jsp:directive.tag
       example="See /mmexamples/searchrelate"
@@ -19,7 +19,7 @@
   <jsp:directive.attribute name="repository"        
type="org.mmbase.bridge.NodeQuery"  required="true"
                            description="An mmbase Query describing in which 
list the searcher must search" />
 
-  <jsp:directive.attribute name="current"           
type="org.mmbase.bridge.NodeQuery"  required="true"
+  <jsp:directive.attribute name="current"           
type="org.mmbase.bridge.NodeQuery"
                            description="An mmbase Query describing which list 
is considered to represent already 'related' nodes" />
 
   <jsp:directive.attribute name="submit"            type="java.lang.String"
@@ -84,6 +84,7 @@
       <c:if test="${! empty transaction}">
         <span class="transactionname" style="display: 
none;">${transaction}</span>
       </c:if>
+      <c:if test="${! empty current}">
       <div  class="mm_relate_current searchable">
         <jsp:invoke fragment="currentTitle" />
         <mm:listnodescontainer clone="current">
@@ -106,6 +107,7 @@
           <mm:param name="id">mm_related_${seq}_current</mm:param>
         </mm:include>
       </div>
+      </c:if>
       <div  class="mm_relate_repository searchable">
         <jsp:invoke fragment="repositoryTitle" />
         <div class="searchform">
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to