Commit 6406d261 authored by Eva Huet's avatar Eva Huet
Browse files

fix toc collection CR

parent ac85b063
Loading
Loading
Loading
Loading
+26 −5
Original line number Diff line number Diff line
@@ -152,11 +152,32 @@
            <div id="toc" class="content-tab">
                <div id="toc-contents">
                    <ol>
                        <xsl:choose>
                            <xsl:when test="../body/sec[contains(@id,'review')]">
                                <xsl:for-each select="../body/sec[contains(@id,'review')]">
                                    <li class="section1">
                                        <a role="button">
                                            <xsl:attribute name="href">
                                                <xsl:value-of select="concat('#', @xml:id)"/>
                                            </xsl:attribute>
                                            <xsl:for-each select=".//p[@content-type='bibl-cr']">
                                                <xsl:apply-templates select="node()"/>
                                                <xsl:if test="position() != last()">
                                                    <xsl:text>. </xsl:text>
                                                </xsl:if>
                                            </xsl:for-each>                        
                                        </a>
                                    </li>
                                </xsl:for-each>
                            </xsl:when>
                            <xsl:otherwise>
                                <xsl:for-each select="../body/sec | ../back/app-group">
                                    <xsl:call-template name="sec-toc-item">
                                        <xsl:with-param name="item" select="."/>
                                    </xsl:call-template>
                                </xsl:for-each>                             
                            </xsl:otherwise>
                        </xsl:choose>
                    </ol>

                </div>
+7 −2
Original line number Diff line number Diff line
@@ -145,7 +145,12 @@
                                            <xsl:attribute name="href">
                                                <xsl:value-of select="concat('#', @xml:id)"/>
                                            </xsl:attribute>
                                            <xsl:apply-templates select=".//tei:bibl[@type='display']/node()"/>                                  
                                            <xsl:for-each select=".//tei:bibl[@type='display']">
                                                <xsl:apply-templates select="node()"/>
                                                <xsl:if test="position() != last()">
                                                    <xsl:text>. </xsl:text>
                                                </xsl:if>
                                            </xsl:for-each>
                                        </a>
                                    </li>
                                </xsl:for-each>