Skip to content

Commit

Permalink
feat(SearchResultsListWidget): Added parameter to show the descriptio…
Browse files Browse the repository at this point in the history
…n for an OLS3 API in the autocomplete result list.
  • Loading branch information
rombaum committed Jun 20, 2024
1 parent 0bff1e8 commit 0b7d246
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ function SearchResultsListWidget(props: SearchResultsListWidgetProps) {
singleSelection={true}
hasShortSelectedLabel={true}
placeholder={"Search"}
parameter={parameter}
preselected={preselected}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const SearchResultsListSafety = {
api: "https://semanticlookup.zbmed.de/api/",
query: "d*",
targetLink: "",
parameter: "collection=safety",
parameter: "collection=safety&fieldList=description,label,iri,ontology_name,type,short_form",
}
};

Expand All @@ -48,7 +48,7 @@ export const SearchResultsListNFDI4Health = {
api: "https://semanticlookup.zbmed.de/api/",
query: "d*",
targetLink: "",
parameter: "collection=nfdi4health",
parameter: "collection=nfdi4health&fieldList=description,label,iri,ontology_name,type,short_form",
preselected: [{ label: "diabetes" }],
useLegacy: true
}
Expand All @@ -66,7 +66,7 @@ export const ErrorSearchResultsList = {
export const TibNFDI4CHEM = {
args: {
api: "https://service.tib.eu/ts4tib/api/",
parameter: "classification=NFDI4CHEM&schema=collection",
parameter: "classification=NFDI4CHEM&schema=collection&fieldList=description,label,iri,ontology_name,type,short_form",
query: "assay",
targetLink: "",
}
Expand All @@ -75,7 +75,7 @@ export const TibNFDI4CHEM = {
export const TibDataPlant = {
args: {
api: "https://service.tib.eu/ts4tib/api/",
parameter: "classification=DataPLANT&schema=collection",
parameter: "classification=DataPLANT&schema=collection&fieldList=description,label,iri,ontology_name,type,short_form",
query: "agriculture",
targetLink: "",
}
Expand All @@ -89,4 +89,4 @@ export const SearchResultsListOls4 = {
parameter: "",
useLegacy: false
}
};
};

0 comments on commit 0b7d246

Please sign in to comment.