[Blends-commit] [SCM] website branch, master, updated. f56a69d6df11c88bb07c05c394b5245d9de77549
Andreas Tille
tille at debian.org
Thu Oct 19 09:41:20 UTC 2017
The following commit has been merged in the master branch:
commit 5bc3c9ee49666b003ecc6fd4514640cf2c1a3f5b
Author: Andreas Tille <tille at debian.org>
Date: Thu Oct 19 07:48:45 2017 +0200
Register only non-null registry values and start pushing two examples on the web pages
diff --git a/webtools/blendstasktools.py b/webtools/blendstasktools.py
index 59c8d62..e628d0a 100644
--- a/webtools/blendstasktools.py
+++ b/webtools/blendstasktools.py
@@ -1485,7 +1485,8 @@ class TaskDependencies:
for prop in ('biotools', 'omictools', 'seqwiki', 'scicrunch', 'rrid', 'bugs'):
if prop in row:
- dep.properties[prop] = row[prop]
+ if row[prop] != None and row[prop] != 'NA':
+ dep.properties[prop] = row[prop]
# Publications
setPublications(dep, self.task, row)
diff --git a/webtools/templates/tasks.xhtml b/webtools/templates/tasks.xhtml
index 41d7074..10d8621 100644
--- a/webtools/templates/tasks.xhtml
+++ b/webtools/templates/tasks.xhtml
@@ -195,6 +195,18 @@
<span class="journal" py:if="'volume' in project.properties['published']">${project.properties['published']['volume']}</span><span class="journal" py:if="'number' in project.properties['published']">(${project.properties['published']['number']})</span><span class="journal" py:if="'pages' in project.properties['published']">:${project.properties['published']['pages']}</span>
<span class="year" py:if="'year' in project.properties['published']">(${project.properties['published']['year']})</span>
</div>
+ <div class="published">
+ <span py:choose="">
+ <span
+ py:when="'biotools' in project.properties"><a href="https://bio.tools/${project.properties['biotools']}">Biotools:[${project.properties['biotools']}]</a>
+ </span>
+ </span>
+ <span py:choose="">
+ <span
+ py:when="'scicrunch' in project.properties"><a href="http://identifiers.org/rrid/RRID:${project.properties['scicrunch']}">SciCrunch:[${project.properties['scicrunch']}]</a>
+ </span>
+ </span>
+ </div>
</td>
<td py:if="project.properties['component'] == 'main'
and project.properties['pkgstatus'] in ('official_high', 'official_low', 'experimental')" class="project-icon">
--
Static and dynamic websites for Debian Pure Blends
More information about the Blends-commit
mailing list