add references element to data and download
This commit is contained in:
parent
243088c56d
commit
aba494f93f
17
data.xml
17
data.xml
|
@ -3,7 +3,7 @@
|
|||
<!DOCTYPE schleudern [
|
||||
|
||||
<!ELEMENT schleudern (schleuder)><!-- wrapper -->
|
||||
<!ELEMENT schleuder (date,image,link,filesize,teaser,preface,info)><!-- issue -->
|
||||
<!ELEMENT schleuder (date,image,link,filesize,teaser,preface,references,info)><!-- issue -->
|
||||
<!ATTLIST schleuder id CDATA #REQUIRED>
|
||||
<!ELEMENT date (#PCDATA)><!-- date of publication, https://www.w3.org/Protocols/rfc822/ as in cli `date -R` or 'Thu, 02 May 2019 23:01:34 +0200' -->
|
||||
<!ELEMENT image (#PCDATA)><!-- usually the cover page -->
|
||||
|
@ -12,6 +12,7 @@
|
|||
<!ELEMENT filesize (#PCDATA)><!-- size of a single linked file, needed for attachments -->
|
||||
<!ELEMENT teaser (#PCDATA)><!-- short hint on recent print and newest issue online -->
|
||||
<!ELEMENT preface (#PCDATA)><!-- link to preface, html byproduct of ePUB workflow -->
|
||||
<!ELEMENT references (#PCDATA)><!-- link to references, html byproduct of ePUB workflow -->
|
||||
<!ELEMENT info (#PCDATA)><!-- short information in between two issues, added as child to the last published issue, newest first -->
|
||||
<!ATTLIST info date CDATA #IMPLIED><!-- date for information, if missing the date of the parent schleuder will be used -->
|
||||
|
||||
|
@ -20,20 +21,30 @@
|
|||
]>
|
||||
|
||||
<schleudern>
|
||||
<!--schleuder id="103">
|
||||
<!--schleuder id="104">
|
||||
<date></date>
|
||||
<image>covers/ds103.jpg</image>
|
||||
<image>covers/ds104.jpg</image>
|
||||
<link filesize=""></link>
|
||||
<link filesize=""></link>
|
||||
<references></references>
|
||||
<preface></preface>
|
||||
<teaser></teaser>
|
||||
<info date=""></info>
|
||||
</schleuder-->
|
||||
<schleuder id="103">
|
||||
<date>Tue, 12 Jul 2022 07:23 +0000</date>
|
||||
<image>covers/ds103.jpg</image>
|
||||
<link filesize="9778016">pdfs/ds103.pdf</link>
|
||||
<link filesize="6978304">epubs/ds103.epub</link>
|
||||
<references>references/ds103.html</references>
|
||||
<teaser>Nach Anpassungen der LaTeX-Klasse für die Ausgabe von ePUB ist nun auch die schön länger in den Regalen stehende Ausgabe #103 online.</teaser>
|
||||
</schleuder>
|
||||
<schleuder id="102">
|
||||
<date>Wed, 10 Nov 2021 08:28 +0000</date>
|
||||
<image>covers/ds102.jpg</image>
|
||||
<link filesize="104220">pdfs/ds102.pdf</link>
|
||||
<link filesize="103582">epubs/ds102.epub</link>
|
||||
<references>references/ds102.html</references>
|
||||
<teaser>Nun ist die #102 auch online, wie gewohnt als PDF und mit überarbeitetem ePUB.</teaser>
|
||||
</schleuder>
|
||||
<schleuder id="101">
|
||||
|
|
21
download.xsl
21
download.xsl
|
@ -50,6 +50,12 @@
|
|||
<xsl:otherwise>unknown</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="preface">
|
||||
<xsl:value-of select="preface"/>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="references">
|
||||
<xsl:value-of select="references"/>
|
||||
</xsl:variable>
|
||||
<xsl:element name="div">
|
||||
<xsl:attribute name="class">schleuder</xsl:attribute>
|
||||
<xsl:attribute name="id">ds<xsl:value-of select="$id"/></xsl:attribute>
|
||||
|
@ -86,7 +92,20 @@
|
|||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:element><xsl:value-of select="concat(@id,' ')"/>
|
||||
</xsl:element><!--
|
||||
--><xsl:choose>
|
||||
<xsl:when test="count(references) > 0">
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="href"><xsl:value-of select="concat($protocol,$baseurl,'/',references)"/></xsl:attribute>
|
||||
<xsl:attribute name="title"><xsl:value-of select="concat('Rerenzen zur ',$alt)"/></xsl:attribute>
|
||||
<xsl:value-of select="concat(@id,' ')"/>
|
||||
</xsl:element><xsl:text>
</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="concat(@id,' ')"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:for-each select="link">
|
||||
<xsl:call-template name="anchorlink">
|
||||
<xsl:with-param name="linkdata">
|
||||
|
|
|
@ -145,6 +145,12 @@ time { font-family: Arial, sans-serif; font-size: 10pt; }</xsl:text>
|
|||
Geleitwort zur <xsl:value-of select="@id"/>. Ausgabe.
|
||||
</xsl:element><xsl:text>
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(references) > 0">
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="href"><xsl:value-of select="concat($protocol,$baseurl,references)"/></xsl:attribute>
|
||||
Rerenzen zur <xsl:value-of select="@id"/>. Ausgabe.
|
||||
</xsl:element><xsl:text>
</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<xsl:if test="count(teaser) > 0">
|
||||
|
|
4
rss.xsl
4
rss.xsl
|
@ -90,6 +90,10 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|||
<xsl:element name="a"><xsl:attribute name="href"><xsl:value-of select="concat($protocol,$baseurl,'/',preface)"/></xsl:attribute>Geleitwort</xsl:element>
|
||||
<xsl:text> 		</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(references) > 0">
|
||||
<xsl:element name="a"><xsl:attribute name="href"><xsl:value-of select="concat($protocol,$baseurl,'/',references)"/></xsl:attribute>Referenzen zur Ausgabe</xsl:element>
|
||||
<xsl:text> 		</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="string-length(image) > 0">
|
||||
<xsl:element name="img"><xsl:attribute name="src">
|
||||
|
|
8
sort.xsl
8
sort.xsl
|
@ -7,7 +7,7 @@
|
|||
<!DOCTYPE schleudern [
|
||||
|
||||
<!ELEMENT schleudern (schleuder)><!-- wrapper -->
|
||||
<!ELEMENT schleuder (date,image,link,filesize,teaser,preface,info)><!-- issue -->
|
||||
<!ELEMENT schleuder (date,image,link,filesize,teaser,preface,references,info)><!-- issue -->
|
||||
<!ATTLIST schleuder id CDATA #REQUIRED>
|
||||
<!ELEMENT date (#PCDATA)><!-- date of publication, https://www.w3.org/Protocols/rfc822/ as in cli `date -R` or 'Thu, 02 May 2019 23:01:34 +0200' -->
|
||||
<!ELEMENT image (#PCDATA)><!-- usually the cover page -->
|
||||
|
@ -16,6 +16,7 @@
|
|||
<!ELEMENT filesize (#PCDATA)><!-- size of a single linked file, needed for attachments -->
|
||||
<!ELEMENT teaser (#PCDATA)><!-- short hint on recent print and newest issue online -->
|
||||
<!ELEMENT preface (#PCDATA)><!-- link to preface, html byproduct of ePUB workflow -->
|
||||
<!ELEMENT references (#PCDATA)><!-- link to references, html byproduct of ePUB workflow -->
|
||||
<!ELEMENT info (#PCDATA)><!-- short information in between two issues, added as child to the last published issue, newest first -->
|
||||
<!ATTLIST info date CDATA #IMPLIED><!-- date for information, if missing the date of the parent schleuder will be used -->
|
||||
|
||||
|
@ -60,6 +61,11 @@
|
|||
<xsl:value-of select="preface"/>
|
||||
</xsl:element><xsl:text>
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(references) > 0">
|
||||
<xsl:text>	</xsl:text><xsl:element name="references">
|
||||
<xsl:value-of select="references"/>
|
||||
</xsl:element><xsl:text>
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="info">
|
||||
<xsl:text>	</xsl:text>
|
||||
<xsl:apply-templates select="."/>
|
||||
|
|
Loading…
Reference in New Issue