Skip to content

Commit

Permalink
Debug ldh:LoadBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Aug 13, 2024
1 parent ab54611 commit 0ae2a9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/admin/acl/make-public.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ INSERT
<acl/authorizations/public/#this> acl:accessToClass def:Root, dh:Container, dh:Item, nfo:FileDataObject ;
acl:accessTo <../sparql> .
<acl/authorizations/public-sparql-post/#this> a acl:Authorization ;
<acl/authorizations/public/#sparql-post> a acl:Authorization ;
acl:accessTo <../sparql> ;
acl:mode acl:Append ;
acl:agentClass foaf:Agent, acl:AuthenticatedAgent . # hacky way to allow queries over POST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1017,15 +1017,16 @@ exclude-result-prefixes="#all"
<xsl:param name="doc" as="document-node()"/>
<xsl:param name="refresh-content" as="xs:boolean?"/>

<xsl:variable name="this" select="ancestor::div[@about][1]/@about" as="xs:anyURI"/>
<xsl:variable name="content-uri" select="(@about, $this)[1]" as="xs:anyURI"/> <!-- fallback to @about for charts, queries etc. -->
<xsl:variable name="container" select="." as="element()"/>

<xsl:message>
ldh:LoadBlock @about: <xsl:value-of select="@about"/> @id: <xsl:value-of select="@id"/>
ancestor::div[@about][1]: <xsl:value-of select="serialize(ancestor::div[@about][1])"/>
$this: <xsl:value-of select="$this"/>
</xsl:message>

<xsl:variable name="this" select="ancestor::div[@about][1]/@about" as="xs:anyURI"/>
<xsl:variable name="content-uri" select="(@about, $this)[1]" as="xs:anyURI"/> <!-- fallback to @about for charts, queries etc. -->
<xsl:variable name="container" select="." as="element()"/>


<xsl:choose>
<xsl:when test="key('resources', $this, $doc)">
<xsl:apply-templates select="key('resources', $this, $doc)" mode="ldh:RenderBlock">
Expand Down

0 comments on commit 0ae2a9a

Please sign in to comment.