Skip to content

Commit

Permalink
Adding (experimental) support for communicating values
Browse files Browse the repository at this point in the history
to pre-fill into forms.

This uses LINK elements as considered in
ivoa-std/DataLink#51 (comment)
and complements a feature to generate those in DaCHS 2.4.2.
  • Loading branch information
msdemlei committed Oct 27, 2021
1 parent 8196189 commit 0df9287
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions datalink-to-html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ See http://creativecommons.org/publicdomain/zero/1.0/ for details.

<!-- ################################### service interface -->

<xsl:template name="add-default">
<!-- called on PARAM-s to fiddle out DaCHS-custom LINK #pre-set
defaults and set them on the current node. -->
<xsl:if test="vot:LINK[@action='rdf' and @content-role='#pre-set']">
<xsl:attribute name="value">
<xsl:value-of select="vot:LINK/@value"/>
</xsl:attribute>
</xsl:if>
</xsl:template>

<xsl:template match="vot:RESOURCE[@utype='adhoc:service']">
<xsl:if test="vot:PARAM[@name='standardID']/@value=
'ivo://ivoa.net/std/SODA#sync-1.0'">
Expand Down Expand Up @@ -394,6 +404,7 @@ See http://creativecommons.org/publicdomain/zero/1.0/ for details.
<xsl:attribute name="placeholder">
<xsl:value-of select="vot:VALUES/vot:MIN/@value"/>
</xsl:attribute>
<xsl:call-template name="add-default"/>
</input>
</xsl:with-param>
</xsl:call-template>
Expand All @@ -409,6 +420,7 @@ See http://creativecommons.org/publicdomain/zero/1.0/ for details.
<xsl:attribute name="name">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:call-template name="add-default"/>
</input>
</xsl:with-param>
</xsl:call-template>
Expand Down Expand Up @@ -627,8 +639,7 @@ See http://creativecommons.org/publicdomain/zero/1.0/ for details.
<body>

<div id="aladin-lite-div"
style="width: 100%; height:10cm;
display:block;display:none">
style="width: 100%; height:10cm; display:none">
</div>

<xsl:apply-templates/>
Expand Down

0 comments on commit 0df9287

Please sign in to comment.