Skip to content

Commit

Permalink
Merge branch 'hotfix/word-wrap-after-term' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaraDipi committed Mar 24, 2022
2 parents 2af7107 + 3ebd68d commit f10510a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions builder_pack/modules/elements/evt_builder-lists.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="glossaryEntry">
<xsl:template name="glossaryEntryPartial">
<xsl:element name="span">
<xsl:attribute name="class">term_occ <xsl:if test="$list_glossary = true()">
link_active</xsl:if></xsl:attribute>
Expand Down Expand Up @@ -500,6 +499,10 @@
<xsl:apply-templates select="current()/tei:sense[not(@value)]/tei:def"/>
<xsl:text>’</xsl:text>
</xsl:element>
</xsl:template>

<xsl:template name="glossaryEntryFull">
<xsl:call-template name="glossaryEntryPartial"/>
<span class="toggle_list_element" data-element-to-show=".glossaryEntry-details-container"
data-element-for-accordion=".glossaryEntry-details-tabs">
<i class="fa fa-angle-right"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@
</xsl:element>
<xsl:for-each
select="$root//tei:entry[@xml:id = substring-after(current()/@ref, '#')]">
<xsl:call-template name="glossaryEntry"/>
<xsl:call-template name="glossaryEntryPartial"/>
</xsl:for-each>
</xsl:element>
</xsl:element>
Expand Down
2 changes: 1 addition & 1 deletion builder_pack/modules/evt_builder-main.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@
</xsl:attribute>
<xsl:attribute name="class" select="'list_element'"/>
<xsl:attribute name="data-order-list" select="@sortKey"/>
<xsl:call-template name="glossaryEntry"/>
<xsl:call-template name="glossaryEntryFull"/>
</xsl:element>
</xsl:for-each>
</xsl:element>
Expand Down

0 comments on commit f10510a

Please sign in to comment.