swap endlines inside stanzas only
[librarian.git] / librarian / xslt / wl2tex.xslt
index 0e2dbfe..b0d85fe 100644 (file)
         </TeXML>
 
         <xsl:choose>
-            <xsl:when test="@old-morefloats">
+            <xsl:when test="@morefloats = 'new'">
                 <TeXML escape="0">
-                    \IfFileExists{morefloats.sty}{
-                        \usepackage{morefloats}
-                    }{}
+                    \usepackage[maxfloats=64]{morefloats}
+                </TeXML>
+            </xsl:when>
+            <xsl:when test="@morefloats = 'old'">
+                <TeXML escape="0">
+                    \usepackage{morefloats}
                 </TeXML>
             </xsl:when>
+            <xsl:when test="@morefloats = 'none'" />
             <xsl:otherwise>
                 <TeXML escape="0">
-                    \usepackage[maxfloats=64]{morefloats}
+                    \IfFileExists{morefloats.sty}{
+                        \usepackage{morefloats}
+                    }{}
                 </TeXML>
             </xsl:otherwise>
         </xsl:choose>
         <xsl:apply-templates select=".//dc:creator_parsed/node()" mode="inline" />
     </parm></cmd>
     <TeXML escape="0">
-        \def\sourceinfo{<TeXML escape="1"><xsl:apply-templates select=".//dc:source/node()" mode="inline" /></TeXML>}
+        \def\sourceinfo{<xsl:apply-templates select=".//dc:source" mode="inline" />}
+        \def\bookurl{<xsl:value-of select=".//dc:identifier.url" />}
+        \def\rightsinfo{Ten utwór nie jest chroniony prawem autorskim i~znajduje się w~domenie publicznej,
+            co oznacza, że możesz go swobodnie wykorzystywać, publikować i~rozpowszechniać.}
+        <xsl:if test=".//dc:rights.license">
+            \def\rightsinfo{Ten utwór jest udostepniony na licencji
+            \href{<xsl:value-of select=".//dc:rights.license" />}{<xsl:value-of select=".//dc:rights" />}.}
+        </xsl:if>
     </TeXML>
 </xsl:template>