Skip to content

Commit

Permalink
notes + name support
Browse files Browse the repository at this point in the history
  • Loading branch information
respinos committed Feb 8, 2024
1 parent 29c67e3 commit 8c281eb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
21 changes: 21 additions & 0 deletions src/scss/text/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,24 @@ ins::after {
/* color: var(--color-neutral-400); */
}

.fullview-main .name {
.name--reg {
&::before {
content: '[';
font-weight: bold;
font-size: 1.1rem;
}
&::after {
content: ']';
font-weight: bold;
font-size: 1.1rem;
}
display: inline-block;
background: var(--color-green-100);

}
}

.fullview-main figure {
border: 1px solid var(--color-neutral-100);
padding: 1rem;
Expand Down Expand Up @@ -336,6 +354,9 @@ ins::after {
.inline-note {
background: var(--color-maize-100);
display: block;
&.inline {
display: inline-block;
}
}

.div-heading {
Expand Down
13 changes: 12 additions & 1 deletion templates/text/qbat/includes/qbat.text.components.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,17 @@
</xsl:choose>
</xsl:template>

<!-- #################### -->
<xsl:template match="tei:NAME[@REG]">
<span class="name">
<xsl:apply-templates />
<xsl:text> </xsl:text>
<span class="name--reg">
<xsl:value-of select="@REG" />
</span>
</span>
</xsl:template>

<!-- #################### -->
<xsl:template match="tei:NOTE/tei:NOTE1|tei:NOTE/tei:NOTE2" priority="101">
<p>
Expand All @@ -821,7 +832,7 @@
</xsl:template>

<xsl:template match="tei:NOTE1|tei:NOTE2">
<xsl:variable name="view" select="//Param[@name='view']" />
<xsl:variable name="view" select="'text'" />
<xsl:choose>
<xsl:when test="not(@HREF)">
<!-- no @HREF, therefore render the note content -->
Expand Down

0 comments on commit 8c281eb

Please sign in to comment.