Only use one name for dates on the page.
authorDiane Trout <diane@caltech.edu>
Thu, 17 Feb 2011 23:38:19 +0000 (15:38 -0800)
committerDiane Trout <diane@caltech.edu>
Thu, 17 Feb 2011 23:38:19 +0000 (15:38 -0800)
Also the django database uses a date field for creation date
and wont let you format it to an isoformatted timestamp
so I hacked in the time portion into the RDFa field.

htsworkflow/frontend/templates/samples/library_detail.html

index d0731032d1190c3278f2dbc8cdf1a8b8a6d7cb01..0aa83d07528f2f7ea82a9499a8b1c28bf4b74011 100644 (file)
@@ -98,7 +98,7 @@
     <span property="libns:made_by">{{ lib.made_by }}</span>
   <br/>
   <b>Creation Date</b>
-    <span property="libns:creation_date" content="{{result.creation_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ lib.creation_date }}</span>
+    <span property="libns:date" content="{{lib.creation_date|date:'Y-m-d'}}T00:00:00" datatype="xsd:dateTime">{{ lib.creation_date }}</span>
   <br/> 
   <b>Protocol Stopping Point</b>
     <span property="libns:stopping_point">{{ lib.stopping_point_name }}</span>
   <tbody>
     {% for result in eland_results %}
     <tr about="/flowcell/{{result.flowcell_id}}/lane/{{result.lane}}">
-      <td property="libns:sequencing_run_date" content="{{result.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ result.run_date|date}}</td>
+      <td property="libns:date" content="{{result.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ result.run_date|date}}</td>
       <td>{{ result.cycle }}</td>
       <td property="libns:flowcell_id">{{ result.flowcell_id }}</td>
       <td property="libns:lane">{{ result.lane }}</td>