Split summary out of records template MKWS-312
[mkws-moved-to-github.git] / src / templates / summary.handlebars
1 {{!
2 Brief record 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 containerClass - partial class attribute for element containing a record
8 detailLinkId - id for the element triggering detail display
9 detailClick - a click event handler for details
10 renderedDetails - active record details rendered from the details template
11 md-* - metadata fields passed through from backend
12 }}
13 <a href="#" id="{{detailLinkId}}" onclick="{{detailClick}}">
14   <b>{{md-title}}</b>
15 </a>
16 {{#if md-title-remainder}}
17   <span>{{md-title-remainder}}</span>
18 {{/if}}
19 {{#if md-title-responsibility}}
20   <span><i>{{md-title-responsibility}}</i></span>
21 {{/if}}
22 {{#if renderedDetails}}
23   {{{renderedDetails}}}
24 {{/if}}