Skip to content

Commit

Permalink
added links for all URL format annotations for EBISPOT#474
Browse files Browse the repository at this point in the history
  • Loading branch information
Erhun Giray Tuncay committed Jan 7, 2022
1 parent 3096c78 commit 0e7f2a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ols-web/src/main/resources/templates/ontology.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,11 @@ <h4 th:inline="text">Original [[${ontologyAlias}]] information</h4>
th:href="@{../search(q=${annotations.key},exact='true', type=property, ontology=${ontologyDocument.getOntologyId()})}"
th:text="${annotations.key.replaceAll('_', ' ')}">property name</a>
</b>
<p th:unless="${annotations.key.equals('license') or annotations.key.equals('rights')}" style="margin-left:9px;" th:each="annovalue : ${annotations.value}" th:text="${annovalue}">NCBI_9606</p>
<div th:if="${annotations.key.equals('license') or annotations.key.equals('rights')}" th:each="annovalue : ${annotations.value}">
<div th:each="annovalue : ${annotations.value}">
<div th:unless="${annovalue.split(' ').length > 1}">
<div th:unless="${annovalue.startsWith('http://') or annovalue.startsWith('https://')}">
<a th:if="${annovalue.startsWith('www')}" style="margin-left:9px;" th:href="'https://' + ${annovalue}" th:text="${annovalue}">NCBI_9606</a>
<p th:unless="${annovalue.startsWith('www')}" style="margin-left:9px;" th:text="${annovalue}" th:text="${annovalue}">NCBI_9606</p>
<a th:if="${annovalue.startsWith('www.')}" style="margin-left:9px;" th:href="'https://' + ${annovalue}" th:text="${annovalue}">NCBI_9606</a>
<p th:unless="${annovalue.startsWith('www.')}" style="margin-left:9px;" th:text="${annovalue}" th:text="${annovalue}">NCBI_9606</p>
</div>
<a th:if="${annovalue.startsWith('http://') or annovalue.startsWith('https://')}" style="margin-left:9px;" th:href="${annovalue}" th:text="${annovalue}">NCBI_9606</a>
</div>
Expand Down

0 comments on commit 0e7f2a8

Please sign in to comment.