Drop lots of legacy code. Support Python 3.7-3.11.
[librarian.git] / src / librarian / epub / xsltLast.xsl
diff --git a/src/librarian/epub/xsltLast.xsl b/src/librarian/epub/xsltLast.xsl
deleted file mode 100644 (file)
index 2d70489..0000000
+++ /dev/null
@@ -1,139 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0"
-    xmlns="http://www.w3.org/1999/xhtml"
-    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    xmlns:dc="http://purl.org/dc/elements/1.1/"
-    xmlns:wl="http://wolnelektury.pl/functions"
-    xmlns:date="http://exslt.org/dates-and-times">
-  <xsl:output method="html" version="1.0" encoding="utf-8" />
-  <xsl:param name="outputtype"/>
-
-  <xsl:template match="utwor">
-    <html>
-      <head>
-        <link rel="stylesheet" href="style.css" type="text/css" />
-        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-        <title>
-          <xsl:text>Strona redakcyjna</xsl:text>
-        </title>
-      </head>
-      <body>
-        <div id="book-text" >
-          <p class="info">
-            Wszystkie zasoby Wolnych Lektur możesz swobodnie wykorzystywać,
-            publikować i rozpowszechniać pod warunkiem zachowania warunków
-            licencji i zgodnie z <a href="https://wolnelektury.pl/info/zasady-wykorzystania/">Zasadami wykorzystania Wolnych Lektur</a>.<br/>
-            <xsl:choose>
-                  <xsl:when test="//dc:rights.license">
-                      Ten utwór jest udostępniony na licencji
-                      <a>
-                          <xsl:attribute name="href">
-                              <xsl:value-of select="//dc:rights.license" />
-                          </xsl:attribute>
-                          <xsl:value-of select="//dc:rights" />
-                      </a>
-                  </xsl:when>
-                  <xsl:otherwise>
-                    Ten utwór jest w domenie publicznej.
-                  </xsl:otherwise>
-            </xsl:choose>
-            <br/>
-            Wszystkie materiały dodatkowe (przypisy, motywy literackie) są
-            udostępnione na <a href="https://artlibre.org/licence/lal/pl/">Licencji Wolnej Sztuki 1.3</a>.<br/>
-            Fundacja Nowoczesna Polska zastrzega sobie prawa do wydania
-            krytycznego zgodnie z art. Art.99(2) Ustawy o prawach autorskich
-            i prawach pokrewnych. Wykorzystując zasoby z Wolnych Lektur,
-            należy pamiętać o zapisach licencji oraz zasadach, które
-            spisaliśmy w <a href="https://wolnelektury.pl/info/zasady-wykorzystania/">Zasadach wykorzystania Wolnych Lektur</a>.
-            Zapoznaj się z nimi, zanim udostępnisz dalej nasze książki.
-          </p>
-
-          <p class="info">Źródło: <a>
-              <xsl:attribute name="href">
-                  <xsl:value-of select="//dc:identifier.url" />
-              </xsl:attribute>
-              <xsl:attribute name="title">
-                  <xsl:for-each select="//dc:creator/text()"><xsl:value-of select="wl:person_name(.)"/>, </xsl:for-each><xsl:value-of select="//dc:title" />
-              </xsl:attribute>
-              <xsl:value-of select="//dc:identifier.url" />
-          </a></p>
-
-          <xsl:if test="//dc:source" >
-            <p class="info">Tekst opracowany na podstawie: <xsl:value-of select="//dc:source" /></p>
-          </xsl:if>
-
-          <xsl:if test="//dc:publisher">
-            <p class="info">
-              Wydawca:
-              <xsl:for-each select="//dc:publisher/text()">
-                <xsl:value-of select="."/>
-                <xsl:if test="not(position() = last())">, </xsl:if>
-              </xsl:for-each>
-            </p>
-          </xsl:if>
-
-          <xsl:if test="//dc:description" >
-            <p class="info"><xsl:value-of select="//dc:description" /></p>
-          </xsl:if>
-
-          <xsl:call-template name="editors" />
-
-          <xsl:call-template name="funders" />
-
-          <xsl:if test="@data-cover-by">
-            <p class="info">Okładka na podstawie: 
-            <xsl:choose>
-            <xsl:when test="@data-cover-source">
-                <a>
-                <xsl:attribute name="href">
-                  <xsl:value-of select="@data-cover-source" />
-                </xsl:attribute>
-                <xsl:value-of select="@data-cover-by" />
-                </a>
-            </xsl:when>
-            <xsl:otherwise>
-                <xsl:value-of select="@data-cover-by" />
-            </xsl:otherwise>
-            </xsl:choose>
-            </p>
-          </xsl:if>
-
-          <xsl:variable name="isbnId" select="concat($outputtype, '-id')"/>
-          <xsl:if test=".//meta[@id=$isbnId]">
-            <xsl:variable name="isbn" select=".//meta[@id=$isbnId]"/>
-            <p class="info">ISBN <xsl:value-of select="substring-after($isbn, 'ISBN-')"/></p>
-          </xsl:if>
-
-          <p class="info">&#160;</p>
-          <p class="minor-info">
-              Plik wygenerowany dnia <span id="file_date"><xsl:value-of select="substring(date:date(), 1, 10)" /></span>.
-          </p>
-
-        </div>
-      </body>
-    </html>
-  </xsl:template>
-
-  <xsl:template match="text()" >
-    <xsl:value-of select="." />
-  </xsl:template>
-
-  <xsl:template name="editors">
-    <xsl:if test="@editors">
-        <p class="info">
-            <xsl:text>Opracowanie redakcyjne i przypisy: </xsl:text>
-            <xsl:value-of select="@editors" />.</p>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template name="funders">
-    <xsl:if test="@funders">
-        <p class="minor-info">Publikację wsparli i wsparły:
-            <xsl:value-of select="@funders" />.</p>
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="text()" mode="person">
-    <xsl:value-of select="wl:person_name(.)" />
-  </xsl:template>
-</xsl:stylesheet>