Backup #1620

ID1620
Dateipfad/var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/entitaeten/index.php
Version2
Typ modified
Größe3.0 KB
Hash43e089b8e65c8cfec977b33837709bd902afe4ee6ba03ed8c54f610c8129567f
Datum2025-12-27 09:44:19
Geändert vonclaude-code-hook
GrundClaude Code Pre-Hook Backup vor Edit-Operation
Datei existiert Ja

Dateiinhalt

<?php ob_start(); ?>

<nav class="breadcrumb">
    <a href="/">Home</a> &raquo; <a href="/explorer">Explorer</a> &raquo; <a href="/semantic-explorer">Semantic Explorer</a> &raquo; Entitaeten
</nav>

<h1>Entitaeten</h1>
<p>Extrahierte Personen, Organisationen, Konzepte und mehr.</p>

<div class="stats-grid">
    <?php foreach ($stats as $s): ?>
    <div class="stat-card">
        <span class="stat-card__value"><?= $s['count'] ?></span>
        <span class="stat-card__label"><?= htmlspecialchars($s['type']) ?></span>
    </div>
    <?php endforeach; ?>
</div>

<div class="filters">
    <input type="search" id="entities-search" class="form-input" placeholder="Durchsuchen...">
    <select id="filter-type" class="form-select--inline">
        <option value="">Alle Typen</option>
        <option value="person">Person</option>
        <option value="organization">Organisation</option>
        <option value="location">Ort</option>
        <option value="concept">Konzept</option>
        <option value="method">Methode</option>
        <option value="tool">Tool</option>
        <option value="event">Event</option>
        <option value="other">Sonstige</option>
    </select>
</div>

<?php if (!empty($entities)): ?>
<table id="entities-table" data-sortable>
    <thead>
        <tr>
            <th data-sort="name">Name</th>
            <th data-sort="type">Typ</th>
            <th data-sort="chunk_count">Chunks</th>
            <th data-sort="relation_count">Relationen</th>
            <th data-sort="description">Beschreibung</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($entities as $e): ?>
        <tr>
            <td><a href="/semantic-explorer/entitaeten/<?= $e['id'] ?>"><?= htmlspecialchars($e['name']) ?></a></td>
            <td><span class="badge"><?= htmlspecialchars($e['type']) ?></span></td>
            <td><?= $e['chunk_count'] ?></td>
            <td><?= $e['relation_count'] ?></td>
            <td><?= htmlspecialchars(substr($e['description'] ?? '', 0, 80)) ?><?= strlen($e['description'] ?? '') > 80 ? '...' : '' ?></td>
        </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php else: ?>
<p class="empty-state">Keine Entitaeten gefunden. Fuehren Sie die semantische Analyse aus.</p>
<?php endif; ?>

<p class="links-bar">
    <a href="/semantic-explorer">Zurueck zum Explorer</a> |
    <a href="/semantic-explorer/relationen">Relationen</a>
</p>

<script type="module">
import { init } from '/js/components/data-table.js';

const dataTable = init({
    clock: { now_epoch_ms_utc: () => Date.now() },
    logger: console,
    ui: {
        showMessage: (msg) => { console.log(msg.type + ': ' + msg.text); },
        disableFeature: (key) => { console.warn('Feature disabled: ' + key); },
        offerRetry: () => Promise.resolve(false)
    },
    runId: crypto.randomUUID()
});

dataTable.create('entities-table', {
    searchInput: 'entities-search',
    pageSize: 20,
    filters: {
        'filter-type': 1
    }
});
</script>

<?php $content = ob_get_clean(); ?>
<?php require VIEW_PATH . '/layout.php'; ?>

Vollständig herunterladen

Aktionen

Herunterladen

Andere Versionen dieser Datei

ID Version Typ Größe Datum
1641 3 modified 3.0 KB 2025-12-27 09:45
1620 2 modified 3.0 KB 2025-12-27 09:44
12 1 modified 3.0 KB 2025-12-20 16:39

← Zurück zur Übersicht