Skip to content

Commit

Permalink
Merge pull request #373 from srophe/main
Browse files Browse the repository at this point in the history
Bump build
  • Loading branch information
wsalesky authored Jun 20, 2024
2 parents 5f81d59 + bb670bb commit 971f6cf
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
2 changes: 1 addition & 1 deletion expath-pkg.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://expath.org/ns/pkg" name="http://syriaca.org/britishLibrary" abbrev="britishLibrary" version="2.47" spec="1.0">
<package xmlns="http://expath.org/ns/pkg" name="http://syriaca.org/britishLibrary" abbrev="britishLibrary" version="2.48" spec="1.0">
<title>Syriac Manuscripts in the British Library</title>
<dependency package="http://exist-db.org/apps/shared"/>
</package>
39 changes: 34 additions & 5 deletions resources/xsl/manuscripts.xsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:saxon="http://saxon.sf.net/" xmlns:local="http://syriaca.org/ns" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://syriaca.org" xmlns:t="http://www.tei-c.org/ns/1.0" xmlns:x="http://www.w3.org/1999/xhtml" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs t s saxon" version="2.0">
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://syriaca.org" xmlns:t="http://www.tei-c.org/ns/1.0" xmlns:x="http://www.w3.org/1999/xhtml" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:saxon="http://saxon.sf.net/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:local="http://syriaca.org/ns" exclude-result-prefixes="xs t s saxon" version="2.0">

<!-- ==================================================================
Copyright 2013 New York University
Expand Down Expand Up @@ -455,20 +455,48 @@
</xsl:choose>
-->
<xsl:call-template name="msItemTitleAuthor"/>
<div class="msItemChild">
<xsl:apply-templates select="*[not(self::t:note) and not(self::t:locus) and not(self::t:title) and not(self::t:author) and not(self::t:msItem)]"/>
<!-- t:note|descendant::t:note[not(parent::t:msItem)] -->
<xsl:if test="t:note or descendant::t:note[not(parent::t:msItem)]">
<xsl:choose>
<xsl:when test="count(t:note|descendant::t:note[not(parent::t:msItem)]) = 1">
<div class="msItem-notes">
<span class="inline-h4">Note: </span><xsl:for-each select="t:note"><xsl:apply-templates/></xsl:for-each>
</div>
</xsl:when>
<xsl:otherwise>
<div class="msItem-notes">
<span class="inline-h4">Notes2:</span>
<ul>
<xsl:for-each select="t:note|descendant::t:note[not(parent::t:msItem)]">
<li>
<xsl:if test="@type='footnote'"><xsl:text>*</xsl:text></xsl:if>
<xsl:apply-templates/>
</li>
</xsl:for-each>
</ul>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:apply-templates select="t:msItem"/>
</div>
<!--
<div class="msItemChild">
<xsl:apply-templates select="*[not(self::t:locus) and not(self::t:title) and not(self::t:author) and not(self::t:msItem)]" mode="mssNotes"/>
<xsl:if test="descendant-or-self::t:note">
<xsl:if test="t:note or t:rubric/t:note">
<xsl:choose>
<xsl:when test="count(descendant-or-self::t:note) = 1">
<xsl:when test="count(t:note) = 1">
<div class="msItem-notes">
<span class="inline-h4">Note: </span><xsl:for-each select="descendant-or-self::t:note"><xsl:apply-templates/></xsl:for-each>
<span class="inline-h4">Note: </span><xsl:for-each select="t:note|t:rubric/t:note"><xsl:apply-templates/></xsl:for-each>
</div>
</xsl:when>
<xsl:otherwise>
<div class="msItem-notes">
<span class="inline-h4">Notes:</span>
<ul>
<xsl:for-each select="descendant-or-self::t:note">
<xsl:for-each select="t:note">
<li><xsl:if test="@type='footnote'">* </xsl:if><xsl:apply-templates/></li>
</xsl:for-each>
</ul>
Expand All @@ -478,6 +506,7 @@
</xsl:if>
<xsl:apply-templates select="t:msItem"/>
</div>
-->
</div>
</xsl:template>
<xsl:template match="t:bibl" mode="mssBibl">
Expand Down

0 comments on commit 971f6cf

Please sign in to comment.