Skip to content

Commit

Permalink
checking coalition/opposition has time overlap with relation timespan…
Browse files Browse the repository at this point in the history
… (a sort of fixture of #183)
  • Loading branch information
matyaskopp committed Oct 5, 2022
1 parent 6c77b8e commit 3c3e429
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/metadater/add_org_relations.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,16 @@
<xsl:variable name="group-abb" select="."/>
<xsl:variable name="group-org" select="$listOrg//tei:org[@role='parliamentaryGroup'
and ./tei:orgName[@full='abb' and text() = $group-abb]
and .//tei:event[et:between-dates($item/tei:from,@from,@to)]
]"/>
<xsl:if test="count($group-org)>1">
<xsl:message select="concat('ERROR: multiple parliamentary groups match ',
$item/tei:name, ' group = ', ., ' between ',
$item/tei:from, ' - ', $item/tei:to)"/>
</xsl:if>
<xsl:choose>
<xsl:when test="$group-org">
<xsl:value-of select="concat('#', $group-org/@xml:id , ' ')"/>
<xsl:value-of select="$group-org/@xml:id/concat('#', . , ' ')"/>
</xsl:when>
<xsl:otherwise>
<xsl:message select="concat('ERROR: ',
Expand Down

0 comments on commit 3c3e429

Please sign in to comment.