Split summary out of records template MKWS-312
[mkws-moved-to-github.git] / src / templates / summary.handlebars
diff --git a/src/templates/summary.handlebars b/src/templates/summary.handlebars
new file mode 100644 (file)
index 0000000..aa2ed10
--- /dev/null
@@ -0,0 +1,24 @@
+{{!
+Brief record from a search.
+
+The non-metadata keys enable an optional link to display an AJAX popup that
+fetches additional record detail.
+
+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 details template
+md-* - metadata fields passed through from backend
+}}
+<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}}