It looks like you're offline.
Open Library logo
additional options menu

display macro for works in search result, based on edition result template

This doc was last edited by Administrator March 16, 2009.

plugin upstream
Templates in the website are disabled now. Editing them will not have any effect on the live website.
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
$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>