Skip to content

Commit

Permalink
Merge branch 'master' into anitacaron/issue2651
Browse files Browse the repository at this point in the history
  • Loading branch information
anitacaron authored Nov 25, 2024
2 parents ff854d6 + 13620af commit dd1a3be
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 13 deletions.
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ author:
name: OBO Technical WG
plugins:
- jekyll-sitemap
- jekyll-feed
feed:
disable_in_development: true
## --Anything above this line can be edited in _config_header.yml --
## --Everything below this line automatically generated in _config.yml --
ontologies:
Expand Down
3 changes: 3 additions & 0 deletions _config_header.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ author:
name: OBO Technical WG
plugins:
- jekyll-sitemap
- jekyll-feed
feed:
disable_in_development: true
## --Anything above this line can be edited in _config_header.yml --
## --Everything below this line automatically generated in _config.yml --
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<!-- Custom stylesheet -->
<link rel="stylesheet" href="/assets/css/style.css">

{% feed_meta %}

<style>
html, body {
height: 100%;
Expand Down
64 changes: 51 additions & 13 deletions _layouts/ontology_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,31 +55,69 @@ <h1>
<div class="card" style="margin-bottom: 1.5em;">
<div class="card-body">
<!-- TODO: each ontology should configure which browsers to be exposed in -->
<a href="https://ontobee.org/ontology/{{page.id}}" class="btn btn-outline-primary">
<a href="https://ontobee.org/ontology/{{page.id}}" class="btn btn-outline-primary" target="_blank" rel="noopener">
OntoBee
</a>
{% if page.aberowl_id %}
<a href="http://aber-owl.net/ontology/{{page.aberowl_id | upcase}}" class="btn btn-outline-primary">
AberOWL
</a>
<a href="http://aber-owl.net/ontology/{{page.aberowl_id | upcase}}" class="btn btn-outline-primary" target="_blank" rel="noopener">
AberOWL
</a>
{% else %}
<a href="http://aber-owl.net/ontology/{{page.id | upcase}}" class="btn btn-outline-primary">
AberOWL
</a>
<a href="http://aber-owl.net/ontology/{{page.id | upcase}}" class="btn btn-outline-primary" target="_blank" rel="noopener">
AberOWL
</a>
{% endif %}
<a href="http://www.ebi.ac.uk/ols/ontologies/{{page.id}}" class="btn btn-outline-primary">
<a href="http://www.ebi.ac.uk/ols/ontologies/{{page.id}}" class="btn btn-outline-primary" target="_blank" rel="noopener">
OLS
</a>
{% assign skip_bioportal = false %}
{% for browser in page.browsers %}
{% if browser.label == "BioPortal" %}
{% assign skip_bioportal = true %}
{% endif %}
{% endfor %}

{% unless skip_bioportal %}
{% assign bioportal_id = page.id | upcase %}
{% if bioportal_id == 'FBBT' %}
{% assign bioportal_id = 'FB-BT' %}
{% elsif bioportal_id == 'RO' %}
{% assign bioportal_id = 'OBOREL' %}
{% elsif bioportal_id == 'APOLLO_SV' %}
{% assign bioportal_id = 'APOLLO-SV' %}
{% elsif bioportal_id == 'TRANS' %}
{% assign bioportal_id = 'PTRANS' %}
{% elsif bioportal_id == 'WBLS' %}
{% assign bioportal_id = 'WB-LS' %}
{% elsif bioportal_id == 'FBDV' %}
{% assign bioportal_id = 'FB-DV' %}
{% elsif bioportal_id == 'WBBT' %}
{% assign bioportal_id = 'WB-BT' %}
{% elsif bioportal_id == 'WBPHENOTYPE' %}
{% assign bioportal_id = 'WB-PHENOTYPE' %}
{% elsif bioportal_id == 'TO' %}
{% assign bioportal_id = 'PTO' %}
{% elsif bioportal_id == 'FBCV' %}
{% assign bioportal_id = 'FB-CV' %}
{% elsif bioportal_id == 'MOD' %}
{% assign bioportal_id = 'PSIMOD' %}
{% elsif bioportal_id == 'PSO' %}
{% assign bioportal_id = 'PLANTSO' %}
{% endif %}
<a href="https://bioportal.bioontology.org/ontologies/{{ bioportal_id }}" class="btn btn-outline-primary" target="_blank" rel="noopener">
BioPortal
</a>
{% endunless %}
{% for b in page.browsers %}
<a href="{{b.url}}" class="btn btn-outline-primary">
{{b.label}}
</a>
<a href="{{b.url}}" class="btn btn-outline-primary" target="_blank" rel="noopener">
{{b.label}}
</a>
{% endfor %}
<a href="https://bioregistry.io/metaregistry/obofoundry/{{page.id}}" class="btn btn-outline-primary">
<a href="https://bioregistry.io/metaregistry/obofoundry/{{page.id}}" class="btn btn-outline-primary" target="_blank" rel="noopener">
Bioregistry
</a>
{% if stripped_content_size > 0 %}
<p class="card-text">{{ content }}</p>
<p class="card-text">{{ content }}</p>
{% endif %}
</div>
</div>
Expand Down

0 comments on commit dd1a3be

Please sign in to comment.