Skip to content

Commit

Permalink
don't edit metadata, skip if available
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Nov 25, 2024
1 parent 870c6fb commit c6e650d
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions _layouts/ontology_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,35 +70,44 @@ <h1>
<a href="http://www.ebi.ac.uk/ols/ontologies/{{page.id}}" class="btn btn-outline-primary" target="_blank" rel="noopener">
OLS
</a>
{% assign bioportal_id = page.id | upcase %}
{% if bioportal_id == 'FBBT' %}
{% 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' %}
{% elsif bioportal_id == 'RO' %}
{% assign bioportal_id = 'OBOREL' %}
{% elsif bioportal_id == 'APOLLO_SV' %}
{% elsif bioportal_id == 'APOLLO_SV' %}
{% assign bioportal_id = 'APOLLO-SV' %}
{% elsif bioportal_id == 'TRANS' %}
{% elsif bioportal_id == 'TRANS' %}
{% assign bioportal_id = 'PTRANS' %}
{% elsif bioportal_id == 'WBLS' %}
{% elsif bioportal_id == 'WBLS' %}
{% assign bioportal_id = 'WB-LS' %}
{% elsif bioportal_id == 'FBDV' %}
{% elsif bioportal_id == 'FBDV' %}
{% assign bioportal_id = 'FB-DV' %}
{% elsif bioportal_id == 'WBBT' %}
{% elsif bioportal_id == 'WBBT' %}
{% assign bioportal_id = 'WB-BT' %}
{% elsif bioportal_id == 'WBPHENOTYPE' %}
{% elsif bioportal_id == 'WBPHENOTYPE' %}
{% assign bioportal_id = 'WB-PHENOTYPE' %}
{% elsif bioportal_id == 'TO' %}
{% elsif bioportal_id == 'TO' %}
{% assign bioportal_id = 'PTO' %}
{% elsif bioportal_id == 'FBCV' %}
{% elsif bioportal_id == 'FBCV' %}
{% assign bioportal_id = 'FB-CV' %}
{% elsif bioportal_id == 'MOD' %}
{% elsif bioportal_id == 'MOD' %}
{% assign bioportal_id = 'PSIMOD' %}
{% elsif bioportal_id == 'PSO' %}
{% 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>
{% 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" target="_blank" rel="noopener">
{{b.label}}
Expand Down

0 comments on commit c6e650d

Please sign in to comment.