Skip to content
Snippets Groups Projects
Commit 6982d182 authored by Goik Martin's avatar Goik Martin
Browse files

Configurable link slides to html

parent 7317542e
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
<xsl:variable name="topicLookup" select="document('topics.tid.xml', .)"/>
<xsl:param name="slide2lectureref"/>
<xsl:template match="/">
<xsl:apply-templates select="(//d:chapter | //d:section | //d:appendix) [contains(@annotations, 'slide') or descendant::*[contains(@annotations, 'slide')]]"
......@@ -175,17 +176,18 @@
</xsl:attribute>
</img>
</div>
<div class ="hdmfooter">
<p>
<a target="_blank">
<xsl:attribute name="href">
<xsl:call-template name="href.target.uri"/>
</xsl:attribute>
<xsl:text>Lecture notes</xsl:text>
</a>
</p>
</div>
<xsl:if test="not($slide2lectureref = 'no')">
<div class ="hdmfooter">
<p>
<a target="_blank">
<xsl:attribute name="href">
<xsl:call-template name="href.target.uri"/>
</xsl:attribute>
<xsl:text>Lecture notes</xsl:text>
</a>
</p>
</div>
</xsl:if>
</section>
</xsl:for-each>
</xsl:when>
......@@ -195,29 +197,31 @@
<xsl:apply-templates select="."/>
<div class ="hdmfooter">
<p>
<a target="_blank">
<xsl:attribute name="href">
<xsl:call-template name="href.target.uri"/>
</xsl:attribute>
<xsl:text>Lecture notes</xsl:text>
</a>
<xsl:variable name="qandaId" select="@xml:id"/>
<xsl:if test="$topicLookup/map/entry[@id = $qandaId]">
<xsl:text> | </xsl:text>
<xsl:variable name="tid" select="$topicLookup/map/entry[@id = $qandaId]/@tid"/>
<xsl:if test="not($slide2lectureref = 'no')">
<div class ="hdmfooter">
<p>
<a target="_blank">
<xsl:attribute name="href">
<xsl:text>https://bb.mi.hdm-stuttgart.de/topic/</xsl:text>
<xsl:value-of select="$tid"/>
<xsl:call-template name="href.target.uri"/>
</xsl:attribute>
<img src="common/images/comment.svg" width="30ex" style="border: 0mm;"/>
<xsl:text> create comment</xsl:text>
<xsl:text>Lecture notes</xsl:text>
</a>
</xsl:if>
</p>
</div>
<xsl:variable name="qandaId" select="@xml:id"/>
<xsl:if test="$topicLookup/map/entry[@id = $qandaId]">
<xsl:text> | </xsl:text>
<xsl:variable name="tid" select="$topicLookup/map/entry[@id = $qandaId]/@tid"/>
<a target="_blank">
<xsl:attribute name="href">
<xsl:text>https://bb.mi.hdm-stuttgart.de/topic/</xsl:text>
<xsl:value-of select="$tid"/>
</xsl:attribute>
<img src="common/images/comment.svg" width="30ex" style="border: 0mm;"/>
<xsl:text> create comment</xsl:text>
</a>
</xsl:if>
</p>
</div>
</xsl:if>
</section>
</xsl:otherwise>
</xsl:choose>
......
......@@ -40,7 +40,7 @@ fop1.extensions=1 \
paper.type=A4
# Slide related Docbook transformation parameter
dbookXslSlideParam=${dbookXslCommonParam}
dbookXslSlideParam=${dbookXslCommonParam} ${extraSlideParam}
# Epub related Docbook transformation parameter
dbookXslEpubParam=${dbookXslCommonParam} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment