Changeset 25714
- Timestamp:
- 2012-05-30T09:58:46+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/gs2/transform/pref.xsl
r20230 r25714 129 129 <xsl:param name="formstatus"/> 130 130 <xsl:param name="advancedstatus"/> 131 131 132 132 <!-- extract service parameters, avoid hard coding params in this xslt --> 133 133 <!-- mode specific options --> … … 136 136 <!-- <xsl:if test="$mode='form'"><xsl:apply-templates select="/page/pageResponse//service[@name='FieldQuery']"/></xsl:if> --> 137 137 <xsl:call-template name="advanced-search-prefs"><xsl:with-param name="display"><xsl:if test="$mode='advanced'">y</xsl:if><xsl:if test="$mode='text' or $mode='form'">n</xsl:if></xsl:with-param></xsl:call-template> 138 138 139 139 <!-- search type specific options --> 140 140 <xsl:apply-templates select="/page/pageResponse//service[@name='TextQuery']"> … … 215 215 <xsl:template match="service"> 216 216 <xsl:param name="display">n</xsl:param> 217 <xsl:param name="prefix"/> 218 <xsl:apply-templates select="paramList/param[not(@type='invisible')]"><xsl:with-param name="display" select="$display"/><xsl:with-param name="prefix" select="$prefix"/></xsl:apply-templates> 219 </xsl:template> 220 221 <xsl:template match="param"> 217 <xsl:param name="prefix"/> 218 <for-each select="paramList/param[not(@type='invisible')]"> 219 <xsl:call-template name="displayParam"><xsl:with-param name="display" select="$display"/><xsl:with-param name="prefix" select="$prefix"/></xsl:call-template> 220 </for-each> 221 </xsl:template> 222 223 <xsl:template name="displayParam"> 222 224 <xsl:param name="ns">s1.</xsl:param> 223 225 <xsl:param name="display">n</xsl:param> 224 226 <xsl:param name="prefix"/> 225 226 <xsl:if test="not(@name='matchMode') and not(@name='level') and not(@name='index') and not(@name='sortBy') and not(@name='indexSubcollection') and not(@name='indexLanguage') and (@type='boolean' or @type='enum_single')"><xsl: apply-templates select="." mode="radio"><xsl:with-param name="display" select="$display"/><xsl:with-param name="prefix" select="$prefix"/><xsl:with-param name="paramIdx" select="position()"/></xsl:apply-templates></xsl:if>227 </xsl:template> 228 229 <xsl:template match="param" mode="radio">227 228 <xsl:if test="not(@name='matchMode') and not(@name='level') and not(@name='index') and not(@name='sortBy') and not(@name='indexSubcollection') and not(@name='indexLanguage') and (@type='boolean' or @type='enum_single')"><xsl:call-template name="displayRadioParam"><xsl:with-param name="display" select="$display"/><xsl:with-param name="prefix" select="$prefix"/><xsl:with-param name="paramIdx" select="position()"/></xsl:call-template></xsl:if> 229 </xsl:template> 230 231 <xsl:template name="displayRadioParam"> 230 232 <xsl:param name="ns">s1.</xsl:param> 231 233 <xsl:param name="display">n</xsl:param>
Note:
See TracChangeset
for help on using the changeset viewer.