Skip to content

Commit

Permalink
Add classification of OpenAthens SP entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 26, 2008
1 parent 3dbdc66 commit 109692b
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion build/statistics.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,20 @@
<xsl:variable name="entities.ezproxy.out"
select="set:difference($entities.ezproxy.in, $entities.ezproxy)"/>

<!--
Classify OpenAthens SP entities.
-->
<xsl:variable name="entities.openathenssp.in" select="$entities.ezproxy.out"/>
<xsl:variable name="entities.openathenssp"
select="$entities.openathenssp.in[md:Extensions/uklabel:Software/@name='OpenAthens SP']"/>
<xsl:variable name="entities.openathenssp.count" select="count($entities.openathenssp)"/>
<xsl:variable name="entities.openathenssp.out"
select="set:difference($entities.openathenssp.in, $entities.openathenssp)"/>

<!--
Classify Shibboleth 2.0 IdPs and SPs.
-->
<xsl:variable name="entities.shib.2.in" select="$entities.ezproxy.out"/>
<xsl:variable name="entities.shib.2.in" select="$entities.openathenssp.out"/>
<xsl:variable name="idps.shib.2"
select="$entities.shib.2.in/descendant::md:SingleSignOnService[contains(@Location, '/profile/Shibboleth/SSO')]/ancestor::md:EntityDescriptor"/>
<xsl:variable name="sps.shib.2"
Expand Down Expand Up @@ -968,6 +978,39 @@
</p>
</xsl:if>

<!--
OpenAthens SP entities.
-->
<xsl:if test="$entities.openathenssp.count != 0">
<h3>OpenAthens SP Entities</h3>
<p>
<xsl:if test="$entities.openathenssp.count = 1">
There is 1 entity in the metadata running
OpenAthens SP
service provider software.
</xsl:if>
<xsl:if test="$entities.openathenssp.count != 1">
There are <xsl:value-of select="$entities.openathenssp.count"/>
entities in the metadata running
OpenAthens SP
service provider software.
</xsl:if>
</p>
<ul>
<xsl:for-each select="$entities.openathenssp">
<li>
<xsl:value-of select="@ID"/>:
<code><xsl:value-of select="@entityID"/></code>
</li>
</xsl:for-each>
</ul>
<p>
This is <xsl:value-of select="format-number($entities.openathenssp.count div $entityCount, '0.0%')"/>
of all entities, or <xsl:value-of select="format-number($entities.openathenssp.count div $spCount, '0.0%')"/>
of service providers.
</p>
</xsl:if>

<!--
Unknown entities.
-->
Expand Down

0 comments on commit 109692b

Please sign in to comment.