diff --git a/ws/Docbook/CustomLayer/slide/slideHdm.xsl b/ws/Docbook/CustomLayer/slide/slideHdm.xsl index 743343bb4b6a0d8ae24ef1a10ecd07aad8f52d86..dba79ada4874fcf375a9d480e958676c5b532be7 100644 --- a/ws/Docbook/CustomLayer/slide/slideHdm.xsl +++ b/ws/Docbook/CustomLayer/slide/slideHdm.xsl @@ -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> diff --git a/ws/Docbook/Preprocess/make.rules b/ws/Docbook/Preprocess/make.rules index 10aa2bbab24a5552cd14025b9885377f08b84551..8a7e5d46af498ba7595491a137366ffef40e1af7 100644 --- a/ws/Docbook/Preprocess/make.rules +++ b/ws/Docbook/Preprocess/make.rules @@ -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} \