aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-11-30 15:33:40 +0300
committerBonfaceKilz2023-11-30 16:29:37 +0300
commit24d6ae43dbac118736e855aed1d2a02b058df3e4 (patch)
tree37b15453a961d002da7695b48a712ea85287b0d7
parent7527d0e6e7e643355e5cd18f6df26411afc45e65 (diff)
downloadgenenetwork2-24d6ae43dbac118736e855aed1d2a02b058df3e4.tar.gz
Refine display of publication details in phenotype template.
* wqflask/wqflask/templates/phenotype.html: Use "metadata.references" to fetch publication details. Replace LRS value with LOD Score ("Peak -logP"). Rename "Additive" -> "Effect Size." Replace "Title" with "Publication." Use "ANSI/NISO Z39.29-2005(R2010)" format for displaying publications details. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--wqflask/wqflask/templates/phenotype.html55
1 files changed, 22 insertions, 33 deletions
diff --git a/wqflask/wqflask/templates/phenotype.html b/wqflask/wqflask/templates/phenotype.html
index 0cf5dd41..4c0cdd99 100644
--- a/wqflask/wqflask/templates/phenotype.html
+++ b/wqflask/wqflask/templates/phenotype.html
@@ -47,11 +47,17 @@
{% endif %}
</td>
</tr>
-
- <tr>
- <td><b>Title</b></td>
- <td><a href="{{ metadata.references.id }}" target="_blank">{{ metadata.title or "N/A"}}</a></td>
- </tr>
+ {% if metadata.references.id %}
+ <tr>
+ <td><b>Publication</b></td>
+ <td>
+ <i>{{ metadata.references.title }}.</i> {{ ', '.join(metadata.references.creator) }}. {{ metadata.references.year }} {{ metadata.references.month }}{{ metadata.references.volume }}:{{ metadata.references.page }}
+ <sup>
+ <a href="{{ metadata.references.id }}" target="_blank"><small>PubMed<sup>&#32;<span class="glyphicon glyphicon-new-window"></span></sup></small></a>
+ </sup>
+ </td>
+ </tr>
+ {% endif %}
<tr>
<td><b>Database</b></td>
@@ -63,44 +69,27 @@
</tr>
<tr>
- <td><b>Journal</b></td>
- <td>{{ metadata.journal or "N/A"}}</td>
- </tr>
-
- <tr>
- <td><b>Volume</b></td>
- <td>{{ metadata.volume or "N/A"}}</td>
- </tr>
-
- <tr>
- <td><b>Month</b></td>
- <td>{{ metadata.month or "N/A"}}</td>
- </tr>
-
- <tr>
- <td><b>Page</b></td>
- <td>{{ metadata.page or "N/A"}}</td>
- </tr>
-
- <tr>
- <td><b>Year</b></td>
- <td>{{ metadata.year or "N/A"}}</td>
- </tr>
-
- <tr>
<td><b>Mean</b></td>
<td>{{ metadata.mean or "N/A"}}</td>
</tr>
<tr>
- <td><b>LRS</b></td>
- <td>{{ metadata.LRS or "N/A"}}</td>
+ <td><b>Peak -logP</b></td>
+ <td>{{ metadata.lodScore or "N/A"}}</td>
</tr>
<tr>
- <td><b>Additive</b></td>
+ <td><b>Effect Size</b></td>
<td>{{ metadata.additive or "N/A"}}</td>
</tr>
+ {% if metadata.references.id %}
+ <tr>
+ <td><b>Resource Links</b></td>
+ <td>
+ <a href="{{ metadata.references.id }}" target="_blank">PubMed</a>
+ </td>
+ </tr>
+ {% endif %}
</table>
</div>