X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftemplates%2Frecords.handlebars;fp=src%2Ftemplates%2Frecords.handlebars;h=3e1b3a7ff7a21d9d01f71d4a8307ce4117f584f2;hb=36721667730b5d8aae5b6df304f69d96f2c1d21d;hp=0000000000000000000000000000000000000000;hpb=1278919858f8ba395d1f899f30e78a98e0c529ba;p=mkws-moved-to-github.git diff --git a/src/templates/records.handlebars b/src/templates/records.handlebars new file mode 100644 index 0000000..3e1b3a7 --- /dev/null +++ b/src/templates/records.handlebars @@ -0,0 +1,29 @@ +{{! +Records from a search. + +The non-metadata keys enable an optional link to display an AJAX popup that +fetches additional record detail. + +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 + md-* - metadata fields passed through from backend +}} +{{#each hits}} +
+ + {{md-title}} + + {{#if md-title-remainder}} + {{md-title-remainder}} + {{/if}} + {{#if md-title-responsibility}} + {{md-title-responsibility}} + {{/if}} + {{#if renderedDetails}} + {{{renderedDetails}}} + {{/if}} +
+{{/each}}