From d9e1f3c3692e6836c6767edd60b7c36967bf1595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Jusevi=C4=8Dius?= Date: Wed, 15 Jul 2026 01:40:29 +0300 Subject: [PATCH] Add a Download button to the output dialogs Source and Extract RDF now offer the shown text as a file download (content.xhtml / content.rdf): local:show-output takes optional filename/media-type params and reveals the button only when a caller passes them - the lint modal doesn't, so it keeps the plain view. The download is a client-side Blob clicked through an ephemeral object-URL anchor, so it works on any static hosting (gh-pages included). Co-Authored-By: Claude Fable 5 --- CLAUDE.md | 2 +- index.html | 3 ++- rdfa-editor.css | 21 +++++++++++++++++++++ src/annotate.xsl | 30 +++++++++++++++++++++++++++++- src/edit.xsl | 2 ++ tests/browser/editor.mjs | 8 ++++++++ tests/browser/features.mjs | 3 +++ 7 files changed, 66 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index c9c35b6..5500fdf 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -27,7 +27,7 @@ Modules under `src/`: - **vocab.xsl** — generic ontology RDF/XML → term maps (`local:vocab-terms` → `{uri, label}`, consumed by the typeahead). Handles typed elements (``) and `rdf:Description`+`rdf:type` shapes (including striped one-triple-per-description files like DCMI terms); labels as attributes or child elements; terms outside the ontology namespace filtered out. - **overlay.xsl** — the annotation form (single copy), form reading (`local:form-values` map), pre-filling (`local:populate-form`), show/hide with viewport clamping (`local:show-at`, shared with the edit dialogs). The property/type fields are typeaheads (typeahead.xsl); the datatype field stays a `