Skip to content
Snippets Groups Projects
Commit 965f0cfe authored by Robert Bossy's avatar Robert Bossy
Browse files

fixed bad subspecies names

parent e6951eb1
No related branches found
No related tags found
No related merge requests found
......@@ -16,20 +16,6 @@
<xsl:template match="taxonomy_name/strains/list-item">
<a:section name="species" xpath-contents="species"/>
<xsl:variable name="complete">
<xsl:choose>
<xsl:when test="subspecies_epithet != ''">
<xsl:value-of select="concat(species, ' ', subspecies_epithet)"/>
</xsl:when>
<xsl:when test="species_epithet != ''">
<xsl:value-of select="species"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="genus"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a:section name="complete" xpath-contents="$complete"/>
<a:section name="full_scientific_name" xpath-contents="normalize-space(full_scientific_name)"/>
<a:section name="designation" xpath-contents="designation"/>
</xsl:template>
......
......@@ -27,7 +27,7 @@
<strain-name class="Action">
<target>documents.sections:strain-number</target>
<action>document.new:section:strain-name(sections:complete.contents ^ " " ^ target.contents)</action>
<action>document.new:section:strain-name(sections:species.contents ^ " " ^ target.contents)</action>
<createSections/>
</strain-name>
......@@ -44,7 +44,7 @@
<lines>documents.sections[@taxid]</lines>
<columns>
document.@id,
document.sections:complete.contents,
document.sections:species.contents,
document.sections:full_scientific_name.contents,
@name,
contents,
......@@ -54,7 +54,7 @@
</columns>
<headers>
"ID",
"COMPLETE NAME",
"SPECIES NAME",
"FULL NAME",
"FIELD",
"NAME",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment