Skip to content

Commit

Permalink
MIR-1362 add wrapper with css classes to the select box
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy 'Alex' Levshyn committed Dec 18, 2024
1 parent e1ae52c commit 7ebb255
Showing 1 changed file with 52 additions and 50 deletions.
102 changes: 52 additions & 50 deletions mir-module/src/main/resources/xsl/response-mir.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -152,56 +152,58 @@
<div class="input-group input-group-sm">

<!-- Select box for the filter query (select mods) -->
<select id="select_mods" class="btn btn-primary">
<option value="all">
<xsl:if test="$initialSelectMods = 'all' or not($initialSelectMods)">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.all')" />
</option>

<option value="mods.title">
<xsl:if test="$initialSelectMods = 'mods.title'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.title')" />
</option>

<option value="mods.author">
<xsl:if test="$initialSelectMods = 'mods.author'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.author')" />
</option>

<option value="mods.name.top">
<xsl:if test="$initialSelectMods = 'mods.name.top'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.name')" />
</option>

<option value="mods.nameIdentifier">
<xsl:if test="$initialSelectMods = 'mods.nameIdentifier'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.nameIdentifier')" />
</option>

<option value="allMeta">
<xsl:if test="$initialSelectMods = 'allMeta'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.allMeta')" />
</option>

<option value="content">
<xsl:if test="$initialSelectMods = 'content'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.content')" />
</option>
</select>
<div class="input-group-btn input-group-prepend">
<select id="select_mods" class="btn btn-primary">
<option value="all">
<xsl:if test="$initialSelectMods = 'all' or not($initialSelectMods)">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.all')" />
</option>

<option value="mods.title">
<xsl:if test="$initialSelectMods = 'mods.title'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.title')" />
</option>

<option value="mods.author">
<xsl:if test="$initialSelectMods = 'mods.author'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.author')" />
</option>

<option value="mods.name.top">
<xsl:if test="$initialSelectMods = 'mods.name.top'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.name')" />
</option>

<option value="mods.nameIdentifier">
<xsl:if test="$initialSelectMods = 'mods.nameIdentifier'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.nameIdentifier')" />
</option>

<option value="allMeta">
<xsl:if test="$initialSelectMods = 'allMeta'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.allMeta')" />
</option>

<option value="content">
<xsl:if test="$initialSelectMods = 'content'">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="i18n:translate('mir.dropdown.content')" />
</option>
</select>
</div>

<xsl:variable name="resolver">
<xsl:call-template name="substring-after-last">
Expand Down

0 comments on commit 7ebb255

Please sign in to comment.