about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gn2/wqflask/templates/dataset.html105
1 files changed, 91 insertions, 14 deletions
diff --git a/gn2/wqflask/templates/dataset.html b/gn2/wqflask/templates/dataset.html
index 06af9d24..6c34305b 100644
--- a/gn2/wqflask/templates/dataset.html
+++ b/gn2/wqflask/templates/dataset.html
@@ -182,59 +182,136 @@
         {% endif %}
 
 	{% if dataset.experimentType %}
-        <h3><strong>Experiment Type</strong></h3>
+        <h3>
+	    <strong>Experiment Type</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=experimentType&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
         <div>{{ dataset.experimentType|safe }}</div>
         {% endif %}
 
-	{% if dataset.specificity %}
-	<h2><strong>Specifics of this Dataset</strong></h2>
-	<div>{{ dataset.specificity }}</div>
+	{% if dataset.specifics %}
+	<h3>
+	    <strong>Specifics of this Dataset</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=specifics&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
+	<div>{{ dataset.specifics }}</div>
 	{% endif %}
 
 	{% if dataset.experimentDesignInfo %}
-        <h3><strong>Experiment Design</strong></h3>
+        <h3>
+	    <strong>Experiment Design</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=experimentDesignInfo&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
         <div>{{ dataset.experimentDesignInfo|safe }}</div>
         {% endif %}
 
 	{% if dataset.caseInfo %}
-        <h3><strong>About the Cases Used to Generate this Dataset:</strong></h3>
+        <h3>
+	    <strong>About the Cases Used to Generate this Dataset:</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=caseInfo&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
         <div>{{ dataset.caseInfo|safe }}</div>
         {% endif %}
 
 	{% if dataset.tissue and dataset.tissueInfo %}
-        <h3><strong>About the Tissue
+        <h3>
+	    <strong>About the Tissue
 	    {%if dataset.tissue and dataset.tissue.label  %}({{ dataset.tissue.label }})
-	    {% endif %}Used to Generate this Dataset</strong></h3>
+		{% endif %}Used to Generate this Dataset</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=tissueInfo&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
         <div>{{ dataset.tissueInfo|safe }}</div>
         {% endif %}
 
         {% if dataset.platform and dataset.platformInfo %}
-        <h3 title="{{ dataset.platform.label }}"><strong>About the Array Platform</strong></h3>
+        <h3 title="{{ dataset.platform.label }}">
+	    <strong>About the Array Platform</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=platformInfo&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
         <div>{{ dataset.platformInfo|safe }}</div>
         {% endif %}
 
         {% if dataset.processingInfo %}
-        <h3><strong>About Data Values and Data Processing</strong></h3>
+        <h3>
+	    <strong>About Data Values and Data Processing</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=processingInfo&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
         <div>{{ dataset.processingInfo|safe }}</div>
         {% endif %}
 
 	{% if dataset.notes %}
-        <h3><strong>Notes</strong></h3>
+        <h3>
+	    <strong>Notes</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=notes&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
         <div>{{ dataset.notes|safe }}</div>
         {% endif %}
 
 	{% if dataset.citation|trim %}
-        <h3><strong>Citation</strong></h3>
+        <h3>
+	    <strong>Citation</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=citation&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
         <div>{{ dataset.citation|safe}}</div>
         {% endif %}
 
 	{% if dataset.acknowledgement|trim %}
-        <h3><strong>Acknowledgment</strong></h3>
+        <h3>
+	    <strong>Acknowledgment</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=acknowledgement&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
         <div>{{ dataset.acknowledgement|safe}}</div>
         {% endif %}
 
         {% if dataset.contributors %}
-	<h3><strong>Contributors</strong></h3>
+	<h3>
+	    <strong>Contributors</strong>
+	    <sup>
+		[&nbsp;
+		<a href="/metadata/edit?type=dcat:Dataset&section=contributors&name={{ dataset.label}}" target="_blank">edit</a>
+		&nbsp;]
+	    </sup>
+	</h3>
 	<div>{{ dataset.contributors|safe }}</div>
 	{% endif %}
     </div>