/templates/showmarc.tmpl
Type: /type/template
body: value: $def with (record, filename, begin, length)

$var title: MARC details of $filename:$begin:$length

$ end = begin + length - 1

<div id="header">
    <div id="title">MARC details of $filename:$begin:$length</div>
</div>

<div class="contenttext">

<br/>
Record Locator: $filename

$if not record:
    Invalid MARC record.
$else:
    <hr/>
    <b>LEADER:</b> <code>$record.leader</code><br/>
    $:record.html()

    <hr/>

    In order to retrieve the exact bytes of this MARC record, perform a
    HTTP GET on the url 

    <pre>http://www.archive.org/download/$filename</pre> 

    and include the HTTP header

    <pre>Range: bytes=$begin-$end</pre>

    You will need to do this with a special purpose web client
    such as <a href=http://curl.haxx.se>curl</a>, not a browser.
    The curl command you'd use is:
    
    <pre>curl -L -r $begin-$end 'http://www.archive.org/download/$filename'</pre>
</div>
title: template to show MARC records