Skip to content

Commit 1a46b83

Browse files
committed
fix tei:ref and tei:ptr template ambigousity in SigiDoc/EpiDoc templates
1 parent ed543b7 commit 1a46b83

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

htm-teibibl.xsl

+2-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ bibliography. All examples only cater for book and article.
273273
<xsl:param name="parm-edn-structure" tunnel="yes" required="no"/>
274274
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"/>
275275
<xsl:choose>
276-
<xsl:when test="$parm-edn-structure=('inslib', 'sample') or $parm-leiden-style = 'medcyprus'">
276+
<!-- MODIFIED for SigiDoc by MS 2023-06-16 -->
277+
<xsl:when test="$parm-edn-structure='inslib' or $parm-edn-structure='sample' or $parm-edn-structure='sigidoc'">
277278
<!-- if you are running this template outside EFES, change the path to the bibliography authority list accordingly -->
278279
<xsl:variable name="bibliography-al" select="concat('file:',system-property('user.dir'),'/webapps/ROOT/content/xml/authority/bibliography.xml')"/>
279280
<xsl:variable name="bibl-ref" select="translate(@target, '#', '')"/>

htm-tpl-struct-sigidoc.xsl

+6-4
Original file line numberDiff line numberDiff line change
@@ -1017,15 +1017,16 @@
10171017
</xsl:choose>
10181018
</xsl:template>
10191019

1020-
<xsl:template match="t:ref"><!-- for external (not <placeName/>) and internal links -->
1020+
<!-- ATTENTION commented out by MS because this is now in the htm-teiref.xsl stylesheet since EpiDoc 3.9 -->
1021+
<!-- <xsl:template match="t:ref"><!-\- for external (not <placeName/>) and internal links -\->
10211022
<a>
10221023
<xsl:attribute name="href">
10231024
<xsl:value-of select="@target"/>
10241025
</xsl:attribute>
10251026
<xsl:attribute name="target">_blank</xsl:attribute>
10261027
<xsl:apply-templates/>
10271028
</a>
1028-
</xsl:template>
1029+
</xsl:template>-->
10291030

10301031
<xsl:template match="t:idno[@type='PBW']"><!-- pointing to the boulloterion ID page on the PBW -->
10311032
<a>
@@ -1037,7 +1038,8 @@
10371038
</a>
10381039
</xsl:template>
10391040

1040-
<xsl:template match="t:ptr[@target]">
1041+
<!-- ATTENTION commented out by MS because this is now in the htm-teibibl.xsl stylesheet since EpiDoc 3.9 -->
1042+
<!-- <xsl:template match="t:ptr[@target]">
10411043
<xsl:variable name="bibl-ref" select="@target"/>
10421044
<xsl:variable name="bibl" select="document(concat('file:',system-property('user.dir'),'/webapps/ROOT/content/xml/authority/bibliography.xml'))//t:bibl[@xml:id=$bibl-ref][not(@sameAs)]"/>
10431045
<a>
@@ -1056,7 +1058,7 @@
10561058
</xsl:otherwise>
10571059
</xsl:choose>
10581060
</a>
1059-
</xsl:template>
1061+
</xsl:template>-->
10601062

10611063
<!-- arrows pointing to previous/next seal: from "Cretan Inscriptions" project -->
10621064
<xsl:template name="navigation">

0 commit comments

Comments
 (0)