Skip to content

Commit

Permalink
Merge pull request #528 from EBISPOT/issue-526
Browse files Browse the repository at this point in the history
issue-526: implement processing of allowDownload config on frontend
  • Loading branch information
serjoshua authored Sep 29, 2023
2 parents ca030ef + 3f7e963 commit 7b5c966
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ebi_ontologies.json
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@
"reasoner": "EL",
"oboSlims": false,
"ontology_purl": "file:///nfs/production/parkinso/spot/ols4/prod/local_ontologies/snomed.owl",
"allow_download": false
"allowDownload": false
},
{
"id": "pcl",
Expand All @@ -1017,7 +1017,7 @@
"reasoner": "EL",
"oboSlims": false,
"ontology_purl": "https://raw.githubusercontent.com/obophenotype/provisional_cell_ontology/master/pcl-full.owl",
"allow_download": false
"allowDownload": false
},
{
"id": "shareloc",
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/model/Ontology.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,7 @@ export default class Ontology extends Thing {
getExportsTo(): string[] {
return asArray(this.properties["exportsTo"]);
}
getAllowDownload(): string {
return this.properties["allowDownload"];
}
}
2 changes: 1 addition & 1 deletion frontend/src/pages/ontologies/OntologyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default function OntologyPage() {
placeholder={`Search ${ontologyId.toUpperCase()}...`}
/>
<div className="flex flex-wrap gap-2 mt-4">
{ontology.getOntologyPurl() && (
{ontology.getOntologyPurl() && ontology.getAllowDownload() && (
<Link
to={ontology.getOntologyPurl()}
target="_blank"
Expand Down

0 comments on commit 7b5c966

Please sign in to comment.