Improve template comments MKWS-279
authorJason Skomorowski <jason@indexdata.com>
Fri, 17 Oct 2014 14:43:22 +0000 (10:43 -0400)
committerJason Skomorowski <jason@indexdata.com>
Fri, 17 Oct 2014 14:43:22 +0000 (10:43 -0400)
src/mkws.templates/Image.handlebars
src/mkws.templates/Ranking.handlebars
src/mkws.templates/Record.handlebars
src/mkws.templates/Records.handlebars

index abee587..f74f174 100644 (file)
@@ -1,8 +1,11 @@
 {{!
 Records presented as images.
 
+The non-metadata keys enable an optional link to display an AJAX popup that
+fetches additional record detail.
+
 hits:
-  containerClass - class  attribute for same
+  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
index 1c823bb..c016dc5 100644 (file)
@@ -2,8 +2,8 @@
 Ranking -- widget to select sort ordering and number of records to display
 
 team - team for this widget
-showSort
-showPerPage
+showSort - set if sort control is to be displayed
+showPerPage - set if per-page control is to be displayed
 sort
   key - machine readable value for this sort option
   label - text to display for this sort option
index f8bf951..9e8184e 100644 (file)
@@ -1,5 +1,7 @@
 {{!
 Full record display.
+
+Top level object is metadata from Service Proxy / Pazpar2
 }}
 <table>
   <tr>
index 03ba9a2..3e1b3a7 100644 (file)
@@ -1,8 +1,11 @@
 {{!
 Records from a search.
 
+The non-metadata keys enable an optional link to display an AJAX popup that
+fetches additional record detail.
+
 hits:
-  containerClass - class  attribute for same
+  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