Skip to content

Commit

Permalink
btn-save-query onclick calls onSPARQLQuerySave (before calling `o…
Browse files Browse the repository at this point in the history
…nResourceContentUpdate`)

Unified update/append cases in `onXHTMLContentUpdate` and `onResourceContentUpdate`
  • Loading branch information
namedgraph committed Nov 20, 2023
1 parent ce1235d commit 99b7b68
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 117 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,6 @@ exclude-result-prefixes="#all"
</xsl:variable>
<xsl:variable name="container" select="ancestor::div[@about][1]" as="element()?"/>
<xsl:variable name="content-uri" select="xs:anyURI($container/@about)" as="xs:anyURI"/>

<xsl:message>
$content-uri: '<xsl:value-of select="$content-uri"/>
</xsl:message>

<xsl:variable name="chart-canvas-id" select="ancestor::form/following-sibling::div/@id" as="xs:string"/>
<xsl:variable name="results" select="if (ixsl:contains(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'results')) then ixsl:get(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'results') else root(ixsl:get(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'content'))" as="document-node()"/>

Expand Down
Loading

0 comments on commit 99b7b68

Please sign in to comment.