/upstream/templates/showia.tmpl
Type: /type/template
body: value: $def with (ia, record, books)

$ title = "MARC record from Internet Archive"

$var title: $title

<div id="contentHead">
    $if len(books):
        $ e = get_document(books[0])
        <div class="breadcrumbs"><a href="$e.key">$e.title</a> /</div>
    <h1>$title</h1>
</div>
<div id="contentBody">
    <div class="section">
        <table class="meta">
            <tbody>
                <tr>
                    <td class="title"><span class="title">Record ID</span></td>
                    <td><span class="object">ia:$ia</span></td>
                </tr>
                <tr>
                    <td class="title"><span class="title">Source</span></td>
                    <td><span class="object"><a href="http://www.archive.org/details/$ia">Internet Archive</a></span></td>
                </tr>
                <tr>
                    <td class="title"><span class="title">Download MARC XML</span></td>
                    <td><span class="object"><a href="http://www.archive.org/download/$ia/$(ia)_marc.xml">http://www.archive.org/download/$ia/$(ia)_marc.xml</a></span></td>
                </tr>
                <tr>
                    <td class="title"><span class="title">Download MARC binary</span></td>
                    <td><span class="object"><a href="http://www.archive.org/download/$ia/$(ia)_meta.mrc">http://www.archive.org/download/$ia/$(ia)_meta.mrc</a></span></td>
                </tr>
            </tbody>
        </table>
    </div>

    $if not record:
        <p>$_("Invalid MARC record.")</p>
    $else:
        <p><b>LEADER:</b> <code>$record.leader</code><br/>
        $:record.html()</p>
</div>
title: MARC record from Internet Archive
plugin: upstream