diff --git a/data.xml b/data.xml
index b2ca59d..4e5587a 100644
--- a/data.xml
+++ b/data.xml
@@ -22,13 +22,22 @@
]>
-
+
+
Fri, 01 Apr 2022 19:38 +0200
covers/ds105.png
+ vorab/ds105_sticker.zip
editorial/ds105.html
references/ds105.html
Nach Anpassungen der LaTeX-Klasse für die Ausgabe von ePUB ist nun auch die schon länger in den Regalen stehende Ausgabe #103 online.
@@ -677,7 +686,7 @@ Zudem gibt es einen neuen Redaktions-PGP-Key, erhältlich auf allen Keyservern o
covers/ds001.png
pdfs/ds001.pdf
- 486824
+ 490571
diff --git a/download.xsl b/download.xsl
index 52b0cac..fc5f416 100644
--- a/download.xsl
+++ b/download.xsl
@@ -35,7 +35,10 @@
schleudern
schleudern
-
+
+
@@ -47,6 +50,7 @@
html
pdf
+ other
unknown
@@ -138,7 +142,10 @@
-
+
+
clear: left
@@ -158,6 +165,7 @@
pdf
epub
html
+ other
unknown
diff --git a/gen.sh b/gen.sh
index 9355284..378a74f 100755
--- a/gen.sh
+++ b/gen.sh
@@ -170,7 +170,30 @@ newdataentry () {
} || { printf "next argument not a number. using actual system time.\n"; datetime=0; } # remaining arguments should be teaser xml-message.
printf "using UTC (+0000) for expressing the timezone.\n"
- printf "\n\n"
+ imagelist=""
+ filelist=""
+ for d in covers pdfs epubs ; do
+ case "$d" in
+ covers) ffn=${d}"/"${fn}".jpg"; cover=$ffn ;;
+ pdfs) ffn=${d}"/"${fn}".pdf" ;;
+ epubs) ffn=${d}"/"${fn}".epub" ;;
+ #~ *) printf "file "${ffn}" not found, in "${d}".\n" ;;
+ esac
+ test -e ${customdir}"/"${ffn} && {
+ test "$d" = "covers" && {
+ imagelist="${imagelist}\t"${cover}"\n"
+ } || {
+ fs=$(wc -c <${customdir}"/"${ffn})
+ filelist="${filelist}\t%s\n" "${fs}" "${ffn}"
+ }
+ } || {
+ mfl=${mfl}" "${ffn}"\n"
+ #~ printf "file "${ffn}" not found.\n"
+ err=3
+ }
+ done
+ test -z "${filelist}" && printonly=" printonly=\"printonly\"" || printonly=""
+ printf "\n\n"
# todo: switch for dtg, integrate custom datetime input early
# or simply implement xslt for handling ISO and nothing else for input
# RFC-5322-Format without seconds using the current timezone
@@ -192,27 +215,8 @@ newdataentry () {
}
printf "\t%s %s\n" "${datetime}" "${tz}" # custom format universal time
fn="ds"$(printf "%03d" $newentry)
- for d in covers pdfs epubs ; do
- case "$d" in
- covers) ffn=${d}"/"${fn}".jpg"; cover=$ffn ;;
- pdfs) ffn=${d}"/"${fn}".pdf" ;;
- epubs) ffn=${d}"/"${fn}".epub" ;;
- #~ *) printf "file "${ffn}" not found, in "${d}".\n" ;;
- esac
- #~ printf "$ffn\n"
- test -e ${customdir}"/"${ffn} && {
- test "$d" = "covers" && {
- printf "\t"${cover}"\n"
- } || {
- fs=$(wc -c <${customdir}"/"${ffn})
- printf "\t%s\n" "${fs}" "${ffn}"
- }
- } || {
- mfl=${mfl}" "${ffn}"\n"
- #~ printf "file "${ffn}" not found.\n"
- err=3
- }
- done
+ printf "${imagelist}"
+ printf "${filelist}"
#~ printf "\t\n" # not used on server yet
test $# -eq 0 && { teaser="" ; } || {
teaser="$@";
diff --git a/rss.xsl b/rss.xsl
index b47b74a..130b384 100644
--- a/rss.xsl
+++ b/rss.xsl
@@ -110,6 +110,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
PDF
+ ZIP
HTML
ePUB
unknown
@@ -157,6 +158,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
pdf
+ zip
html
epub
unknown
@@ -201,10 +203,22 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-