diff --git a/src/main/java/com/knowledgepixels/nanodash/QueryApiAccess.java b/src/main/java/com/knowledgepixels/nanodash/QueryApiAccess.java index 3ae810f5..76507f84 100644 --- a/src/main/java/com/knowledgepixels/nanodash/QueryApiAccess.java +++ b/src/main/java/com/knowledgepixels/nanodash/QueryApiAccess.java @@ -305,18 +305,8 @@ private QueryApiAccess() { // ref-scoped query requires root_np; the IRI-keyed variant backs the users' view. See // docs/queries/list-view-displays{,-ref}.trig. - // Part view-displays listing (resource + partid + partclass): the owning resource's displays, - // each ?displayed_here-flagged for the specific part. RAMy6Nu supersedes RAPaHJiD (renames - // ?shown_here → ?displayed_here). RAFkUf3A (derived from RAMy6Nu) adds a ?position_label column - // (first 3 chars of the structural position) so the position cell shows e.g. "1.1" with the full - // literal on hover. - // RAs9S7c9 (supersedes RA2LG9c5) swaps the authority gate to the npa:hasGoverningSpaceRef gate - // keyed on materialized npa:hasRoleType (issue #510), preserving the ?position_label column. - // RAKHyaoB (supersedes RAs9S7c9) adds space-governed version resolution (gen:governedBy; - // docs/views-and-presets-as-maintained-resources.md): a referenced version declaring a - // governing space resolves to the newest member+-signed version of its (kind, space) - // pair via a run-once governed sub-select, falling back to the pinned version. - public static final String LIST_PART_VIEW_DISPLAYS = "RAKHyaoBCpNdbGsdPLdc8lbxLb4KuLhnmU0V2-NcxHei0/list-part-view-displays"; + // The part view-displays listing is not referenced here either: AboutPartPanel takes it + // from the part view nanopub's gen:hasViewQuery and passes resource + partid + partclass. // Ref-scoped preset-assignment listing (root_np): reads the server-materialised // npa:PresetAssignment rows scoped by npa:forSpaceRef from the validated current space-state diff --git a/src/main/java/com/knowledgepixels/nanodash/component/AboutPartPanel.java b/src/main/java/com/knowledgepixels/nanodash/component/AboutPartPanel.java index f476971e..e67e9236 100644 --- a/src/main/java/com/knowledgepixels/nanodash/component/AboutPartPanel.java +++ b/src/main/java/com/knowledgepixels/nanodash/component/AboutPartPanel.java @@ -1,6 +1,5 @@ package com.knowledgepixels.nanodash.component; -import com.knowledgepixels.nanodash.QueryApiAccess; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.Multimap; import com.knowledgepixels.nanodash.Utils; @@ -100,7 +99,11 @@ public AboutPartPanel(String id, AbstractResourceWithProfile context, String par for (IRI partClass : partClasses) { vdParams.put("partclass", partClass.stringValue()); } - add(QueryResultTableBuilder.create("viewdisplays", new QueryRef(QueryApiAccess.LIST_PART_VIEW_DISPLAYS, vdParams), new ViewDisplay(vdView)).resourceWithProfile(context).id(context.getId()).contextId(context.getId()).build()); + // Take the query from the view itself (as the space/user/maintained-resource panels do) + // rather than from a constant here: a constant silently drifts from the view's + // gen:hasViewQuery, and the view's per-row actions map columns the view's own query + // version provides. + add(QueryResultTableBuilder.create("viewdisplays", new QueryRef(vdView.getQuery().getQueryId(), vdParams), new ViewDisplay(vdView)).resourceWithProfile(context).id(context.getId()).contextId(context.getId()).build()); } }