Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
In directory
james.mmbase.org:/tmp/cvs-serv9847/edit-webapp/src/webapp/editors/editwizards_new/xsl
Modified Files:
wizard.xsl
Log Message:
CMSC-268, ASSET:Searching for primary and secondary content for an article
using the more advanced custom search windows,add assetsselector in editwizard
for Searching
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-268
Index: wizard.xsl
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/wizard.xsl,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- wizard.xsl 15 Dec 2008 05:08:37 -0000 1.18
+++ wizard.xsl 26 Dec 2008 09:05:04 -0000 1.19
@@ -468,6 +468,44 @@
</tr>
</table>
</xsl:for-each>
+ <xsl:for-each select="comma...@name='assetsselector']">
+ <table class="searchcontent">
+ <tr>
+ <xsl:if test="prompt">
+ <td class="searchprompt"><xsl:call-template name="prompt"/></td>
+ </xsl:if>
+ <td>
+ <xsl:call-template name="listsearch-age"/>
+ </td>
+ <td>
+ <xsl:call-template name="listsearch-fields"/>
+ </td>
+ <td>
+ <input type="text"
name="searchterm_{../comma...@name='add-item']/@cmd}"
value="{search-filter[1]/default}" class="search"
onChange="selectAssets(this,'{...@nodepath}')"/>
+ <!-- on change the current value is copied back to the option's
default, because of that, the user's search is stored between different types
of search-actions -->
+ </td>
+ <td>
+ <a href="#"
onclick="select_fid='{../@fid}';select_did='{../comma...@name='add-item']/@value}';getAssets('{...@nodepath}')"
class="button">
+ <xsl:for-each select="@*">
+ <xsl:copy/>
+ </xsl:for-each>
+ <xsl:attribute name="relationOriginNode"><xsl:value-of
select="../@number" /></xsl:attribute>
+ <xsl:choose>
+ <xsl:when
test="../acti...@type='add']/relation/@role">
+ <xsl:attribute name="relationRole"><xsl:value-of
select="../acti...@type='add']/relation/@role" /></xsl:attribute>
+ <xsl:attribute name="relationCreateDir"><xsl:value-of
select="../acti...@type='add']/relation/@createdir" /></xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="relationRole"><xsl:value-of
select="../acti...@type='create']/relation/@role" /></xsl:attribute>
+ <xsl:attribute name="relationCreateDir"><xsl:value-of
select="../acti...@type='create']/relation/@createdir"
/></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="prompt_search"/>
+ </a>
+ </td>
+ </tr>
+ </table>
+ </xsl:for-each>
</xsl:if>
</xsl:template>
@@ -598,6 +636,10 @@
<!-- Search is handled by the listsearch template -->
</xsl:template>
+ <xsl:template match="comma...@name='assetsselector']"
mode="listnewbuttons">
+ <!-- Search is handled by the listsearch template -->
+ </xsl:template>
+
<xsl:template match="comma...@name='startwizard']"
mode="listnewbuttons">
<!-- create action and startwizard command are present. Open the object
into the start wizard -->
<!-- The prompts.xsl adds this as a tooltip -->
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs