Commit 3f602c3
Path-aware view ordering for modal search; assorted fixes
View block now derives a variable→predicate-URI-set map from the SELECT's
BGPs (handling alternative property paths like rdfs:label|sh:name|... whose
items are URIs) and drives three things from it: the order-by dropdown
(one option per variable, deduped), auto-pickup of ORDER BY from the
SELECT, and a COALESCE-style client-side sort key that prefers literals
whose @xml:lang primary subtag matches $ac:lang. `ORDER BY ?label` baked
into $select-labelled-string so the modal search returns alphabetically
by label.
Search modal: form moved into the modal-header with a magnifier submit
button; `.search-form-modal` CSS extends `.search-form`'s flex layout so
input + button fit naturally.
Empty address-bar submit button removed from the navbar-form (its
ldh:logo template was never added; pressing Enter still submits).
$ac:lang now reads the primary subtag of navigator.language so existing
`lang($ac:lang)` checks (which spec-match `xml:lang='en'` for input
`'en'`, not for `'en-US'`) keep working under browser preferences like
`en-US`.
Block mousemove handler guards the LinkedDataHub.contents cache lookup
with ixsl:contains to avoid a warning per pixel when the hovered
document-body's URI isn't cached.
Local-document navigation handlers (tab activate, tab-close fallback,
popstate, generic link click) now strip the query string from $uri via
ac:absolute-path before passing it to ldh:DocumentNavigate. The cache
key downstream now matches document-body/@about / tab data-uri, both
already canonicalised via ac:absolute-path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent daa15c5 commit 3f602c3
7 files changed
Lines changed: 357 additions & 188 deletions
File tree
- src/main/webapp/static/com/atomgraph/linkeddatahub
- css
- xsl
- bootstrap/2.3.2
- client
- block
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
168 | | - | |
| 170 | + | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| |||
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
244 | 248 | | |
245 | 249 | | |
246 | 250 | | |
| |||
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
289 | | - | |
| 293 | + | |
| 294 | + | |
290 | 295 | | |
291 | 296 | | |
292 | | - | |
| 297 | + | |
293 | 298 | | |
294 | 299 | | |
295 | 300 | | |
| |||
0 commit comments