/macros/SearchWorks
Type: /type/macro
macro: value: $def with (results, fulltext=False)

$ _ = i18n.get_namespace('/search')

<div id="nav" style="margin-left: 0px;">
<div id="options">
<div class="navouter">
<img src="/static/images/nav.top.png" alt="Options" border="0" />
<div class="navinner">
<div class="navinner-padding">
<span class="navheader">Works</span> <br /><br />


$for b in results:
    $if fulltext:
        $ book = b[0]
        $ ocaid = b[1]
        $ pages = b[2]
    $else:
        $ book = b
        $ ocaid = None
    <div style="padding: 5px 10px 5px 10px; border-top: 0px solid #fff;">
        <a href="$book.key/$book.title.replace(' ', '-')" class="datalink">$book.title_prefix $book.title</a>
    </div>

</div>
</div>

<img src="/static/images/nav.bot.png" alt="" border="0" />

</div>
</div>
</div>