Skip to content

Commit

Permalink
Merge pull request #320 from IUBLibTech/remediation_print-view
Browse files Browse the repository at this point in the history
AR-209 Printable view accessibility improvements
  • Loading branch information
randalldfloyd authored Jan 16, 2024
2 parents 1085779 + 1f7d8ab commit c809061
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions app/templates/template.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@
<body class="ead-print">

<div class="title-block">
<h1 class="finding-aid-title">
<xsl:apply-templates select="eadheader/filedesc/titlestmt/titleproper"/>
</h1>
<xsl:if test="eadheader/filedesc/titlestmt/titleproper">
<h1 class="finding-aid-title">
<xsl:apply-templates select="eadheader/filedesc/titlestmt/titleproper"/>
</h1>
</xsl:if>

<xsl:if test="/ead/eadheader/filedesc/titlestmt/subtitle">
<h2 class="finding-aid-subtitle">
<xsl:apply-templates select="/ead/eadheader/filedesc/titlestmt/subtitle"/>
</h2>
</xsl:if>

<h2 class="finding-aid-subtitle">
<xsl:apply-templates select="/ead/eadheader/filedesc/titlestmt/subtitle"/>
</h2>

<p class="finding-aid-author">
<xsl:apply-templates select="eadheader/filedesc/titlestmt/author"/>
Expand Down Expand Up @@ -198,15 +203,19 @@


<xsl:template match="list[@type='ordered']">
<ol>
<xsl:apply-templates/>
</ol>
<xsl:if test="./item">
<ol>
<xsl:apply-templates/>
</ol>
</xsl:if>
</xsl:template>

<xsl:template match="list[@type='simple'] | list[@type='deflist']">
<ol class="no-bullets">
<xsl:apply-templates/>
</ol>
<xsl:if test="./defitem">
<ol class="no-bullets">
<xsl:apply-templates/>
</ol>
</xsl:if>
</xsl:template>

<xsl:template match="list">
Expand Down Expand Up @@ -536,9 +545,9 @@
<xsl:value-of select="name()"/>
</xsl:attribute>
<xsl:apply-templates select="head"/>
<ul class="bibliography">
<div class="bibliography">
<xsl:apply-templates select="*[name()!='head']"/>
</ul>
</div>
</div>
</xsl:template>

Expand Down Expand Up @@ -751,7 +760,7 @@
</xsl:if>
<xsl:if test="occupation | function">
<li class="subj-label">
<h5>Occupationss</h5>
<h5>Occupations</h5>
<ul class="subj-values">
<xsl:for-each select="occupation | function">
<xsl:sort select="." data-type="text" order="ascending"/>
Expand Down

0 comments on commit c809061

Please sign in to comment.