Minor RDFa fixes.
authorDiane Trout <diane@caltech.edu>
Fri, 17 Jun 2011 23:05:55 +0000 (16:05 -0700)
committerDiane Trout <diane@caltech.edu>
Fri, 17 Jun 2011 23:05:55 +0000 (16:05 -0700)
RDFa likes to use <a hrefs for the subject name, and by adding
links to the species I was confusing what species I was talking about.
Also I added the numeric types to the gel_cut and insert_size values.

htsworkflow/frontend/templates/sample_header.html

index 8839d71ef1de38e3610ae9b2917d35ce7c6c39d6..4444fc160171845fe818f415b7cd5da4febdc9e2 100644 (file)
@@ -17,7 +17,7 @@
   <div class="library_sample_detail">
     <h2>Sample Details</h2>
     <b>Species</b>: 
-      <a href="{{lib.library_species.get_absolute_url}}" property="libns:species">{{ lib.library_species.scientific_name }}</a>
+      <span property="libns:species" content="{{lib.library_species.scientific_name}}"><a href="{{lib.library_species.get_absolute_url}}">{{ lib.library_species.scientific_name }}</a></span>
     <br/>
     <b>Experiment Type</b>:
        <span property="libns:experiment_type">{{ lib.experiment_type }}</span>
     <br/>
     {% if lib.gel_cut_size %}
     <b>Gel Cut Size</b>: 
-      <span property="libns:gel_cut">{{ lib.gel_cut_size }}</span>
+      <span property="libns:gel_cut" datatype="xsd:decimal">{{ lib.gel_cut_size }}</span>
     <br/>
     {% endif %}
     {% if lib.insert_size %}
     <b>Insert Size</b>: 
-      <span property="libns:insert_size">{{ lib.insert_size }}</span>
+      <span property="libns:insert_size" datatype="xsd:decimal">{{ lib.insert_size }}</span>
     <br/>
     {% endif %}
     {% if lib.undiluted_concentration %}