remove cut lines
[librarian.git] / librarian / pdf / wl2tex.xslt
index c3054d2..8a31a22 100644 (file)
             <xsl:if test=".//dc:publisher">
                 Wydawca:
                 <TeXML escape="1">
             <xsl:if test=".//dc:publisher">
                 Wydawca:
                 <TeXML escape="1">
-                    <xsl:for-each select="//dc:publisher/text()">
+                    <xsl:for-each select=".//dc:publisher/text()">
                         <xsl:value-of select="."/>
                         <xsl:if test="not(position() = last())">, </xsl:if>
                     </xsl:for-each>
                         <xsl:value-of select="."/>
                         <xsl:if test="not(position() = last())">, </xsl:if>
                     </xsl:for-each>
                 \vspace{.6em}
             </xsl:if>}
         \def\description{<TeXML escape="1"><xsl:apply-templates select=".//dc:description" mode="inline" /></TeXML>}
                 \vspace{.6em}
             </xsl:if>}
         \def\description{<TeXML escape="1"><xsl:apply-templates select=".//dc:description" mode="inline" /></TeXML>}
+        <xsl:if test=".//meta[@id='pdf-id']">
+            <xsl:variable name="isbn" select=".//meta[@id='pdf-id']"/>
+            \def\isbn{ISBN <xsl:value-of select="substring-after($isbn, 'ISBN-')"/>}
+        </xsl:if>
     </TeXML>
 </xsl:template>
 
     </TeXML>
 </xsl:template>
 
 <!-- ================================================ -->
 
 <xsl:template mode="inline"
 <!-- ================================================ -->
 
 <xsl:template mode="inline"
-    match="pa|pe|pr|pt|mat|didask_tekst|slowo_obce|wyroznienie|osoba">
+    match="pa|pe|pr|pt|mat|didask_tekst|slowo_obce|wyroznienie|osoba|indeks_dolny">
     <cmd>
         <xsl:attribute name="name">
             <xsl:value-of select="wl:texcommand(name())" />
     <cmd>
         <xsl:attribute name="name">
             <xsl:value-of select="wl:texcommand(name())" />