1.8.2 - Anpassungen am Bulk-System
release-tag / release-image (push) Successful in 1m40s

This commit is contained in:
2026-07-23 08:49:28 +02:00
parent 4439684e41
commit ec58fc30f8
19 changed files with 88 additions and 20 deletions
File diff suppressed because one or more lines are too long
+28 -2
View File
@@ -311,6 +311,30 @@
return {html, markdown, json, jsonl, csv};
}
function buildDisclosurePreview(data) {
const wrap = document.createElement('p');
wrap.className = 'bulk-disclosure-preview';
const link = document.createElement('a');
link.className = 'bulk-disclosure-preview__link';
link.href = data.declarationUrl;
link.target = '_blank';
link.rel = 'noopener';
const badge = document.createElement('img');
badge.className = 'bulk-disclosure-preview__badge';
badge.src = data.badgeUrl;
badge.alt = '';
badge.setAttribute('aria-hidden', 'true');
const text = document.createElement('span');
text.className = 'bulk-disclosure-preview__text';
text.textContent = data.accessibleText || 'KI-Nutzung – Details zur Kennzeichnung';
link.append(badge, text);
wrap.appendChild(link);
return wrap;
}
function renderResults(results) {
currentResults = results;
exportsCache = buildExports(results);
@@ -326,14 +350,16 @@
const code = document.createElement('code');
code.textContent = item.subject;
subjectCell.appendChild(code);
const previewCell = document.createElement('td');
const statusCell = document.createElement('td');
statusCell.className = item.ok ? 'ok' : 'failed';
statusCell.textContent = item.ok ? '✓ erzeugt' : `Fehler: ${item.error || 'unbekannt'}`;
const linksCell = document.createElement('td');
if (item.ok && item.data) {
previewCell.appendChild(buildDisclosurePreview(item.data));
const links = document.createElement('div');
links.className = 'result-links';
[['Declaration', item.data.declarationUrl], ['JSON-LD', item.data.manifestUrl], ['Badge', item.data.badgeUrl]].forEach(([label, href]) => {
[['Declaration', item.data.declarationUrl], ['JSON-LD', item.data.manifestUrl], ['SVG (nur Grafik)', item.data.badgeUrl]].forEach(([label, href]) => {
const a = document.createElement('a');
a.textContent = label;
a.href = href;
@@ -343,7 +369,7 @@
});
linksCell.appendChild(links);
}
tr.append(subjectCell, statusCell, linksCell);
tr.append(subjectCell, previewCell, statusCell, linksCell);
tbody.appendChild(tr);
});
$('output-html').value = exportsCache.html;