Skip to content

Commit

Permalink
selected repository option implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Jan 25, 2012
1 parent 2a2b14a commit 6a04a31
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/contributions/resources/search/htdocs/reindexer.xsl
Expand Up @@ -20,22 +20,27 @@
<xsl:if test="not(y:exception or y:message)">
-->
<p>Choose which repository you would like to re-index:</p>

<!--
<ul>
<xsl:for-each select="y:repository">
<li>
<a href="?repository={@id}"><xsl:value-of select="."/></a></li>
</xsl:for-each>
</ul>
<p>
DEBUG: Selected repository ID: <xsl:value-of select="y:selected-repository/@id"/>
</p>
-->

<p>

<!-- For example: ...?repository=yanel_data&path=/projects/where-have-all-the-rabbits-gone/footage -->
<form method="get">
<select name="repository">
<xsl:for-each select="y:repository">
<!-- TODO: Set selected option based on y:selected-repository/@id -->
<xsl:choose>
<xsl:when test="../y:selected-repository and ../y:selected-repository/@id = @id">
<option value="{@id}" selected="selected"><xsl:value-of select="."/></option>
</xsl:when>
<xsl:otherwise>
<option value="{@id}"><xsl:value-of select="."/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>
<br/>
Expand Down

0 comments on commit 6a04a31

Please sign in to comment.