You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- this is an approximation - server-side layout.xsl also checks exists($template-block-uris) which are blocks defined on ontology classes using ldh:template -->
<xsl:sequenceselect="if (ixsl:query-params()?mode) then for $mode in ixsl:query-params()?mode return xs:anyURI($mode) else (if ($has-content) then xs:anyURI('&ldh;ContentMode') else xs:anyURI('∾ReadMode'))"/>
<!-- document has content when either explicitly declared document-level blocks exist or template-declared class-level blocks exist -->
818
-
<xsl:paramname="has-content"select="exists(for $block-uri in $block-uris return (if (doc-available(ac:document-uri($block-uri))) then key('resources', $block-uri, document(ac:document-uri($block-uri))) else ())) or exists($template-block-uris)"as="xs:boolean"/>
819
819
820
820
<div>
821
821
<xsl:iftest="$id">
@@ -845,8 +845,7 @@ LIMIT 100
845
845
<xsl:sortselect="ac:label(.)"/>
846
846
</xsl:apply-templates>
847
847
</xsl:when>
848
-
<!-- check if the current document has content or its class has content -->
849
-
<xsl:whentest="(empty($ac:mode) and $has-content) or $ac:mode = '&ldh;ContentMode'">
0 commit comments