Split summary out of records template MKWS-312
[mkws-moved-to-github.git] / src / templates / records.handlebars
index 3e1b3a7..07e6801 100644 (file)
@@ -8,22 +8,11 @@ hits:
   containerClass - partial class attribute for element containing a record
   detailLinkId - id for the element triggering detail display
   detailClick - a click event handler for details
-  renderedDetails - active record details rendered from the Record template
+  renderedDetails - active record details rendered from the details template
   md-* - metadata fields passed through from backend
 }}
 {{#each hits}}
   <div class="{{containerClass}}">
-    <a href="#" id="{{detailLinkId}}" onclick="{{detailClick}}">
-      <b>{{md-title}}</b>
-    </a>
-    {{#if md-title-remainder}}
-      <span>{{md-title-remainder}}</span>
-    {{/if}}
-    {{#if md-title-responsibility}}
-      <span><i>{{md-title-responsibility}}</i></span>
-    {{/if}}
-    {{#if renderedDetails}}
-      {{{renderedDetails}}}
-    {{/if}}
+    {{>summary}}
   </div>
 {{/each}}