3e1b3a7ff7a21d9d01f71d4a8307ce4117f584f2
[mkws-moved-to-github.git] / src / templates / records.handlebars
1 {{!
2 Records from a search.
3
4 The non-metadata keys enable an optional link to display an AJAX popup that
5 fetches additional record detail.
6
7 hits:
8   containerClass - partial class attribute for element containing a record
9   detailLinkId - id for the element triggering detail display
10   detailClick - a click event handler for details
11   renderedDetails - active record details rendered from the Record template
12   md-* - metadata fields passed through from backend
13 }}
14 {{#each hits}}
15   <div class="{{containerClass}}">
16     <a href="#" id="{{detailLinkId}}" onclick="{{detailClick}}">
17       <b>{{md-title}}</b>
18     </a>
19     {{#if md-title-remainder}}
20       <span>{{md-title-remainder}}</span>
21     {{/if}}
22     {{#if md-title-responsibility}}
23       <span><i>{{md-title-responsibility}}</i></span>
24     {{/if}}
25     {{#if renderedDetails}}
26       {{{renderedDetails}}}
27     {{/if}}
28   </div>
29 {{/each}}