Update of 
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
In directory 
james.mmbase.org:/tmp/cvs-serv13916/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl

Modified Files:
        searchlist.xsl 
Log Message:
CMSC-1038 - Edit wizard does not display multiple fields in Image search 
window: added for-each function.


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
See also: http://www.mmbase.org/jira/browse/CMSC-1038


Index: searchlist.xsl
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/searchlist.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- searchlist.xsl      19 Oct 2007 20:09:46 -0000      1.2
+++ searchlist.xsl      1 Aug 2008 13:22:42 -0000       1.3
@@ -92,11 +92,21 @@
                     </a>
                   </td>
                   <td>
+                    <xsl:for-each select="field">
+                       <xsl:if test="string-length(text())>0">
+                          <xsl:choose>
+                             <xsl:when test="position() = 1">
                     <b>
-                      <xsl:value-of select="field[1]" />
+                               <xsl:value-of select="." />
                     </b>
+                             </xsl:when>
+                             <xsl:otherwise>
                     <br />
-                    <xsl:value-of select="field[2]" />
+                                <xsl:value-of select="." />
+                             </xsl:otherwise>
+                          </xsl:choose>
+                       </xsl:if>
+                    </xsl:for-each>
                   </td>
                 </xsl:when>
                 <xsl:when test="@type=&apos;audioparts&apos;">
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to