Skip to content

Commit

Permalink
Merge pull request #243 from edmcouncil/242-search-results-unclickable
Browse files Browse the repository at this point in the history
Search results unclickable
  • Loading branch information
mereolog authored Sep 6, 2022
2 parents fbd9f43 + e0618d4 commit 0c0d4e1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions auto/src/views/Ontology.vue
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@
<script>
import { mapState } from 'vuex';
import Multiselect from 'vue-multiselect';
import customLink from '../components/chunks/link';
import {
getEntity, getFindSearch, getModules, getOntologyVersions, getHint,
} from '../api/ontology';
Expand All @@ -971,6 +972,7 @@ export default {
Stats: () => import(/* webpackChunkName: "Stats" */ "../components/StatsComponent"),
ResourceSection: () => import(/* webpackChunkName: "ResourceSection" */ "../components/Ontology/ResourceSection"),
DownloadSection: () => import(/* webpackChunkName: "DownloadSection" */ "../components/Ontology/DownloadSection"),
customLink,
Multiselect,
},
props: ['ontology'],
Expand Down
9 changes: 8 additions & 1 deletion fibo/src/views/Ontology.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,7 @@
<script>
import { mapState } from "vuex";
import Multiselect from "vue-multiselect";
import customLink from '../components/chunks/link';
import { getEntity, getModules, getOntologyVersions, getFindSearch, getFindProperties } from "../api/ontology";
export default {
Expand All @@ -1143,6 +1144,7 @@ export default {
StatsComponent: () => import(/* webpackChunkName: "Stats" */ "../components/StatsComponent"),
ResourceSection: () => import(/* webpackChunkName: "ResourceSection" */ "../components/Ontology/ResourceSection"),
DownloadSection: () => import(/* webpackChunkName: "DownloadSection" */ "../components/Ontology/DownloadSection"),
customLink,
Multiselect,
},
props: ["ontology"],
Expand Down Expand Up @@ -1224,9 +1226,9 @@ export default {
this.updateServers();
this.query = queryParam;
this.fetchSearchProperties();
this.fetchData(this.query);
this.fetchModules();
this.fetchSearchProperties();
},
methods: {
toggleModuleTree() {
Expand Down Expand Up @@ -1528,6 +1530,11 @@ export default {
this.searchBox.debounce = setTimeout(async () => {
try {
// wait for properties to be loaded if they arent
while (this.searchBox.findPropertiesAll.length === 0) {
await new Promise((resolve) => setTimeout(resolve, 100));
}
// eslint-disable-next-line max-len
let domain = encodeURI(`${this.searchServer}?term=${query}&mode=advance&useHighlighting=false&findProperties=${this.searchBox.encodedProperties}`);
const result = await getFindSearch(domain);
Expand Down
9 changes: 8 additions & 1 deletion idmp/src/views/Ontology.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,7 @@
<script>
import { mapState } from "vuex";
import Multiselect from "vue-multiselect";
import customLink from '../components/chunks/link';
import { getEntity, getModules, getOntologyVersions, getFindSearch, getFindProperties } from "../api/ontology";
export default {
Expand All @@ -1145,6 +1146,7 @@ export default {
StatsComponent: () => import(/* webpackChunkName: "Stats" */ "../components/StatsComponent"),
ResourceSection: () => import(/* webpackChunkName: "ResourceSection" */ "../components/Ontology/ResourceSection"),
DownloadSection: () => import(/* webpackChunkName: "DownloadSection" */ "../components/Ontology/DownloadSection"),
customLink,
Multiselect,
},
props: ["ontology"],
Expand Down Expand Up @@ -1226,9 +1228,9 @@ export default {
this.updateServers();
this.query = queryParam;
this.fetchSearchProperties();
this.fetchData(this.query);
this.fetchModules();
this.fetchSearchProperties();
},
methods: {
toggleModuleTree() {
Expand Down Expand Up @@ -1509,6 +1511,11 @@ export default {
this.searchBox.debounce = setTimeout(async () => {
try {
// wait for properties to be loaded if they arent
while (this.searchBox.findPropertiesAll.length === 0) {
await new Promise((resolve) => setTimeout(resolve, 100));
}
// eslint-disable-next-line max-len
let domain = encodeURI(`${this.searchServer}?term=${query}&mode=advance&useHighlighting=false&findProperties=${this.searchBox.encodedProperties}`);
const result = await getFindSearch(domain);
Expand Down

0 comments on commit 0c0d4e1

Please sign in to comment.