Skip to content
wiki.fftac.org

Manuscript Workstation - Source Excerpt 05

Back to Manuscript Workstation

Summary

This source excerpt preserves a bounded section of Spiralist/wp-content/plugins/ns12-manuscript/templates/manuscript-workstation.php so readers can inspect the evidence without opening the full source file.

**Source path:** Spiralist/wp-content/plugins/ns12-manuscript/templates/manuscript-workstation.php

<a class="spiralist-button spiralist-button--secondary" href="<?php echo esc_url($browser_primary_action_url); ?>"><?php echo esc_html($browser_primary_action_label); ?></a>
                    <?php endif; ?>
                    <button class="spiralist-button spiralist-button--secondary" type="button" data-workstation-open-modal="search" aria-controls="manuscript-search-modal" aria-haspopup="dialog">Search the Codex</button>
                    <button class="spiralist-button spiralist-button--secondary" type="button" data-workstation-open-modal="toc" aria-controls="manuscript-toc-modal" aria-haspopup="dialog">Open TOC</button>
                </div>
            </div>
            <dl class="spiralist-meta-list spiralist-manuscript-route-panel__facts">
                <div>
                    <dt>Browser Scope</dt>
                    <dd><?php echo esc_html($browser_scope_copy); ?></dd>
                </div>
                <div>
                    <dt>Prompt Coverage</dt>
                    <dd><?php echo esc_html($browser_prompt_copy); ?></dd>
                </div>
                <div>
                    <dt>Current Route</dt>
                    <dd class="spiralist-manuscript-route-panel__path"><?php echo esc_html($browser_route_copy); ?></dd>
                </div>
                <div>
                    <dt>Machine Links</dt>
                    <dd class="spiralist-manuscript-route-panel__links">
                        <?php if ($manuscript_manifest_url !== '') : ?>
                            <a href="<?php echo esc_url($manuscript_manifest_url); ?>" target="_blank" rel="noopener noreferrer">Manifest JSON</a>
                        <?php endif; ?>
                        <?php if ($manuscript_iiif_search_url !== '') : ?>
                            <a href="<?php echo esc_url($manuscript_iiif_search_url); ?>" target="_blank" rel="noopener noreferrer">IIIF Search</a>
                        <?php endif; ?>
                        <?php if ($manuscript_search_api_url !== '') : ?>
                            <a href="<?php echo esc_url($manuscript_search_api_url); ?>" target="_blank" rel="noopener noreferrer">Search API</a>
                        <?php endif; ?>
                        <?php if ($manuscript_manifest_url === '' && $manuscript_iiif_search_url === '' && $manuscript_search_api_url === '') : ?>
                            <span class="spiralist-muted">Not published</span>
                        <?php endif; ?>
                    </dd>
                </div>
            </dl>
        </section>
    <?php endif; ?>

    <?php if ($workstation_is_detail_route) : ?>
        <section class="spiralist-manuscript-route-panel spiralist-manuscript-route-panel--compact" aria-labelledby="manuscript-route-summary">
            <div class="spiralist-manuscript-route-panel__summary">
                <p class="spiralist-section-tag"><?php echo esc_html($manuscript_route_mode === 'folio' ? $book_heading : 'Chapter Route'); ?></p>
                <h4 id="manuscript-route-summary"><?php echo esc_html($context_page_summary . ' | ' . $context_section_summary); ?></h4>
            </div>
            <dl class="spiralist-meta-list spiralist-manuscript-route-panel__facts spiralist-manuscript-route-panel__facts--compact">
                <div>
                    <dt>Dedicated Route</dt>
                    <dd class="spiralist-manuscript-route-panel__path">
                        <?php echo esc_html($manuscript_route_mode === 'folio' ? $current_page_route_copy : $current_section_route_copy); ?>
                    </dd>
                </div>
                <div>
                    <dt>Reader Surface</dt>
                    <dd>
                        <?php
                        echo esc_html(
                            $manuscript_route_mode === 'folio'
                                ? ($is_primary_study_surface ? 'Study folio with node field and dossier tabs' : 'Annotated folio with dossier tabs')
                                : 'Chapter route with the same manuscript viewer'
                        );
                        ?>
                    </dd>
                </div>
            </dl>
            <div class="spiralist-cta-row spiralist-cta-row--start spiralist-manuscript-route-panel__nav">
                <?php if ($previous_page_route_url !== '') : ?>
                    <a class="spiralist-button spiralist-button--secondary" href="<?php echo esc_url($previous_page_route_url); ?>">Previous Folio</a>
                <?php endif; ?>
                <?php if ($current_section_url !== '' && $manuscript_route_mode === 'folio') : ?>
                    <a class="spiralist-button spiralist-button--secondary" href="<?php echo esc_url($current_section_url); ?>">Chapter Route</a>
                <?php endif; ?>
                <?php if ($next_page_route_url !== '') : ?>
                    <a class="spiralist-button spiralist-button--secondary" href="<?php echo esc_url($next_page_route_url); ?>">Next Folio</a>
                <?php endif; ?>
            </div>
        </section>
    <?php endif; ?>

    <?php if ($workstation_is_detail_route) : ?>
        <details class="spiralist-manuscript-workstation__drawer spiralist-manuscript-workstation__drawer--context" data-workstation-context-drawer>
            <summary>
                <span class="spiralist-manuscript-workstation__drawer-title">
                    <span class="spiralist-manuscript-workstation__drawer-kicker">Codex Context</span>
                    <span class="spiralist-manuscript-workstation__drawer-copy">Sequence, chapter progress, and prompt linkage stay available without pulling focus off the book.</span>
                </span>
                <span class="spiralist-manuscript-workstation__drawer-meta" aria-hidden="true">
                    <span class="spiralist-manuscript-workstation__drawer-chip"><?php echo esc_html($context_page_summary); ?></span>
                    <span class="spiralist-manuscript-workstation__drawer-chip"><?php echo esc_html($context_section_summary); ?></span>
                    <span class="spiralist-manuscript-workstation__drawer-chip"><?php echo esc_html($context_prompt_summary); ?></span>
                </span>
            </summary>
            <div class="spiralist-manuscript-workstation__drawer-panel">
                <div class="spiralist-manuscript-workstation__drawer-intro">
                    <p><?php echo esc_html($reader_copy); ?></p>
                    <?php if ($section_note !== '') : ?>
                        <p><?php echo esc_html($section_note); ?></p>
                    <?php endif; ?>
                    <?php if ($page_count_note !== '') : ?>
                        <p><?php echo esc_html($page_count_note); ?></p>
                    <?php endif; ?>
                    <?php if ($symbols_page_url !== '' || $doctrine_url !== '') : ?>
                        <div class="spiralist-cta-row spiralist-cta-row--start">
                            <?php if ($symbols_page_url !== '') : ?>
                                <a class="spiralist-button spiralist-button--secondary" href="<?php echo esc_url($symbols_page_url); ?>">Browse Symbols</a>
                            <?php endif; ?>
                            <?php if ($doctrine_url !== '') : ?>
                                <a class="spiralist-button spiralist-button--secondary" href="<?php echo esc_url($doctrine_url); ?>">Open Doctrine</a>
                            <?php endif; ?>
                        </div>
                    <?php endif; ?>
                </div>
                <div class="spiralist-manuscript-workstation__status">
                    <div class="spiralist-manuscript-reader__progress-grid">
                        <section class="spiralist-manuscript-progress-card" aria-labelledby="manuscript-book-progress">
                            <p class="spiralist-section-tag">Book Progress</p>
                            <div class="spiralist-manuscript-progress-card__heading">
                                <h3 class="spiralist-card-title" id="manuscript-book-progress"><?php echo esc_html($context_page_summary); ?></h3>
                                <span><?php echo esc_html($book_progress_percent . '%'); ?></span>
                            </div>
                            <div class="spiralist-manuscript-progress-bar" role="progressbar" aria-label="Book progress" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php echo esc_attr($book_progress_percent); ?>">
                                <span style="width: <?php echo esc_attr($book_progress_percent); ?>%;"></span>
                            </div>
                            <p class="spiralist-muted">The workstation keeps this folio inside the full public manuscript sequence.</p>