Skip to content

Commit 8c281eb

Browse files
committed
notes + name support
1 parent 29c67e3 commit 8c281eb

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

src/scss/text/_text.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,24 @@ ins::after {
197197
/* color: var(--color-neutral-400); */
198198
}
199199

200+
.fullview-main .name {
201+
.name--reg {
202+
&::before {
203+
content: '[';
204+
font-weight: bold;
205+
font-size: 1.1rem;
206+
}
207+
&::after {
208+
content: ']';
209+
font-weight: bold;
210+
font-size: 1.1rem;
211+
}
212+
display: inline-block;
213+
background: var(--color-green-100);
214+
215+
}
216+
}
217+
200218
.fullview-main figure {
201219
border: 1px solid var(--color-neutral-100);
202220
padding: 1rem;
@@ -336,6 +354,9 @@ ins::after {
336354
.inline-note {
337355
background: var(--color-maize-100);
338356
display: block;
357+
&.inline {
358+
display: inline-block;
359+
}
339360
}
340361

341362
.div-heading {

templates/text/qbat/includes/qbat.text.components.xsl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,17 @@
813813
</xsl:choose>
814814
</xsl:template>
815815

816+
<!-- #################### -->
817+
<xsl:template match="tei:NAME[@REG]">
818+
<span class="name">
819+
<xsl:apply-templates />
820+
<xsl:text> </xsl:text>
821+
<span class="name--reg">
822+
<xsl:value-of select="@REG" />
823+
</span>
824+
</span>
825+
</xsl:template>
826+
816827
<!-- #################### -->
817828
<xsl:template match="tei:NOTE/tei:NOTE1|tei:NOTE/tei:NOTE2" priority="101">
818829
<p>
@@ -821,7 +832,7 @@
821832
</xsl:template>
822833

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

0 commit comments

Comments
 (0)