@abi-software/map-side-bar 1.1.6 → 1.1.9

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/map-side-bar",
3
- "version": "1.1.6",
3
+ "version": "1.1.9",
4
4
  "main": "./dist/map-side-bar.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -89,7 +89,8 @@ export class AlgoliaClient {
89
89
  let searchData = {
90
90
  items: response.hits,
91
91
  total: response.nbHits,
92
- discoverIds: response.hits.map(r=>r.pennsieve.identifier)
92
+ discoverIds: response.hits.map(r=>r.pennsieve.identifier),
93
+ dois: response.hits.map(r=>r.item.curie.split(':')[1])
93
94
  }
94
95
  resolve(searchData)
95
96
  })
@@ -194,8 +194,7 @@ export default {
194
194
  this.algoliaClient.search(getFilters(filters), query, this.numberPerPage, this.page).then(searchData => {
195
195
  this.numberOfHits = searchData.total
196
196
  this.discoverIds = searchData.discoverIds
197
- this.results = searchData.items
198
- this.searchSciCrunch({'discoverIds':this.discoverIds})
197
+ this.searchSciCrunch({'dois':this.dois})
199
198
  })
200
199
  },
201
200
  filtersLoading: function (val) {
@@ -331,7 +330,7 @@ export default {
331
330
  },
332
331
  created: function() {
333
332
  //Create non-reactive local variables
334
- this.searchEndpoint = "dataset_info/using_multiple_discoverIds/";
333
+ this.searchEndpoint = "dataset_info/using_multiple_dois/";
335
334
  }
336
335
  };
337
336
  </script>