/macros/WorkResults
Type: /type/macro
description: display macro for works in search result, based on edition result template
macro: value: $def with (work_group)

$ _ = i18n.get_namespace('/search')
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="result-item">

$for (w,bs) in work_group:
    <td class="result-text" valign="top">
        <a href="$w.key/$w.title.replace(' ', '-')" class="result">$w.title_prefix $w.title</a>
        <span class="result-small">$_.by 
        $for author in w.authors:
            $:thingrepr(author)
        </span>
        <!-- of course the style below should be done by css -->
        <br><font color=red>Click the title to see available editions of this work.</font><p>
    </td></tr>

</table>