Skip to content

Commit f0f8c02

Browse files
committed
Fixing template matches for srx:sparql
1 parent 39d922c commit f0f8c02

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/layout.xsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ LIMIT 100
706706
<xsl:apply-templates select="." mode="bs2:SignUp"/>
707707
</xsl:template>
708708

709-
<xsl:template match="rdf:RDF[not($foaf:Agent//@rdf:about)][$lapp:Application//rdf:type/@rdf:resource = '&lapp;EndUserApplication']" mode="bs2:SignUp" priority="1">
709+
<xsl:template match="rdf:RDF[not($foaf:Agent//@rdf:about)][$lapp:Application//rdf:type/@rdf:resource = '&lapp;EndUserApplication'] | srx:sparql[not($foaf:Agent//@rdf:about)][$lapp:Application//rdf:type/@rdf:resource = '&lapp;EndUserApplication']" mode="bs2:SignUp" priority="1">
710710
<!-- resolve links against the base URI of LinkedDataHub and not of the current app, as we want signups to always go the root app -->
711711
<xsl:param name="google-signup-uri" select="ac:build-uri(resolve-uri('admin/oauth2/authorize/google', $ldh:base), map{ 'referer': string(ac:uri()) })" as="xs:anyURI"/>
712712
<xsl:param name="webid-signup-uri" select="resolve-uri('admin/sign%20up', $ldh:base)" as="xs:anyURI"/>
@@ -733,7 +733,7 @@ LIMIT 100
733733
</xsl:if>
734734
</xsl:template>
735735

736-
<xsl:template match="rdf:RDF" mode="bs2:SignUp"/>
736+
<xsl:template match="*" mode="bs2:SignUp"/>
737737

738738
<xsl:template match="*[ldt:base/@rdf:resource]" mode="bs2:AppListItem">
739739
<xsl:param name="active" as="xs:boolean?"/>
@@ -1445,7 +1445,7 @@ LIMIT 100
14451445

14461446
<!-- DOCUMENT TREE -->
14471447

1448-
<xsl:template match="rdf:RDF" mode="bs2:DocumentTree">
1448+
<xsl:template match="rdf:RDF | srx:sparql" mode="bs2:DocumentTree">
14491449
<xsl:param name="id" select="'doc-tree'" as="xs:string?"/>
14501450
<xsl:param name="class" select="'well well-small sidebar-nav'" as="xs:string?"/>
14511451

0 commit comments

Comments
 (0)