X-Git-Url: http://git.indexdata.com/?p=mkwsxb-moved-to-github.git;a=blobdiff_plain;f=mkwsbiblio%2Fmkwsbiblio%2Fstatic%2Fjs%2Fsrc%2FEdxChooser.handlebars;fp=mkwsbiblio%2Fmkwsbiblio%2Fstatic%2Fjs%2Fsrc%2FEdxChooser.handlebars;h=e3f8656d285a0ea0c15d684f3a175e7561e7f7a7;hp=0000000000000000000000000000000000000000;hb=7d9d7826c10263bdbf9e8721832ff79229ae13f0;hpb=d88ca3ff75e178263c51153b9ed6468ab2b859a4 diff --git a/mkwsbiblio/mkwsbiblio/static/js/src/EdxChooser.handlebars b/mkwsbiblio/mkwsbiblio/static/js/src/EdxChooser.handlebars new file mode 100644 index 0000000..e3f8656 --- /dev/null +++ b/mkwsbiblio/mkwsbiblio/static/js/src/EdxChooser.handlebars @@ -0,0 +1,26 @@ +{{! +Records from a search. + +hits: + containerClass - class attribute for same + 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}}