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
acl:mode() reads the LinkedDataHub.acl-modes window flags, which were set only on
document load from the response Link headers. On fetch-less switches between
already-loaded tab panes the flags went stale, reflecting the last-loaded
document rather than the activated pane.
Extract the flag-setting into a reusable ldh:SetAclModes template; stamp each
document body with data-acl-modes (from its Link-header modes) via a new
acl-modes param threaded through bs2:Document; re-sync the flags from the
activated pane's data-acl-modes in ldh:ActivateTab, and re-stamp reused panes.
<!-- checking acl:mode here because this template is called after every document load (also the initial load) and has access to ?headers -->
451
-
<!-- set LinkedDataHub.acl-modes objects which are later used by the acl:mode function -->
452
-
<!-- doing it here because this template is called after every document load (also the initial load) and has access to ?headers -->
450
+
<!-- extract acl:mode from the response Link headers here because this template is called after every document load (also the initial load) and has access to ?headers -->
451
+
<!-- for proxied documents these are the *remote* node's modes, forwarded by ProxyRequestFilter -->
<!-- sync acl:mode() to this pane's data-acl-modes (stamped from its document's Link header); the window flags otherwise go stale on fetch-less tab switches between panes -->
794
+
<xsl:call-templatename="ldh:SetAclModes">
795
+
<xsl:with-paramname="acl-modes"select="if (ixsl:contains(., 'dataset.aclModes')) then (for $mode in tokenize(ixsl:get(., 'dataset.aclModes'), ' ')[.] return xs:anyURI($mode)) else ()"/>
796
+
</xsl:call-template>
796
797
</xsl:for-each>
797
798
</xsl:template>
798
799
800
+
<!-- set the LinkedDataHub.acl-modes flags read by acl:mode(); called on document load (from the response Link headers) and on tab activation (from the pane's data-acl-modes) -->
0 commit comments