fix children books in toc
authorJan Szejko <janek37@gmail.com>
Wed, 5 Sep 2018 11:12:31 +0000 (13:12 +0200)
committerJan Szejko <janek37@gmail.com>
Wed, 5 Sep 2018 11:12:31 +0000 (13:12 +0200)
librarian/pdf/wl.cls
librarian/pdf/wl2tex.xslt

index 97049f3..ff6e2b0 100644 (file)
@@ -356,6 +356,12 @@ Letters={Uppercase}
 \addcontentsline{toc}{section}{#2}%
 }
 
 \addcontentsline{toc}{section}{#2}%
 }
 
+\newcommand{\nazwanadpodutworu}[2]{%
+\authortoc{}%
+\nazwapodutworu{#1}{#2}%
+\authortoc{}%
+}
+
 \newcommand{\autorutworu}[1]{%
 \subsection*{\typosubsection{#1}}%
 }
 \newcommand{\autorutworu}[1]{%
 \subsection*{\typosubsection{#1}}%
 }
index 99244ee..a61842e 100644 (file)
 </xsl:template>
 
 <xsl:template match="rdf:RDF" mode="dctitle">
 </xsl:template>
 
 <xsl:template match="rdf:RDF" mode="dctitle">
-    <cmd name="autorpodutworu">
-        <parm><xsl:call-template name="authors" /></parm>
-    </cmd>
-    <cmd name="nazwapodutworu"><parm>
+    <xsl:if test="../../rdf:RDF//use_subauthor">
+        <cmd name="autorpodutworu">
+            <parm><xsl:call-template name="authors" /></parm>
+        </cmd>
+    </xsl:if>
+    <cmd name="nazwanadpodutworu"><parm>
+        <xsl:apply-templates select=".//dc:title/node()" mode="inline" />
+    </parm>
+    <parm>
         <xsl:apply-templates select=".//dc:title/node()" mode="inline" />
     </parm></cmd>
 </xsl:template>
         <xsl:apply-templates select=".//dc:title/node()" mode="inline" />
     </parm></cmd>
 </xsl:template>