$def with (record, filename, begin, length, books) $# Template entry point for MARC record's that are not amazon or IA. $# e.g. /show-records/marc_upei/marc-for-openlibrary-bigset.mrc:4980114:1308 $ format = query_param('format') $if format == 'raw': $var content_type: application/marc $var rawtext = record.data $ get_source_record = render_template("history/sources").get_source_record $ source_record = get_source_record("%s:%s:%s" % (filename, begin, length)) $ title = "MARC Record from " + source_record.source_name $ next_url = "../%s:%s:5" % (filename, begin + length) $var title: $title
$if len(books): $ e = get_document(books[0])

$title

Record ID $source_record.id
Source $source_record.source_name
Download Link $source_record.url?format=raw
$if not record:

$_("Invalid MARC record.")

$else:

LEADER: $record.leader
$:record.html()

$if ctx.user and (ctx.user.is_admin() or ctx.user.is_librarian()):
$_("Next")