Point mkwsref at the temporary home of the templated mkws
[mkwsxb-moved-to-github.git] / mkwsbiblio / mkwsbiblio / static / js / src / EdxChooser.handlebars
1 {{!
2 Records from a search.
3
4 hits:
5   containerClass - class  attribute for same
6   detailLinkId - id for the element triggering detail display
7   detailClick - a click event handler for details
8   renderedDetails - active record details rendered from the Record template
9   md-* - metadata fields passed through from backend
10 }}
11 {{#each hits}}
12   <div class="{{containerClass}}">
13     <a href="#" id="{{detailLinkId}}" onclick="$('#mkwsCurrentRecord').attr('autosearch', '{{md-title}}'); mkws.init('Click select', $('#mkwsCurrentRecordContainer'));">
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}}
25   </div>
26 {{/each}}