@abi-software/flatmapvuer 1.2.0-beta.3 → 1.2.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "1.2.0-beta.3",
3
+ "version": "1.2.0-beta.4",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist/*",
package/src/App.vue CHANGED
@@ -74,7 +74,6 @@
74
74
  @help-mode-last-item="onHelpModeLastItem"
75
75
  @shown-tooltip="onTooltipShown"
76
76
  @shown-map-tooltip="onMapTooltipShown"
77
- :connectivityInfoSidebar="true"
78
77
  :displayMinimap="true"
79
78
  :enableOpenMapUI="true"
80
79
  :flatmapAPI="flatmapAPI"
@@ -222,7 +222,7 @@ let FlatmapQueries = function () {
222
222
  this.origins = []
223
223
  this.components = []
224
224
  if (!keastIds || keastIds.length == 0) return
225
-
225
+
226
226
  let prom1 = this.queryForConnectivity(keastIds, signal) // This on returns a promise so dont need 'await'
227
227
  let prom2 = await this.pubmedQueryOnIds(eventData)
228
228
  let results = await Promise.all([prom1, prom2])
@@ -281,10 +281,10 @@ let FlatmapQueries = function () {
281
281
  if (node.length === 1) { // If the node is in the form [id]
282
282
  console.error("Server returns a single node", node)
283
283
  return node[0]
284
- } else {
284
+ } else {
285
285
  if (node.length === 2 && node[1].length === 0) { // If the node is in the form [id, []]
286
286
  return node[0]
287
- } else {
287
+ } else {
288
288
  return false // If the node is in the form [id, [id1, id2]]
289
289
  }
290
290
  }
@@ -294,7 +294,7 @@ let FlatmapQueries = function () {
294
294
 
295
295
  // Check if the node is a single node or a node with multiple children
296
296
  let nodeIsSingle = this.findIfNodeIsSingle(node)
297
-
297
+
298
298
  // Case where node is in the form [id]
299
299
  if (nodeIsSingle) {
300
300
  return lookUp[nodeIsSingle]
@@ -467,7 +467,8 @@ let FlatmapQueries = function () {
467
467
  this.pubmedSearchUrl = function (ids) {
468
468
  let url = 'https://pubmed.ncbi.nlm.nih.gov/?'
469
469
  let params = new URLSearchParams()
470
- params.append('term', ids)
470
+ const decodedIDs = ids.map((id) => decodeURIComponent(id));
471
+ params.append('term', decodedIDs);
471
472
  return url + params.toString()
472
473
  }
473
474
  }