@abi-software/map-side-bar 1.3.16 → 1.3.17

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.
@@ -1351,177 +1351,6 @@ function _createClass(Constructor, protoProps, staticProps) {
1351
1351
  var external_algoliasearch_ = __webpack_require__("88eb");
1352
1352
  var external_algoliasearch_default = /*#__PURE__*/__webpack_require__.n(external_algoliasearch_);
1353
1353
 
1354
- // CONCATENATED MODULE: ./src/algolia/markerZoomLevels.js
1355
- // Set zoom values for micro and mesoscopic
1356
- var microscopic = 7;
1357
- var mesoscopic = 5; // Set what level each uberon shows at
1358
-
1359
- /* harmony default export */ var markerZoomLevels = ([{
1360
- "id": "UBERON:0000948",
1361
- "name": "heart",
1362
- "showAtZoom": 1
1363
- }, {
1364
- "id": "UBERON:0001759",
1365
- "name": "vagus nerve",
1366
- "showAtZoom": 1
1367
- }, {
1368
- "id": "UBERON:0001155",
1369
- "name": "colon",
1370
- "showAtZoom": 1
1371
- }, {
1372
- "id": "UBERON:0000945",
1373
- "name": "stomach",
1374
- "showAtZoom": 1
1375
- }, {
1376
- "id": "UBERON:0001013",
1377
- "name": "adipose tissue",
1378
- "showAtZoom": 1
1379
- }, {
1380
- "id": "UBERON:0001255",
1381
- "name": "urinary bladder",
1382
- "showAtZoom": 1
1383
- }, {
1384
- "id": "UBERON:0001348",
1385
- "name": "brown adipose tissue",
1386
- "showAtZoom": 6
1387
- }, {
1388
- "id": "UBERON:0002008",
1389
- "name": "cardiac nerve plexus",
1390
- "showAtZoom": 1
1391
- }, {
1392
- "id": "UBERON:0002240",
1393
- "name": "spinal cord",
1394
- "showAtZoom": 1
1395
- }, {
1396
- "id": "UBERON:0002005",
1397
- "name": "Enteric Nervous System",
1398
- "showAtZoom": 4
1399
- }, {
1400
- "id": "UBERON:0013702",
1401
- "name": "body proper",
1402
- "showAtZoom": 1
1403
- }, {
1404
- "id": "UBERON:0002298",
1405
- "name": "brainstem",
1406
- "showAtZoom": 1
1407
- }, {
1408
- "id": "UBERON:0002439",
1409
- "name": "myenteric nerve plexus",
1410
- "showAtZoom": 6
1411
- }, {
1412
- "id": "UBERON:0000010",
1413
- "name": "peripheral nervous system",
1414
- "showAtZoom": 6
1415
- }, {
1416
- "id": "UBERON:0002048",
1417
- "name": "lung",
1418
- "showAtZoom": 1
1419
- }, {
1420
- "id": "UBERON:0002410",
1421
- "name": "autonomic nervous system",
1422
- "showAtZoom": 6
1423
- }, {
1424
- "id": "UBERON:0002441",
1425
- "name": "cervicothoracic ganglion",
1426
- "showAtZoom": 6
1427
- }, {
1428
- "id": "UBERON:0005363",
1429
- "name": "inferior vagus X ganglion",
1430
- "showAtZoom": 6
1431
- }, {
1432
- "id": "UBERON:0001264",
1433
- "name": "pancreas",
1434
- "showAtZoom": 1
1435
- }, {
1436
- "id": "UBERON:0001884",
1437
- "name": "phrenic nerve",
1438
- "showAtZoom": 6
1439
- }, {
1440
- "id": "UBERON:0002059",
1441
- "name": "submandibular ganglion",
1442
- "showAtZoom": 7
1443
- }, {
1444
- "id": "UBERON:0001347",
1445
- "name": "white adipose tissue",
1446
- "showAtZoom": 6
1447
- }, {
1448
- "id": "UBERON:0001556",
1449
- "name": "lower urinary tract",
1450
- "showAtZoom": 1
1451
- }, {
1452
- "id": "UBERON:0002262",
1453
- "name": "celiac ganglion",
1454
- "showAtZoom": 5
1455
- }, {
1456
- "id": "UBERON:0000955",
1457
- "name": "Brain",
1458
- "showAtZoom": 1
1459
- }, {
1460
- "id": "UBERON:0000160",
1461
- "name": "intestine",
1462
- "showAtZoom": 1
1463
- }, {
1464
- "id": "UBERON:0001322",
1465
- "name": "sciatic nerve",
1466
- "showAtZoom": 1
1467
- }, {
1468
- "id": "UBERON:0001649",
1469
- "name": "glossopharyngeal nerve",
1470
- "showAtZoom": 6
1471
- }, {
1472
- "id": "UBERON:0002063",
1473
- "name": "sinus venosus",
1474
- "showAtZoom": 6
1475
- }, {
1476
- "id": "UBERON:0002107",
1477
- "name": "liver",
1478
- "showAtZoom": 1
1479
- }, {
1480
- "id": "UBERON:0002113",
1481
- "name": "kidney",
1482
- "showAtZoom": 1
1483
- }, {
1484
- "id": "UBERON:0002481",
1485
- "name": "bone tissue",
1486
- "showAtZoom": 1
1487
- }, {
1488
- "id": "UBERON:0004907",
1489
- "name": "lower digestive tract",
1490
- "showAtZoom": 4
1491
- }, {
1492
- "id": "UBERON:0000044",
1493
- "name": "Dorsal root ganglion",
1494
- "showAtZoom": 5
1495
- }, // New levels from Keeran
1496
- {
1497
- "id": "UBERON:0001736",
1498
- "name": "Submandibular gland",
1499
- "showAtZoom": microscopic
1500
- }, {
1501
- "id": "UBERON:0001103",
1502
- "name": "Diaphragm",
1503
- "showAtZoom": mesoscopic
1504
- }, {
1505
- "id": "UBERON:0001160",
1506
- "name": "Fundus of stomach",
1507
- "showAtZoom": mesoscopic
1508
- }, {
1509
- "id": "UBERON:0000955",
1510
- "name": "Brain",
1511
- "showAtZoom": mesoscopic
1512
- }, {
1513
- "id": "UBERON:0003708",
1514
- "name": "Carotid sinus",
1515
- "showAtZoom": microscopic
1516
- }, {
1517
- "id": "UBERON:0002079",
1518
- "name": "Left cardiac atrium",
1519
- "showAtZoom": mesoscopic
1520
- }, {
1521
- "id": "ILX:0485722",
1522
- "name": "Nodose ganglion",
1523
- "showAtZoom": microscopic
1524
- }]);
1525
1354
  // CONCATENATED MODULE: ./src/algolia/algolia.js
1526
1355
 
1527
1356
 
@@ -1562,7 +1391,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
1562
1391
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1563
1392
 
1564
1393
  /* eslint-disable no-alert, no-console */
1565
-
1566
1394
  // export `createAlgoliaClient` to use it in page components
1567
1395
 
1568
1396
  var algolia_AlgoliaClient =
@@ -1714,11 +1542,9 @@ function () {
1714
1542
 
1715
1543
  if (hit.anatomy && hit.anatomy.organ) {
1716
1544
  hit.anatomy.organ.forEach(function (anatomy) {
1717
- markerZoomLevels.forEach(function (marker) {
1718
- if (anatomy.name.toLowerCase() === marker.name.toLowerCase()) {
1719
- foundKeyWords.push(marker.id);
1720
- }
1721
- });
1545
+ if (anatomy.curie) {
1546
+ foundKeyWords.push(anatomy.curie);
1547
+ }
1722
1548
  });
1723
1549
  }
1724
1550
  });
@@ -1787,7 +1613,7 @@ function () {
1787
1613
  page: page - 1,
1788
1614
  filters: filter,
1789
1615
  attributesToHighlight: [],
1790
- attributesToRetrieve: ['item.keywords.keyword', 'anatomy.organ.name']
1616
+ attributesToRetrieve: ['item.keywords.keyword', 'anatomy.organ.name', 'anatomy.organ.curie']
1791
1617
  }).then(function (response) {
1792
1618
  var anatomyAsUberons = _this4._processAnatomy(response.hits);
1793
1619
 
@@ -1881,7 +1707,6 @@ function getFilters() {
1881
1707
 
1882
1708
  filters = filters.split('()AND ').join(''); // Handle case where there where no OR facets
1883
1709
  });
1884
- console.log('filter string: ', filters.substring(0, filters.lastIndexOf(" AND ")));
1885
1710
  return filters.substring(0, filters.lastIndexOf(" AND "));
1886
1711
  }
1887
1712