@@ -100,14 +100,13 @@ exclude-result-prefixes="#all">
100100
101101 <xsl : output method =" xhtml" encoding =" UTF-8" indent =" yes" omit-xml-declaration =" yes" doctype-system =" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" doctype-public =" -//W3C//DTD XHTML 1.0 Strict//EN" media-type =" application/xhtml+xml" />
102102
103- <xsl : param name =" lapp:origin" as =" xs:anyURI" />
103+ <xsl : param name =" lapp:origin" as =" xs:anyURI? " />
104104 <xsl : param name =" ldh:requestUri" as =" xs:anyURI" />
105- <xsl : param name =" ac:endpoint" select =" resolve-uri('sparql', $ldt:base)" as =" xs:anyURI" />
105+ <xsl : param name =" ac:endpoint" select =" if ($ldt:base) then resolve-uri('sparql', $ldt:base) else () " as =" xs:anyURI? " />
106106 <xsl : param name =" sd:endpoint" as =" xs:anyURI?" />
107107 <xsl : param name =" acl:agent" as =" xs:anyURI?" />
108108 <xsl : param name =" lapp:Context" as =" document-node()?" />
109109 <xsl : param name =" foaf:Agent" select =" if ($acl:agent) then document(ac:document-uri($acl:agent)) else ()" as =" document-node()?" />
110- <xsl : param name =" force-exclude-all-namespaces" select =" true()" />
111110 <xsl : param name =" ac:httpHeaders" as =" xs:string" />
112111 <xsl : param name =" ac:method" as =" xs:string" />
113112 <xsl : param name =" acl:mode" as =" xs:anyURI*" />
@@ -334,9 +333,9 @@ exclude-result-prefixes="#all">
334333 </xsl : for-each >
335334 </xsl : for-each >
336335
337- <xsl : if test =" key('apps-by-origin', $lapp:origin, $lapp:Context)" >
338- <meta property =" og:site_name" content =" {ac:label(key('apps-by-origin', $lapp:origin, $lapp:Context) )}" />
339- </xsl : if >
336+ <xsl : for-each select =" key('apps-by-origin', $lapp:origin, $lapp:Context)" >
337+ <meta property =" og:site_name" content =" {ac:label(. )}" />
338+ </xsl : for-each >
340339 </xsl : template >
341340
342341 <!-- STYLE -->
@@ -719,7 +718,7 @@ exclude-result-prefixes="#all">
719718 <xsl : apply-templates select =" ." mode =" bs2:SignUp" />
720719 </xsl : template >
721720
722- <xsl : template match =" rdf:RDF[key('apps-by-origin', $lapp:origin, $lapp:Context)/rdf:type/@rdf:resource = '&lapp;EndUserApplication'] | srx:sparql[key('apps-by-origin', $lapp:origin, $lapp:Context)/rdf:type/@rdf:resource = '&lapp;EndUserApplication']" mode =" bs2:DataspaceNavList" priority =" 1" >
721+ <xsl : template match =" rdf:RDF[$lapp:origin][ key('apps-by-origin', $lapp:origin, $lapp:Context)/rdf:type/@rdf:resource = '&lapp;EndUserApplication'] | srx:sparql[$lapp:origin] [key('apps-by-origin', $lapp:origin, $lapp:Context)/rdf:type/@rdf:resource = '&lapp;EndUserApplication']" mode =" bs2:DataspaceNavList" priority =" 1" >
723722 <ul class =" nav pull-right" >
724723 <xsl : variable name =" user-defined-apps" select =" if (doc-available($app-request-uri)) then document($app-request-uri)//*[lapp:origin/@rdf:resource] else ()" as =" element()*" />
725724 <xsl : variable name =" system-apps" select =" $lapp:Context//*[rdf:type/@rdf:resource = '&lapp; EndUserApplication'][lapp:origin/@rdf:resource]" as =" element()*" />
@@ -794,7 +793,7 @@ exclude-result-prefixes="#all">
794793
795794 <!-- SIGNUP -->
796795
797- <xsl : template match =" rdf:RDF[not($foaf:Agent//@rdf:about)][key('apps-by-origin', $lapp:origin, $lapp:Context)/rdf:type/@rdf:resource = '&lapp;EndUserApplication'] | srx:sparql[not($foaf:Agent//@rdf:about)][key('apps-by-origin', $lapp:origin, $lapp:Context)/rdf:type/@rdf:resource = '&lapp;EndUserApplication']" mode =" bs2:SignUp" priority =" 1" >
796+ <xsl : template match =" rdf:RDF[$lapp:origin][ not($foaf:Agent//@rdf:about)][key('apps-by-origin', $lapp:origin, $lapp:Context)/rdf:type/@rdf:resource = '&lapp;EndUserApplication'] | srx:sparql[$lapp:origin] [not($foaf:Agent//@rdf:about)][key('apps-by-origin', $lapp:origin, $lapp:Context)/rdf:type/@rdf:resource = '&lapp;EndUserApplication']" mode =" bs2:SignUp" priority =" 1" >
798797 <!-- resolve links against the origin URI of the admin app -->
799798 <xsl : param name =" google-signup" select =" exists($google:clientID)" as =" xs:boolean" />
800799 <xsl : param name =" orcid-signup" select =" exists($orcid:clientID)" as =" xs:boolean" />
@@ -1262,7 +1261,7 @@ exclude-result-prefixes="#all">
12621261
12631262 <!-- SETTINGS -->
12641263
1265- <xsl : template match =" rdf:RDF | srx:sparql" mode =" bs2:Settings" priority =" 1" >
1264+ <xsl : template match =" rdf:RDF[$lapp:origin] | srx:sparql[$lapp:origin] " mode =" bs2:Settings" priority =" 1" >
12661265 <div class =" btn-group pull-right" >
12671266 <button type =" button" title =" {ac:label(key('resources', 'nav-bar-action-settings-title', document('translations.rdf')))}" >
12681267 <xsl : apply-templates select =" key('resources', 'settings', document('translations.rdf'))" mode =" ldh:logo" >
0 commit comments