Commit 2f23445d authored by Andreas Tille's avatar Andreas Tille

Propagate edam_topics in properties and fix template to really print it.

parent 8150fd07
......@@ -1485,13 +1485,14 @@ class TaskDependencies:
(_name, _url) = email.utils.parseaddr(row['maintainer'])
dep.properties['maintainer'] = {'name': _name, 'email': _url}
if row.get('edam_topics'):
logger.info("Edam topics found for package %s: %s" % (dep.properties['name'], str(row['edam_topics'])))
for prop in ('biotools', 'omictools', 'seqwiki', 'scicrunch', 'rrid', 'bugs'):
for prop in ('biotools', 'omictools', 'seqwiki', 'scicrunch', 'rrid', 'bugs', 'edam_topics'):
if prop in row:
if row[prop] != None and row[prop] != 'NA':
dep.properties[prop] = row[prop]
if prop == 'edam_topics':
dep.properties[prop] = "; ".join(row[prop])
logger.info("Property edam_topics for package %s is set to %s" % (dep.properties['name'], dep.properties[prop]))
else:
dep.properties[prop] = row[prop]
# Publications
setPublications(dep, self.task, row)
......
......@@ -196,7 +196,7 @@
<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 py:choose="">
<div py:choose="">
<div class="registry" py:when="'biotools' in project.properties or 'scicrunch' in project.properties or 'rrid' in project.properties or 'omictools' in project.properties">
Registry entries:
<span py:choose="">
......@@ -212,8 +212,9 @@
<span class="registry_omictools"
py:when="'omictools' in project.properties"><a href="https://duckduckgo.com/?q=\site%3Aomictools.com+${project.properties['omictools']}">OMICtools</a><span class="registry">&nbsp;
</span></span></span>
</div>
</div>
</div>
<div class="topics" py:if="'edam_topics' in project.properties">Topics: ${project.properties['edam_topics']}</div>
</div>
</td>
<td py:if="project.properties['component'] == 'main'
and project.properties['pkgstatus'] in ('official_high', 'official_low', 'experimental')" class="project-icon">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment