@abi-software/map-side-bar 1.2.3 → 1.3.2

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.
@@ -206,7 +206,14 @@ module.exports = require("element-ui/lib/drawer");
206
206
 
207
207
  /***/ }),
208
208
 
209
- /***/ "3cbb":
209
+ /***/ "3a09":
210
+ /***/ (function(module, exports) {
211
+
212
+ module.exports = require("@abi-software/gallery");
213
+
214
+ /***/ }),
215
+
216
+ /***/ "3a70":
210
217
  /***/ (function(module, exports, __webpack_require__) {
211
218
 
212
219
  // extracted by mini-css-extract-plugin
@@ -287,6 +294,13 @@ module.exports = require("core-js/modules/es.regexp.exec");
287
294
 
288
295
  /***/ }),
289
296
 
297
+ /***/ "5658":
298
+ /***/ (function(module, exports) {
299
+
300
+ module.exports = require("@abi-software/gallery/dist/gallery.css");
301
+
302
+ /***/ }),
303
+
290
304
  /***/ "5d8c":
291
305
  /***/ (function(module, exports) {
292
306
 
@@ -315,6 +329,20 @@ module.exports = require("core-js/modules/es.array.slice");
315
329
 
316
330
  /***/ }),
317
331
 
332
+ /***/ "657c":
333
+ /***/ (function(module, exports, __webpack_require__) {
334
+
335
+ // extracted by mini-css-extract-plugin
336
+
337
+ /***/ }),
338
+
339
+ /***/ "6631":
340
+ /***/ (function(module, exports, __webpack_require__) {
341
+
342
+ // extracted by mini-css-extract-plugin
343
+
344
+ /***/ }),
345
+
318
346
  /***/ "6b07":
319
347
  /***/ (function(module, exports) {
320
348
 
@@ -357,17 +385,6 @@ module.exports = require("core-js/modules/es.number.constructor");
357
385
 
358
386
  /***/ }),
359
387
 
360
- /***/ "718b":
361
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
362
-
363
- "use strict";
364
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_41eb07ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3cbb");
365
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_41eb07ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_41eb07ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
366
- /* unused harmony reexport * */
367
- /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_41eb07ec_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
368
-
369
- /***/ }),
370
-
371
388
  /***/ "79d0":
372
389
  /***/ (function(module, exports) {
373
390
 
@@ -494,6 +511,13 @@ module.exports = __webpack_require__.p + "img/missing-image.1878d8b8.svg";
494
511
 
495
512
  /***/ }),
496
513
 
514
+ /***/ "a012":
515
+ /***/ (function(module, exports) {
516
+
517
+ module.exports = require("@abi-software/gallery/src/mixins/GalleryHelpers");
518
+
519
+ /***/ }),
520
+
497
521
  /***/ "a3fe":
498
522
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
499
523
 
@@ -512,13 +536,6 @@ module.exports = require("element-ui/lib/theme-chalk/popover.css");
512
536
 
513
537
  /***/ }),
514
538
 
515
- /***/ "a9e5":
516
- /***/ (function(module, exports, __webpack_require__) {
517
-
518
- // extracted by mini-css-extract-plugin
519
-
520
- /***/ }),
521
-
522
539
  /***/ "a9f8":
523
540
  /***/ (function(module, exports) {
524
541
 
@@ -603,14 +620,25 @@ module.exports = require("element-ui/lib/option");
603
620
 
604
621
  /***/ }),
605
622
 
606
- /***/ "c260":
623
+ /***/ "cbfe":
607
624
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
608
625
 
609
626
  "use strict";
610
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e743");
611
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
627
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_bf193158_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3a70");
628
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_bf193158_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_bf193158_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
612
629
  /* unused harmony reexport * */
613
- /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
630
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_bf193158_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
631
+
632
+ /***/ }),
633
+
634
+ /***/ "d168":
635
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
636
+
637
+ "use strict";
638
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_6cd833f3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eb96");
639
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_6cd833f3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_6cd833f3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
640
+ /* unused harmony reexport * */
641
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ContextCard_vue_vue_type_style_index_0_id_6cd833f3_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
614
642
 
615
643
  /***/ }),
616
644
 
@@ -628,14 +656,25 @@ module.exports = require("current-script-polyfill");
628
656
 
629
657
  /***/ }),
630
658
 
631
- /***/ "e14d":
659
+ /***/ "dd3e":
660
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
661
+
662
+ "use strict";
663
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2f7fbfd0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e7e0");
664
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2f7fbfd0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2f7fbfd0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
665
+ /* unused harmony reexport * */
666
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SidebarContent_vue_vue_type_style_index_0_id_2f7fbfd0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
667
+
668
+ /***/ }),
669
+
670
+ /***/ "e03b":
632
671
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
633
672
 
634
673
  "use strict";
635
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_380e4852_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a9e5");
636
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_380e4852_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_380e4852_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
674
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageGallery_vue_vue_type_style_index_0_id_6c8573ea_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("657c");
675
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageGallery_vue_vue_type_style_index_0_id_6c8573ea_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageGallery_vue_vue_type_style_index_0_id_6c8573ea_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
637
676
  /* unused harmony reexport * */
638
- /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatasetCard_vue_vue_type_style_index_0_id_380e4852_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
677
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ImageGallery_vue_vue_type_style_index_0_id_6c8573ea_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
639
678
 
640
679
  /***/ }),
641
680
 
@@ -653,7 +692,25 @@ module.exports = require("element-ui/lib/input");
653
692
 
654
693
  /***/ }),
655
694
 
656
- /***/ "e743":
695
+ /***/ "e7e0":
696
+ /***/ (function(module, exports, __webpack_require__) {
697
+
698
+ // extracted by mini-css-extract-plugin
699
+
700
+ /***/ }),
701
+
702
+ /***/ "eb34":
703
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
704
+
705
+ "use strict";
706
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BadgesGroup_vue_vue_type_style_index_0_id_712c1be9_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6631");
707
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BadgesGroup_vue_vue_type_style_index_0_id_712c1be9_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BadgesGroup_vue_vue_type_style_index_0_id_712c1be9_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
708
+ /* unused harmony reexport * */
709
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_BadgesGroup_vue_vue_type_style_index_0_id_712c1be9_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
710
+
711
+ /***/ }),
712
+
713
+ /***/ "eb96":
657
714
  /***/ (function(module, exports, __webpack_require__) {
658
715
 
659
716
  // extracted by mini-css-extract-plugin
@@ -726,7 +783,7 @@ if (typeof window !== 'undefined') {
726
783
  // Indicate to webpack that this file can be concatenated
727
784
  /* harmony default export */ var setPublicPath = (null);
728
785
 
729
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"258ee7b8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SideBar.vue?vue&type=template&id=3f7eb1a5&scoped=true&
786
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65a2a86d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SideBar.vue?vue&type=template&id=3f7eb1a5&scoped=true&
730
787
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container"},[(!_vm.drawerOpen)?_c('div',{staticClass:"open-tab",on:{"click":_vm.toggleDrawer}},[_c('i',{staticClass:"el-icon-arrow-left"})]):_vm._e(),_c('el-drawer',{staticClass:"side-bar",attrs:{"custom-class":"my-drawer","visible":_vm.drawerOpen,"appendToBody":false,"modal-append-to-body":false,"size":"550","with-header":false,"wrapperClosable":false,"modal":false},on:{"update:visible":function($event){_vm.drawerOpen=$event}}},[_c('div',{staticClass:"box-card"},[(_vm.drawerOpen)?_c('div',{staticClass:"close-tab",on:{"click":_vm.close}},[_c('i',{staticClass:"el-icon-arrow-right"})]):_vm._e(),_c('div',{staticClass:"sidebar-container"},[(_vm.tabs.length > 1)?_c('tabs',{attrs:{"tabTitles":_vm.tabs,"activeId":_vm.activeId},on:{"titleClicked":_vm.tabClicked}}):_vm._e(),_vm._l((_vm.tabs),function(tab){return [_c('sidebar-content',{directives:[{name:"show",rawName:"v-show",value:(tab.id===_vm.activeId),expression:"tab.id===activeId"}],key:tab.id,ref:tab.id,refInFor:true,staticClass:"sidebar-content-container",attrs:{"contextCardEntry":tab.contextCard,"envVars":_vm.envVars},on:{"search-changed":function($event){return _vm.searchChanged(tab.id, $event)}}})]})],2)])])],1)}
731
788
  var staticRenderFns = []
732
789
 
@@ -801,12 +858,12 @@ var en_default = /*#__PURE__*/__webpack_require__.n(en_);
801
858
  var locale_ = __webpack_require__("7f9f");
802
859
  var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
803
860
 
804
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"258ee7b8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SidebarContent.vue?vue&type=template&id=2df4e2e0&scoped=true&
805
- var SidebarContentvue_type_template_id_2df4e2e0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:"content-card",attrs:{"body-style":_vm.bodyStyle}},[_c('div',{staticClass:"header",attrs:{"slot":"header"},slot:"header"},[(_vm.contextCardEntry && _vm.contextCardEnabled)?_c('context-card',{attrs:{"entry":_vm.contextCardEntry}}):_vm._e(),_c('el-input',{staticClass:"search-input",attrs:{"placeholder":"Search","clearable":""},on:{"clear":_vm.clearSearchClicked},nativeOn:{"keyup":function($event){return _vm.searchEvent($event)}},model:{value:(_vm.searchInput),callback:function ($$v) {_vm.searchInput=$$v},expression:"searchInput"}}),_c('el-button',{staticClass:"button",on:{"click":_vm.searchEvent}},[_vm._v("Search")])],1),_c('SearchFilters',{ref:"filtersRef",staticClass:"filters",attrs:{"entry":_vm.filterEntry,"envVars":_vm.envVars},on:{"filterResults":_vm.filterUpdate,"numberPerPage":_vm.numberPerPageUpdate,"loading":_vm.filtersLoading}}),_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loadingCards),expression:"loadingCards"}],ref:"content",staticClass:"content scrollbar"},[(_vm.results.length === 0 && !_vm.loadingCards && !_vm.sciCrunchError)?_c('div',{staticClass:"error-feedback"},[_vm._v("No results found - Please change your search / filter criteria.")]):_vm._e(),(_vm.sciCrunchError)?_c('div',{staticClass:"error-feedback"},[_vm._v(_vm._s(_vm.sciCrunchError))]):_vm._e(),(_vm.loadingScicrunch)?_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loadingScicrunch),expression:"loadingScicrunch"}],staticClass:"loading-icon"}):_vm._e(),_vm._l((_vm.results),function(result){return _c('div',{key:result.id,staticClass:"step-item"},[_c('DatasetCard',{attrs:{"entry":result,"envVars":_vm.envVars},on:{"contextUpdate":_vm.contextCardUpdate}})],1)}),_c('el-pagination',{staticClass:"pagination",attrs:{"current-page":_vm.page,"hide-on-single-page":"","large":"","layout":"prev, pager, next","page-size":_vm.numberPerPage,"total":_vm.numberOfHits},on:{"update:currentPage":function($event){_vm.page=$event},"update:current-page":function($event){_vm.page=$event},"current-change":_vm.pageChange}})],2)],1)}
806
- var SidebarContentvue_type_template_id_2df4e2e0_scoped_true_staticRenderFns = []
861
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65a2a86d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SidebarContent.vue?vue&type=template&id=2f7fbfd0&scoped=true&
862
+ var SidebarContentvue_type_template_id_2f7fbfd0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:"content-card",attrs:{"body-style":_vm.bodyStyle}},[_c('div',{staticClass:"header",attrs:{"slot":"header"},slot:"header"},[(_vm.contextCardEntry && _vm.contextCardEnabled)?_c('context-card',{attrs:{"entry":_vm.contextCardEntry}}):_vm._e(),_c('el-input',{staticClass:"search-input",attrs:{"placeholder":"Search","clearable":""},on:{"clear":_vm.clearSearchClicked},nativeOn:{"keyup":function($event){return _vm.searchEvent($event)}},model:{value:(_vm.searchInput),callback:function ($$v) {_vm.searchInput=$$v},expression:"searchInput"}}),_c('el-button',{staticClass:"button",on:{"click":_vm.searchEvent}},[_vm._v("Search")])],1),_c('SearchFilters',{ref:"filtersRef",staticClass:"filters",attrs:{"entry":_vm.filterEntry,"envVars":_vm.envVars},on:{"filterResults":_vm.filterUpdate,"numberPerPage":_vm.numberPerPageUpdate,"loading":_vm.filtersLoading}}),_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loadingCards),expression:"loadingCards"}],ref:"content",staticClass:"content scrollbar"},[(_vm.results.length === 0 && !_vm.loadingCards)?_c('div',{staticClass:"error-feedback"},[_vm._v("No results found - Please change your search / filter criteria.")]):_vm._e(),_vm._l((_vm.results),function(result){return _c('div',{key:result.doi,staticClass:"step-item"},[_c('DatasetCard',{attrs:{"entry":result,"envVars":_vm.envVars},on:{"contextUpdate":_vm.contextCardUpdate}})],1)}),_c('el-pagination',{staticClass:"pagination",attrs:{"current-page":_vm.page,"hide-on-single-page":"","large":"","layout":"prev, pager, next","page-size":_vm.numberPerPage,"total":_vm.numberOfHits},on:{"update:currentPage":function($event){_vm.page=$event},"update:current-page":function($event){_vm.page=$event},"current-change":_vm.pageChange}})],2)],1)}
863
+ var SidebarContentvue_type_template_id_2f7fbfd0_scoped_true_staticRenderFns = []
807
864
 
808
865
 
809
- // CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=2df4e2e0&scoped=true&
866
+ // CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=template&id=2f7fbfd0&scoped=true&
810
867
 
811
868
  // EXTERNAL MODULE: external "core-js/modules/es.array.find-index"
812
869
  var es_array_find_index_ = __webpack_require__("aecd");
@@ -976,7 +1033,7 @@ var button_css_ = __webpack_require__("26bc");
976
1033
  var button_ = __webpack_require__("5d8c");
977
1034
  var button_default = /*#__PURE__*/__webpack_require__.n(button_);
978
1035
 
979
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"258ee7b8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SearchFilters.vue?vue&type=template&id=58d5fb22&scoped=true&
1036
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65a2a86d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SearchFilters.vue?vue&type=template&id=58d5fb22&scoped=true&
980
1037
  var SearchFiltersvue_type_template_id_58d5fb22_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"filters"},[_c('map-svg-sprite-color'),_c('transition',{attrs:{"name":"el-zoom-in-top"}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.showFilters),expression:"showFilters"}],staticClass:"search-filters transition-box"},[_c('custom-cascader',{ref:"cascader",staticClass:"cascader",attrs:{"placeholder":"","collapse-tags":true,"options":_vm.options,"props":_vm.props,"show-all-levels":false,"append-to-body":false},on:{"change":function($event){return _vm.cascadeEvent($event)},"expand-change":_vm.cascadeExpandChange,"tags-changed":_vm.tagsChangedCallback},model:{value:(_vm.cascadeSelected),callback:function ($$v) {_vm.cascadeSelected=$$v},expression:"cascadeSelected"}}),(_vm.showFiltersText)?_c('div',{staticClass:"filter-default-value"},[_vm._v(" Filters ")]):_vm._e(),_c('el-popover',{attrs:{"title":"How do filters work?","width":"250","trigger":"hover","append-to-body":false,"popper-class":"popover"}},[_c('map-svg-icon',{staticClass:"help",attrs:{"slot":"reference","icon":"help"},slot:"reference"}),_c('div',[_c('strong',[_vm._v("Within categories:")]),_vm._v(" OR "),_c('br'),_vm._v(" example: 'heart' OR 'colon' "),_c('br'),_c('br'),_c('strong',[_vm._v("Between categories:")]),_vm._v(" AND "),_c('br'),_vm._v(" example: 'rat' AND 'lung' ")])],1)],1)]),_c('el-select',{staticClass:"number-shown-select",attrs:{"placeholder":"10"},on:{"change":function($event){return _vm.numberShownChanged($event)}},model:{value:(_vm.numberShown),callback:function ($$v) {_vm.numberShown=$$v},expression:"numberShown"}},_vm._l((_vm.numberDatasetsShown),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1),_c('span',{staticClass:"dataset-results-feedback"},[_vm._v(_vm._s(this.numberOfResultsText))])],1)}
981
1038
  var SearchFiltersvue_type_template_id_58d5fb22_scoped_true_staticRenderFns = []
982
1039
 
@@ -1417,7 +1474,6 @@ function () {
1417
1474
  value: function _processResultsForCards(results) {
1418
1475
  var newResults = [];
1419
1476
  var newResult = {};
1420
- var id = 0;
1421
1477
  var _iteratorNormalCompletion = true;
1422
1478
  var _didIteratorError = false;
1423
1479
  var _iteratorError = undefined;
@@ -1432,9 +1488,9 @@ function () {
1432
1488
  description: res.item.description,
1433
1489
  updated: res.pennsieve.updatedAt,
1434
1490
  publishDate: res.pennsieve.publishDate,
1435
- id: id
1491
+ datasetId: res.objectID,
1492
+ detailsReady: false
1436
1493
  };
1437
- id++;
1438
1494
  newResults.push(newResult);
1439
1495
  }
1440
1496
  } catch (err) {
@@ -1472,7 +1528,9 @@ function () {
1472
1528
  facets: ['*'],
1473
1529
  hitsPerPage: hitsperPage,
1474
1530
  page: page - 1,
1475
- filters: filter
1531
+ filters: filter,
1532
+ attributesToHighlight: [],
1533
+ attributesToRetrieve: ['pennsieve.publishDate', 'pennsieve.updatedAt', 'item.curie', 'item.name', 'item.description', 'objectID']
1476
1534
  }).then(function (response) {
1477
1535
  var searchData = {
1478
1536
  items: _this2._processResultsForCards(response.hits),
@@ -2029,133 +2087,24 @@ var SearchFilters_component = normalizeComponent(
2029
2087
  )
2030
2088
 
2031
2089
  /* harmony default export */ var SearchFilters = (SearchFilters_component.exports);
2032
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"258ee7b8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DatasetCard.vue?vue&type=template&id=380e4852&scoped=true&
2033
- var DatasetCardvue_type_template_id_380e4852_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"dataset-card-container"},[_c('div',{ref:"card",class:_vm.expanded ? 'dataset-card-expanded' : 'dataset-card'},[(_vm.entry.id !== 0)?_c('div',{staticClass:"seperator-path"}):_vm._e(),_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"card"},[_c('span',{staticClass:"card-left"},[_c('img',{staticClass:"banner-img",attrs:{"svg-inline":"","src":_vm.thumbnail},on:{"click":_vm.openDataset}})]),_c('div',{staticClass:"card-right"},[_c('div',{staticClass:"title",on:{"click":_vm.cardClicked}},[_vm._v(_vm._s(_vm.entry.name))]),_c('div',{staticClass:"details"},[_vm._v(_vm._s(_vm.contributors)+" "+_vm._s(_vm.entry.publishDate ? ("(" + _vm.publishYear + ")") : ''))]),_c('div',{staticClass:"details"},[_vm._v(_vm._s(_vm.samples))]),_c('div',{staticClass:"details"},[_vm._v("id: "+_vm._s(_vm.discoverId))]),_c('div',[(!_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-coin"},on:{"click":_vm.openDataset}},[_vm._v("View dataset")]):_vm._e()],1),_c('div',[(_vm.entry.scaffolds)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openScaffold}},[_vm._v("View scaffold")]):_vm._e()],1),_c('div',[(_vm.hasCSVFile)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openPlot}},[_vm._v("View plot")]):_vm._e()],1),_c('div',[(_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openRepository}},[_vm._v("View repository")]):_vm._e()],1),_c('div',[(_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openSimulation}},[_vm._v("View simulation")]):_vm._e()],1)])]),((_vm.cardOverflow && !_vm.expanded))?_c('p',{staticClass:"read-more"},[_c('el-button',{staticClass:"read-more-button",on:{"click":_vm.expand}},[_vm._v("Read more...")])],1):_vm._e()])])}
2034
- var DatasetCardvue_type_template_id_380e4852_scoped_true_staticRenderFns = []
2035
-
2036
-
2037
- // CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=380e4852&scoped=true&
2038
-
2039
- // CONCATENATED MODULE: ./src/components/EventBus.js
2040
-
2041
- var EventBus = new external_vue_default.a();
2042
- /* harmony default export */ var components_EventBus = (EventBus);
2043
- // CONCATENATED MODULE: ./src/components/hardcoded-context-info.js
2044
- /* harmony default export */ var hardcoded_context_info = ({}); // //Uncomment the code below to add in hardcoded data
2045
- // export default {
2046
- // 77: {
2047
- // "description": "This dataset contains single cell scale anatomical map of the rat intrinsic cardiac nervous system (ICNS) across four male and three female hearts. These cell clusters can be seen by the yellow data points on the image as well as spherical markers on the 3D heart scaffold. The dataset provides an integrative framework to visualise the spatial distribution of ICNS across different hearts.",
2048
- // "heading": "Mapped ICN samples",
2049
- // "id": "sparc.science.context_data",
2050
- // "samples": [
2051
- // {
2052
- // "annotation": "",
2053
- // "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
2054
- // "doi": "",
2055
- // "heading": "ICNS from subject M54-8",
2056
- // "id": "Sample 1",
2057
- // "path": "",
2058
- // "view": "View 1",
2059
- // "color": "#FFFF00",
2060
- // "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
2061
- // },
2062
- // {
2063
- // "annotation": "",
2064
- // "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
2065
- // "doi": "",
2066
- // "heading": "ICNS from subject M54-5",
2067
- // "id": "Sample 2",
2068
- // "path": "",
2069
- // "view": "View 2",
2070
- // "color": "#FFA500",
2071
- // "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
2072
- // }
2073
- // ],
2074
- // "version": "0.1.0",
2075
- // },
2076
- // 221: {
2077
- // "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
2078
- // "heading": "Digital tracings of enteric plexus",
2079
- // "id": "sparc.science.context_data",
2080
- // "samples": [
2081
- // {
2082
- // "annotation": "",
2083
- // "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
2084
- // "doi": "",
2085
- // "heading": "Digital tracing for subject M11",
2086
- // "id": "Sample 1",
2087
- // "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
2088
- // "view": "View 1"
2089
- // },
2090
- // {
2091
- // "annotation": "",
2092
- // "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
2093
- // "doi": "",
2094
- // "heading": "Digital tracing for subject M16",
2095
- // "id": "Sample 2",
2096
- // "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
2097
- // "view": "View 2"
2098
- // }
2099
- // ],
2100
- // "version": "0.1.0",
2101
- // "views": [
2102
- // {
2103
- // "annotation": "--",
2104
- // "description": "Digital tracing of neurons for subject M11.",
2105
- // "id": "View 1",
2106
- // "path": "files/derivative/Scaffolds/M11_view.json",
2107
- // "sample": "Sample 1",
2108
- // "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M11_thumbnail.jpeg"
2109
- // },
2110
- // {
2111
- // "annotation": "--",
2112
- // "description": "Digital tracing of neurons for subject M16.",
2113
- // "id": "View 2",
2114
- // "path": "files/derivative/Scaffolds/M16_view.json",
2115
- // "sample": "Sample 2",
2116
- // "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M16_thumbnail.jpeg"
2117
- // }
2118
- // ]
2119
- // }
2120
- // }
2121
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DatasetCard.vue?vue&type=script&lang=js&
2122
-
2123
-
2124
-
2125
-
2126
-
2127
-
2128
-
2090
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65a2a86d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DatasetCard.vue?vue&type=template&id=bf193158&scoped=true&
2091
+ var DatasetCardvue_type_template_id_bf193158_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"dataset-card-container"},[_c('div',{ref:"card",staticClass:"dataset-card"},[_c('div',{staticClass:"seperator-path"}),_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"card"},[_c('span',{staticClass:"card-left"},[(!_vm.loading && _vm.discoverId)?_c('image-gallery',{attrs:{"datasetId":_vm.discoverId,"datasetVersion":_vm.version,"entry":_vm.entry,"envVars":_vm.envVars,"label":_vm.label,"datasetThumbnail":_vm.thumbnail,"dataset-biolucida":_vm.biolucidaData,"category":_vm.currentCategory},on:{"card-clicked":_vm.galleryClicked}}):_vm._e()],1),_c('div',{staticClass:"card-right"},[_c('div',{staticClass:"title",on:{"click":_vm.cardClicked}},[_vm._v(_vm._s(_vm.entry.name))]),_c('div',{staticClass:"details"},[_vm._v(_vm._s(_vm.contributors)+" "+_vm._s(_vm.entry.publishDate ? ("(" + _vm.publishYear + ")") : ''))]),_c('div',{staticClass:"details"},[_vm._v(_vm._s(_vm.samples))]),(!_vm.entry.detailsReady)?_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(!_vm.entry.detailsReady),expression:"!entry.detailsReady"}],staticClass:"details loading-icon"}):_vm._e(),_c('div',[(_vm.entry.simulation)?_c('el-button',{staticClass:"button",attrs:{"size":"mini","icon":"el-icon-view"},on:{"click":_vm.openRepository}},[_vm._v("View repository")]):_vm._e()],1),_c('div',{staticClass:"badges-container"},[_c('badges-group',{attrs:{"entry":_vm.entry,"dataset-biolucida":_vm.biolucidaData},on:{"categoryChanged":_vm.categoryChanged}})],1)])])])])}
2092
+ var DatasetCardvue_type_template_id_bf193158_scoped_true_staticRenderFns = []
2129
2093
 
2130
2094
 
2095
+ // CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=template&id=bf193158&scoped=true&
2131
2096
 
2097
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65a2a86d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BadgesGroup.vue?vue&type=template&id=712c1be9&scoped=true&
2098
+ var BadgesGroupvue_type_template_id_712c1be9_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.categories['All'].size > 1)?_c('div',{ref:"container",staticClass:"container"},[_c('div',[_vm._v(" View data types: ")]),_vm._l((_vm.categories),function(item,key){return [(item.size > 0)?_c('el-button',{key:key,class:[{ 'active': key == _vm.active},'tag-button'],attrs:{"size":"small"},on:{"click":function($event){return _vm.categoryClicked(key)}}},[_vm._v(_vm._s(key + " (" + item.size + ")")+" ")]):_vm._e()]})],2):_vm._e()}
2099
+ var BadgesGroupvue_type_template_id_712c1be9_scoped_true_staticRenderFns = []
2132
2100
 
2133
2101
 
2102
+ // CONCATENATED MODULE: ./src/components/BadgesGroup.vue?vue&type=template&id=712c1be9&scoped=true&
2134
2103
 
2104
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BadgesGroup.vue?vue&type=script&lang=js&
2135
2105
 
2136
2106
 
2137
2107
 
2138
-
2139
- //
2140
- //
2141
- //
2142
- //
2143
- //
2144
- //
2145
- //
2146
- //
2147
- //
2148
- //
2149
- //
2150
- //
2151
- //
2152
- //
2153
- //
2154
- //
2155
- //
2156
- //
2157
- //
2158
- //
2159
2108
  //
2160
2109
  //
2161
2110
  //
@@ -2178,87 +2127,819 @@ var EventBus = new external_vue_default.a();
2178
2127
 
2179
2128
 
2180
2129
 
2181
-
2182
-
2183
-
2184
2130
  locale_default.a.use(en_default.a);
2185
2131
  external_vue_default.a.use(button_default.a);
2186
- external_vue_default.a.use(icon_default.a);
2187
-
2188
- var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string) {
2189
- return string.replace(/\b\w/g, function (v) {
2190
- return v.toUpperCase();
2191
- });
2192
- };
2193
-
2194
- /* harmony default export */ var DatasetCardvue_type_script_lang_js_ = ({
2195
- name: "DatasetCard",
2132
+ /* harmony default export */ var BadgesGroupvue_type_script_lang_js_ = ({
2133
+ name: "BadgesGroup",
2196
2134
  props: {
2197
2135
  /**
2198
2136
  * Object containing information for
2199
2137
  * the required viewing.
2200
2138
  */
2201
- entry: {
2139
+ additionalLinks: {
2140
+ type: Array,
2141
+ default: function _default() {
2142
+ return [];
2143
+ }
2144
+ },
2145
+ datasetBiolucida: {
2202
2146
  type: Object,
2203
- default: function _default() {}
2147
+ default: function _default() {
2148
+ return {};
2149
+ }
2204
2150
  },
2205
- envVars: {
2151
+ entry: {
2206
2152
  type: Object,
2207
- default: function _default() {}
2153
+ default: function _default() {
2154
+ return {};
2155
+ }
2208
2156
  }
2209
2157
  },
2210
2158
  data: function data() {
2211
2159
  return {
2212
- thumbnail: __webpack_require__("9b53"),
2213
- dataLocation: this.entry.doi,
2214
- discoverId: undefined,
2215
- cardOverflow: false,
2216
- expanded: false,
2217
- loading: false,
2218
- lastDoi: undefined
2160
+ categories: {
2161
+ "All": {
2162
+ size: 1
2163
+ }
2164
+ },
2165
+ active: "All"
2219
2166
  };
2220
2167
  },
2221
- computed: {
2222
- hasCSVFile: function hasCSVFile() {
2223
- return this.entry.csvFiles && this.entry.csvFiles.length !== 0;
2168
+ methods: {
2169
+ addToCategories: function addToCategories(array, name) {
2170
+ if (array && array.length > 0) {
2171
+ this.categories[name] = {
2172
+ size: array.length
2173
+ };
2174
+ this.categories["All"].size += array.length;
2175
+ }
2224
2176
  },
2225
- contributors: function contributors() {
2226
- var text = "";
2227
-
2228
- if (this.entry.contributors) {
2229
- if (this.entry.contributors.length === 1) {
2230
- text = this.lastName(this.entry.contributors[0].name);
2231
- } else if (this.entry.contributors.length === 2) {
2232
- text = this.lastName(this.entry.contributors[0].name) + " & " + this.lastName(this.entry.contributors[1].name);
2233
- } else if (this.entry.contributors.length > 2) {
2234
- text = this.lastName(this.entry.contributors[0].name) + " et al.";
2235
- }
2177
+ addSimulationsToCategories: function addSimulationsToCategories(array) {
2178
+ if (array && array.length > 0) {
2179
+ var size = 1;
2180
+ this.categories["Simulations"] = {
2181
+ size: size
2182
+ };
2183
+ this.categories["All"].size += size;
2236
2184
  }
2237
-
2238
- return text;
2239
2185
  },
2240
- samples: function samples() {
2241
- var text = "";
2242
-
2243
- if (this.entry.species) {
2244
- if (species_map[this.entry.species[0].toLowerCase()]) {
2245
- text = "".concat(species_map[this.entry.species[0].toLowerCase()]);
2246
- } else {
2247
- text = "".concat(this.entry.species);
2186
+ categoryClicked: function categoryClicked(name) {
2187
+ this.active = name;
2188
+ this.$emit("categoryChanged", name);
2189
+ }
2190
+ },
2191
+ watch: {
2192
+ datasetBiolucida: {
2193
+ deep: true,
2194
+ immediate: true,
2195
+ handler: function handler(biolucidaData) {
2196
+ if ("dataset_images" in biolucidaData) {
2197
+ this.addToCategories(biolucidaData["dataset_images"], "Biolucida Images");
2248
2198
  }
2249
2199
  }
2200
+ },
2201
+ entry: {
2202
+ deep: true,
2203
+ immediate: true,
2204
+ handler: function handler() {
2205
+ this.addToCategories(this.entry.scaffolds, 'Scaffolds');
2206
+ this.addToCategories(this.entry.segmentation, 'Segmentations');
2207
+ this.addToCategories(this.entry.plots, 'Plots');
2208
+ this.addSimulationsToCategories(this.entry.simulation);
2209
+ /** disable the following
2210
+ this.addToCategories(this.entry.images, 'Images');
2211
+ this.addToCategories(this.entry.videos, 'Videos');
2212
+ **/
2213
+ }
2214
+ }
2215
+ }
2216
+ });
2217
+ // CONCATENATED MODULE: ./src/components/BadgesGroup.vue?vue&type=script&lang=js&
2218
+ /* harmony default export */ var components_BadgesGroupvue_type_script_lang_js_ = (BadgesGroupvue_type_script_lang_js_);
2219
+ // EXTERNAL MODULE: ./src/components/BadgesGroup.vue?vue&type=style&index=0&id=712c1be9&scoped=true&lang=css&
2220
+ var BadgesGroupvue_type_style_index_0_id_712c1be9_scoped_true_lang_css_ = __webpack_require__("eb34");
2250
2221
 
2251
- if (this.entry.numberSamples > 0) {
2252
- text += " (";
2222
+ // CONCATENATED MODULE: ./src/components/BadgesGroup.vue
2253
2223
 
2254
- if (this.entry.numberSamples === 1) {
2255
- text += "".concat(this.entry.numberSamples, " sample");
2256
- } else if (this.entry.numberSamples > 1) {
2257
- text += "".concat(this.entry.numberSamples, " samples");
2258
- }
2259
2224
 
2260
- if (this.entry.numberSubjects === 1) {
2261
- text += " from ".concat(this.entry.numberSubjects, " subject");
2225
+
2226
+
2227
+
2228
+
2229
+ /* normalize component */
2230
+
2231
+ var BadgesGroup_component = normalizeComponent(
2232
+ components_BadgesGroupvue_type_script_lang_js_,
2233
+ BadgesGroupvue_type_template_id_712c1be9_scoped_true_render,
2234
+ BadgesGroupvue_type_template_id_712c1be9_scoped_true_staticRenderFns,
2235
+ false,
2236
+ null,
2237
+ "712c1be9",
2238
+ null
2239
+
2240
+ )
2241
+
2242
+ /* harmony default export */ var BadgesGroup = (BadgesGroup_component.exports);
2243
+ // CONCATENATED MODULE: ./src/components/EventBus.js
2244
+
2245
+ var EventBus = new external_vue_default.a();
2246
+ /* harmony default export */ var components_EventBus = (EventBus);
2247
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65a2a86d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ImageGallery.vue?vue&type=template&id=6c8573ea&scoped=true&
2248
+ var ImageGalleryvue_type_template_id_6c8573ea_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"full-size"},[_c('gallery',{ref:"gallery",attrs:{"bottomSpacer":_vm.bottomSpacer,"cardWidth":10,"items":_vm.galleryItems,"max-width":_vm.maxWidth,"show-indicator-bar":false,"show-card-details":true,"highlight-active":false,"image-style":_vm.imageStyle,"image-container-style":_vm.imageContainerStyle,"body-style":_vm.bodyStyle,"shadow":_vm.shadow},on:{"card-clicked":_vm.cardClicked}})],1)}
2249
+ var ImageGalleryvue_type_template_id_6c8573ea_scoped_true_staticRenderFns = []
2250
+
2251
+
2252
+ // CONCATENATED MODULE: ./src/components/ImageGallery.vue?vue&type=template&id=6c8573ea&scoped=true&
2253
+
2254
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
2255
+
2256
+
2257
+
2258
+
2259
+
2260
+
2261
+
2262
+
2263
+ function _iterableToArrayLimit(arr, i) {
2264
+ if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
2265
+ return;
2266
+ }
2267
+
2268
+ var _arr = [];
2269
+ var _n = true;
2270
+ var _d = false;
2271
+ var _e = undefined;
2272
+
2273
+ try {
2274
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
2275
+ _arr.push(_s.value);
2276
+
2277
+ if (i && _arr.length === i) break;
2278
+ }
2279
+ } catch (err) {
2280
+ _d = true;
2281
+ _e = err;
2282
+ } finally {
2283
+ try {
2284
+ if (!_n && _i["return"] != null) _i["return"]();
2285
+ } finally {
2286
+ if (_d) throw _e;
2287
+ }
2288
+ }
2289
+
2290
+ return _arr;
2291
+ }
2292
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
2293
+
2294
+
2295
+
2296
+ function _slicedToArray(arr, i) {
2297
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
2298
+ }
2299
+ // EXTERNAL MODULE: external "@abi-software/gallery/src/mixins/GalleryHelpers"
2300
+ var GalleryHelpers_ = __webpack_require__("a012");
2301
+ var GalleryHelpers_default = /*#__PURE__*/__webpack_require__.n(GalleryHelpers_);
2302
+
2303
+ // EXTERNAL MODULE: external "@abi-software/gallery"
2304
+ var gallery_ = __webpack_require__("3a09");
2305
+ var gallery_default = /*#__PURE__*/__webpack_require__.n(gallery_);
2306
+
2307
+ // EXTERNAL MODULE: external "@abi-software/gallery/dist/gallery.css"
2308
+ var gallery_css_ = __webpack_require__("5658");
2309
+
2310
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ImageGallery.vue?vue&type=script&lang=js&
2311
+
2312
+
2313
+
2314
+
2315
+
2316
+
2317
+
2318
+
2319
+
2320
+
2321
+
2322
+
2323
+
2324
+
2325
+
2326
+
2327
+ //
2328
+ //
2329
+ //
2330
+ //
2331
+ //
2332
+ //
2333
+ //
2334
+ //
2335
+ //
2336
+ //
2337
+ //
2338
+ //
2339
+ //
2340
+ //
2341
+ //
2342
+ //
2343
+ //
2344
+ //
2345
+ //
2346
+ //
2347
+
2348
+ /* eslint-disable no-alert, no-console */
2349
+ var baseName = function baseName(str) {
2350
+ return str.split("\\").pop().split("/").pop();
2351
+ };
2352
+
2353
+ var ImageGalleryvue_type_script_lang_js_capitalise = function capitalise(string) {
2354
+ return string.replace(/\b\w/g, function (v) {
2355
+ return v.toUpperCase();
2356
+ });
2357
+ };
2358
+
2359
+
2360
+
2361
+
2362
+ /* harmony default export */ var ImageGalleryvue_type_script_lang_js_ = ({
2363
+ name: "ImageGallery",
2364
+ components: {
2365
+ Gallery: gallery_default.a
2366
+ },
2367
+ mixins: [GalleryHelpers_default.a],
2368
+ props: {
2369
+ datasetBiolucida: {
2370
+ type: Object,
2371
+ default: function _default() {
2372
+ return {};
2373
+ }
2374
+ },
2375
+ envVars: {
2376
+ type: Object,
2377
+ default: function _default() {}
2378
+ },
2379
+ label: {
2380
+ type: String,
2381
+ default: ""
2382
+ },
2383
+ plots: {
2384
+ type: Array,
2385
+ default: function _default() {
2386
+ return [];
2387
+ }
2388
+ },
2389
+ datasetId: {
2390
+ type: Number,
2391
+ default: -1
2392
+ },
2393
+ datasetVersion: {
2394
+ type: Number,
2395
+ default: -1
2396
+ },
2397
+ datasetThumbnail: {
2398
+ type: String,
2399
+ default: ""
2400
+ },
2401
+ category: {
2402
+ type: String,
2403
+ default: "All"
2404
+ },
2405
+ entry: {
2406
+ type: Object,
2407
+ default: function _default() {
2408
+ return {};
2409
+ }
2410
+ }
2411
+ },
2412
+ data: function data() {
2413
+ return {
2414
+ currentIndex: 0,
2415
+ ro: null,
2416
+ maxWidth: 3,
2417
+ items: {
2418
+ "Biolucida Images": [],
2419
+ 'Dataset': [],
2420
+ 'Images': [],
2421
+ 'Scaffolds': [],
2422
+ 'Segmentations': [],
2423
+ 'Simulations': [],
2424
+ 'Videos': [],
2425
+ 'Plots': []
2426
+ },
2427
+ bodyStyle: {
2428
+ padding: '0px',
2429
+ background: '#ffffff'
2430
+ },
2431
+ imageContainerStyle: {
2432
+ width: '160px',
2433
+ height: '160px',
2434
+ display: 'flex',
2435
+ alignItems: 'center',
2436
+ justifyContent: 'center'
2437
+ },
2438
+ imageStyle: {
2439
+ maxWidth: '160px',
2440
+ maxHeight: '160px'
2441
+ },
2442
+ shadow: "never",
2443
+ bottomSpacer: {
2444
+ minHeight: '0rem'
2445
+ },
2446
+ resetIndex: false
2447
+ };
2448
+ },
2449
+ methods: {
2450
+ cardClicked: function cardClicked(payload) {
2451
+ this.$emit('card-clicked', payload);
2452
+ },
2453
+ createSciCurnchItems: function createSciCurnchItems() {
2454
+ this.createDatasetItem();
2455
+ this.createScaffoldItems();
2456
+ this.createSimulationItems();
2457
+ this.createPlotItems();
2458
+ this.createSegmentationItems();
2459
+ /* Disable these two
2460
+ this.createImageItems();
2461
+ this.createVideoItems();
2462
+ */
2463
+ },
2464
+ createDatasetItem: function createDatasetItem() {
2465
+ var link = "".concat(this.envVars.ROOT_URL, "/datasets/").concat(this.datasetId, "?type=dataset");
2466
+
2467
+ if (this.datasetThumbnail) {
2468
+ this.items['Dataset'].push({
2469
+ id: -1,
2470
+ //Work around gallery requires a truthy string
2471
+ title: " ",
2472
+ type: "Dataset ".concat(this.datasetId),
2473
+ thumbnail: this.datasetThumbnail,
2474
+ link: link,
2475
+ hideType: true,
2476
+ hideTitle: true
2477
+ });
2478
+ }
2479
+ },
2480
+ createImageItems: function createImageItems() {
2481
+ var _this = this;
2482
+
2483
+ if (this.entry.images) {
2484
+ this.entry.images.forEach(function (image) {
2485
+ var filePath = image.dataset.path;
2486
+ var id = image.identifier;
2487
+ var linkUrl = "".concat(_this.envVars.ROOT_URL, "/datasets/imageviewer?dataset_id=").concat(_this.datasetId, "&dataset_version=").concat(_this.datasetVersion, "&file_path=").concat(filePath, "&mimetype=").concat(image.mimetype.name);
2488
+
2489
+ _this.items['Images'].push({
2490
+ id: id,
2491
+ title: baseName(filePath),
2492
+ type: "Image",
2493
+ link: linkUrl,
2494
+ hideType: true
2495
+ });
2496
+ });
2497
+ }
2498
+ },
2499
+ createPlotItems: function createPlotItems() {
2500
+ var _this2 = this;
2501
+
2502
+ if (this.entry.plots) {
2503
+ this.entry.plots.forEach(function (plot) {
2504
+ var filePath = plot.dataset.path;
2505
+ var id = plot.identifier;
2506
+
2507
+ var thumbnail = _this2.getThumbnailForPlot(plot, _this2.entry.thumbnails);
2508
+
2509
+ var thumbnailURL = undefined;
2510
+ var mimetype = '';
2511
+
2512
+ if (thumbnail) {
2513
+ thumbnailURL = _this2.getImageURLFromS3(_this2.envVars.API_LOCATION, {
2514
+ id: id,
2515
+ datasetId: _this2.datasetId,
2516
+ datasetVersion: _this2.datasetVersion,
2517
+ file_path: thumbnail.dataset.path
2518
+ });
2519
+ mimetype = thumbnail.mimetype.name;
2520
+ }
2521
+
2522
+ var plotAnnotation = plot.datacite;
2523
+ var filePathPrefix = "".concat(_this2.envVars.API_LOCATION, "/s3-resource/").concat(_this2.datasetId, "/").concat(_this2.datasetVersion, "/files/");
2524
+ var sourceUrl = filePathPrefix + plot.dataset.path;
2525
+ var metadata = JSON.parse(plotAnnotation.supplemental_json_metadata.description);
2526
+ var supplementalData = [];
2527
+
2528
+ if (plotAnnotation.isDescribedBy) {
2529
+ supplementalData.push({
2530
+ url: filePathPrefix + plotAnnotation.isDescribedBy.path
2531
+ });
2532
+ }
2533
+
2534
+ var resource = {
2535
+ dataSource: {
2536
+ url: sourceUrl
2537
+ },
2538
+ metadata: metadata,
2539
+ supplementalData: supplementalData
2540
+ };
2541
+ var action = {
2542
+ label: ImageGalleryvue_type_script_lang_js_capitalise(_this2.label),
2543
+ resource: resource,
2544
+ title: "View plot",
2545
+ type: "Plot",
2546
+ discoverId: _this2.discoverId,
2547
+ version: _this2.datasetVersion
2548
+ };
2549
+
2550
+ _this2.items['Plots'].push({
2551
+ id: id,
2552
+ title: baseName(filePath),
2553
+ type: "Plot",
2554
+ thumbnail: thumbnailURL,
2555
+ userData: action,
2556
+ hideType: true,
2557
+ mimetype: mimetype
2558
+ });
2559
+ });
2560
+ }
2561
+ },
2562
+ createScaffoldItems: function createScaffoldItems() {
2563
+ var _this3 = this;
2564
+
2565
+ if (this.entry.scaffolds) {
2566
+ var index = 0;
2567
+ this.entry.scaffolds.forEach(function (scaffold) {
2568
+ var filePath = scaffold.dataset.path;
2569
+ var id = scaffold.identifier;
2570
+
2571
+ var thumbnail = _this3.getThumbnailForScaffold(scaffold, _this3.entry.scaffoldViews, _this3.entry.thumbnails, index);
2572
+
2573
+ var mimetype = '';
2574
+ var thumbnailURL = undefined;
2575
+
2576
+ if (thumbnail) {
2577
+ thumbnailURL = _this3.getImageURLFromS3(_this3.envVars.API_LOCATION, {
2578
+ id: id,
2579
+ datasetId: _this3.datasetId,
2580
+ datasetVersion: _this3.datasetVersion,
2581
+ file_path: thumbnail.dataset.path
2582
+ });
2583
+ mimetype = thumbnail.mimetype.name;
2584
+ }
2585
+
2586
+ var action = {
2587
+ label: ImageGalleryvue_type_script_lang_js_capitalise(_this3.label),
2588
+ resource: "".concat(_this3.envVars.API_LOCATION, "s3-resource/").concat(_this3.datasetId, "/").concat(_this3.datasetVersion, "/files/").concat(filePath),
2589
+ title: "View 3D scaffold",
2590
+ type: "Scaffold",
2591
+ discoverId: _this3.datasetId,
2592
+ apiLocation: _this3.envVars.API_LOCATION,
2593
+ version: _this3.datasetVersion,
2594
+ banner: _this3.datasetThumbnail,
2595
+ contextCardUrl: _this3.entry.contextualInformation ? "".concat(_this3.envVars.API_LOCATION, "s3-resource/").concat(_this3.datasetId, "/").concat(_this3.datasetVersion, "/files/").concat(_this3.entry.contextualInformation) : undefined
2596
+ };
2597
+
2598
+ _this3.items['Scaffolds'].push({
2599
+ id: id,
2600
+ title: baseName(filePath),
2601
+ type: "Scaffold",
2602
+ thumbnail: thumbnailURL,
2603
+ userData: action,
2604
+ hideType: true,
2605
+ mimetype: mimetype
2606
+ });
2607
+ });
2608
+ }
2609
+ },
2610
+ createSegmentationItems: function createSegmentationItems() {
2611
+ var _this4 = this;
2612
+
2613
+ if (this.entry.segmentation) {
2614
+ this.entry.segmentation.forEach(function (segmentation) {
2615
+ var id = segmentation.id;
2616
+ var filePath = segmentation.dataset.path;
2617
+ filePath = filePath.replaceAll(" ", "_");
2618
+ filePath = filePath.replaceAll(",", "_");
2619
+ var prefix = _this4.envVars.NL_LINK_PREFIX;
2620
+ var resource = {
2621
+ share_link: "".concat(prefix, "/dataviewer?datasetId=").concat(_this4.datasetId, "&version=").concat(_this4.datasetVersion, "&path=files/").concat(filePath)
2622
+ };
2623
+ var action = {
2624
+ label: ImageGalleryvue_type_script_lang_js_capitalise(_this4.label),
2625
+ resource: resource,
2626
+ datasetId: _this4.datasetId,
2627
+ title: "View segmentation",
2628
+ type: "Segmentation"
2629
+ };
2630
+
2631
+ var thumbnailURL = _this4.getSegmentationThumbnailURL(_this4.envVars.API_LOCATION, {
2632
+ id: id,
2633
+ datasetId: _this4.datasetId,
2634
+ datasetVersion: _this4.datasetVersion,
2635
+ segmentationFilePath: filePath
2636
+ });
2637
+
2638
+ _this4.items['Segmentations'].push({
2639
+ id: id,
2640
+ title: baseName(filePath),
2641
+ type: "Segmentation",
2642
+ thumbnail: thumbnailURL,
2643
+ userData: action,
2644
+ hideType: true,
2645
+ mimetype: 'image/png'
2646
+ });
2647
+ });
2648
+ }
2649
+ },
2650
+ createSimulationItems: function createSimulationItems() {
2651
+ if (this.entry.simulation && this.entry.simulation.length > 0) {
2652
+ var action = {
2653
+ label: undefined,
2654
+ apiLocation: this.envVars.API_LOCATION,
2655
+ version: this.datasetVersion,
2656
+ title: "View simulation",
2657
+ type: "Simulation",
2658
+ name: this.entry.name,
2659
+ description: this.entry.description,
2660
+ discoverId: this.datasetId,
2661
+ dataset: "".concat(this.envVars.ROOT_URL, "/datasets/").concat(this.datasetId, "?type=dataset")
2662
+ };
2663
+ this.items['Simulations'].push({
2664
+ id: "simulation",
2665
+ title: " ",
2666
+ type: "Simulation",
2667
+ hideType: true,
2668
+ hideTitle: true,
2669
+ userData: action
2670
+ });
2671
+ }
2672
+ },
2673
+ createVideoItems: function createVideoItems() {
2674
+ var _this5 = this;
2675
+
2676
+ if (this.entry.videos) {
2677
+ this.entry.videos.forEach(function (video) {
2678
+ var filePath = _this5.getS3FilePath(_this5.datasetId, _this5.datasetVersion, video.dataset.path);
2679
+
2680
+ var linkUrl = "".concat(_this5.envVars.ROOT_URL, "/datasets/videoviewer?dataset_version=").concat(_this5.datasetVersion, "&dataset_id=").concat(_this5.datasetId, "&file_path=").concat(filePath, "&mimetype=").concat(video.mimetype.name);
2681
+
2682
+ _this5.items['Videos'].push({
2683
+ title: video.name,
2684
+ type: "Video",
2685
+ thumbnail: _this5.defaultVideoImg,
2686
+ hideType: true,
2687
+ link: linkUrl
2688
+ });
2689
+ });
2690
+ }
2691
+ },
2692
+ onResize: function onResize() {
2693
+ this.maxWidth = this.$el.clientWidth; // this.$emit('resize', this.$el.clientWidth)
2694
+ }
2695
+ },
2696
+ computed: {
2697
+ galleryItems: function galleryItems() {
2698
+ if (this.resetIndex) {
2699
+ this.$refs.gallery.indicatorClicked(0);
2700
+ }
2701
+
2702
+ var items = _toConsumableArray(this.items["Dataset"]);
2703
+
2704
+ if (this.category === "All") {
2705
+ for (var _i = 0, _Object$entries = Object.entries(this.items); _i < _Object$entries.length; _i++) {
2706
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
2707
+ key = _Object$entries$_i[0],
2708
+ value = _Object$entries$_i[1];
2709
+
2710
+ if (key !== "Dataset") items = items.concat(value);
2711
+ }
2712
+
2713
+ return items;
2714
+ } else return this.items[this.category];
2715
+ }
2716
+ },
2717
+ created: function created() {
2718
+ this.createSciCurnchItems();
2719
+ },
2720
+ watch: {
2721
+ category: function category() {
2722
+ this.resetIndex = true;
2723
+ },
2724
+ galleryItems: function galleryItems() {
2725
+ this.resetIndex = false;
2726
+ },
2727
+ datasetBiolucida: {
2728
+ deep: true,
2729
+ immediate: true,
2730
+ handler: function handler(biolucidaData) {
2731
+ var _this6 = this;
2732
+
2733
+ var items = [];
2734
+
2735
+ if ("dataset_images" in biolucidaData) {
2736
+ items.push.apply(items, _toConsumableArray(Array.from(biolucidaData.dataset_images, function (dataset_image) {
2737
+ var thumbnailURL = _this6.getThumbnailURLFromBiolucida(_this6.envVars.API_LOCATION, {
2738
+ id: dataset_image.image_id
2739
+ });
2740
+
2741
+ var resource = {
2742
+ share_link: dataset_image.share_link,
2743
+ id: dataset_image.image_id,
2744
+ itemId: dataset_image.sourcepkg_id
2745
+ };
2746
+ var action = {
2747
+ label: ImageGalleryvue_type_script_lang_js_capitalise(_this6.label),
2748
+ resource: resource,
2749
+ datasetId: _this6.datasetId,
2750
+ title: "View image",
2751
+ name: ImageGalleryvue_type_script_lang_js_capitalise(_this6.label),
2752
+ type: "Biolucida"
2753
+ };
2754
+ return {
2755
+ id: dataset_image.image_id,
2756
+ title: "Biolucida Image",
2757
+ type: "Image",
2758
+ thumbnail: thumbnailURL,
2759
+ userData: action,
2760
+ mimetype: 'image/png',
2761
+ hideType: true
2762
+ };
2763
+ })));
2764
+ }
2765
+
2766
+ this.items['Biolucida Images'] = items;
2767
+ }
2768
+ }
2769
+ },
2770
+ mounted: function mounted() {
2771
+ this.ro = new ResizeObserver(this.onResize).observe(this.$el);
2772
+ },
2773
+ destroyed: function destroyed() {
2774
+ delete this.ro;
2775
+ }
2776
+ });
2777
+ // CONCATENATED MODULE: ./src/components/ImageGallery.vue?vue&type=script&lang=js&
2778
+ /* harmony default export */ var components_ImageGalleryvue_type_script_lang_js_ = (ImageGalleryvue_type_script_lang_js_);
2779
+ // EXTERNAL MODULE: ./src/components/ImageGallery.vue?vue&type=style&index=0&id=6c8573ea&scoped=true&lang=css&
2780
+ var ImageGalleryvue_type_style_index_0_id_6c8573ea_scoped_true_lang_css_ = __webpack_require__("e03b");
2781
+
2782
+ // CONCATENATED MODULE: ./src/components/ImageGallery.vue
2783
+
2784
+
2785
+
2786
+
2787
+
2788
+
2789
+ /* normalize component */
2790
+
2791
+ var ImageGallery_component = normalizeComponent(
2792
+ components_ImageGalleryvue_type_script_lang_js_,
2793
+ ImageGalleryvue_type_template_id_6c8573ea_scoped_true_render,
2794
+ ImageGalleryvue_type_template_id_6c8573ea_scoped_true_staticRenderFns,
2795
+ false,
2796
+ null,
2797
+ "6c8573ea",
2798
+ null
2799
+
2800
+ )
2801
+
2802
+ /* harmony default export */ var ImageGallery = (ImageGallery_component.exports);
2803
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DatasetCard.vue?vue&type=script&lang=js&
2804
+
2805
+
2806
+
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+
2813
+
2814
+
2815
+
2816
+
2817
+
2818
+
2819
+
2820
+
2821
+ //
2822
+ //
2823
+ //
2824
+ //
2825
+ //
2826
+ //
2827
+ //
2828
+ //
2829
+ //
2830
+ //
2831
+ //
2832
+ //
2833
+ //
2834
+ //
2835
+ //
2836
+ //
2837
+ //
2838
+ //
2839
+ //
2840
+ //
2841
+ //
2842
+ //
2843
+ //
2844
+ //
2845
+ //
2846
+ //
2847
+ //
2848
+ //
2849
+ //
2850
+ //
2851
+ //
2852
+ //
2853
+ //
2854
+ //
2855
+ //
2856
+ //
2857
+ //
2858
+ //
2859
+ //
2860
+ //
2861
+
2862
+ /* eslint-disable no-alert, no-console */
2863
+
2864
+
2865
+
2866
+
2867
+
2868
+
2869
+
2870
+ locale_default.a.use(en_default.a);
2871
+ external_vue_default.a.use(button_default.a);
2872
+ external_vue_default.a.use(icon_default.a);
2873
+ /* harmony default export */ var DatasetCardvue_type_script_lang_js_ = ({
2874
+ name: "DatasetCard",
2875
+ components: {
2876
+ BadgesGroup: BadgesGroup,
2877
+ ImageGallery: ImageGallery
2878
+ },
2879
+ props: {
2880
+ /**
2881
+ * Object containing information for
2882
+ * the required viewing.
2883
+ */
2884
+ entry: {
2885
+ type: Object,
2886
+ default: function _default() {}
2887
+ },
2888
+ envVars: {
2889
+ type: Object,
2890
+ default: function _default() {}
2891
+ }
2892
+ },
2893
+ data: function data() {
2894
+ return {
2895
+ thumbnail: __webpack_require__("9b53"),
2896
+ dataLocation: this.entry.doi,
2897
+ discoverId: undefined,
2898
+ loading: true,
2899
+ version: 1,
2900
+ lastDoi: undefined,
2901
+ biolucidaData: undefined,
2902
+ currentCategory: "All"
2903
+ };
2904
+ },
2905
+ computed: {
2906
+ contributors: function contributors() {
2907
+ var text = "";
2908
+
2909
+ if (this.entry.contributors) {
2910
+ if (this.entry.contributors.length === 1) {
2911
+ text = this.lastName(this.entry.contributors[0].name);
2912
+ } else if (this.entry.contributors.length === 2) {
2913
+ text = this.lastName(this.entry.contributors[0].name) + " & " + this.lastName(this.entry.contributors[1].name);
2914
+ } else if (this.entry.contributors.length > 2) {
2915
+ text = this.lastName(this.entry.contributors[0].name) + " et al.";
2916
+ }
2917
+ }
2918
+
2919
+ return text;
2920
+ },
2921
+ samples: function samples() {
2922
+ var text = "";
2923
+
2924
+ if (this.entry.species) {
2925
+ if (species_map[this.entry.species[0].toLowerCase()]) {
2926
+ text = "".concat(species_map[this.entry.species[0].toLowerCase()]);
2927
+ } else {
2928
+ text = "".concat(this.entry.species);
2929
+ }
2930
+ }
2931
+
2932
+ if (this.entry.numberSamples > 0) {
2933
+ text += " (";
2934
+
2935
+ if (this.entry.numberSamples === 1) {
2936
+ text += "".concat(this.entry.numberSamples, " sample");
2937
+ } else if (this.entry.numberSamples > 1) {
2938
+ text += "".concat(this.entry.numberSamples, " samples");
2939
+ }
2940
+
2941
+ if (this.entry.numberSubjects === 1) {
2942
+ text += " from ".concat(this.entry.numberSubjects, " subject");
2262
2943
  } else if (this.entry.numberSamples > 1) {
2263
2944
  text += " from ".concat(this.entry.numberSubjects, " subjects");
2264
2945
  }
@@ -2277,44 +2958,13 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
2277
2958
  },
2278
2959
  methods: {
2279
2960
  cardClicked: function cardClicked() {
2280
- if (this.entry.scaffolds) {
2281
- this.openScaffold();
2282
- } else {
2283
- this.openDataset();
2284
- }
2961
+ this.openDataset();
2285
2962
  },
2286
- openScaffold: function openScaffold() {
2287
- var action = {
2288
- label: DatasetCardvue_type_script_lang_js_capitalise(this.label),
2289
- resource: this.getScaffoldPath(this.discoverId, this.version, this.entry.scaffolds[0].dataset.path),
2290
- title: "View 3D scaffold",
2291
- type: "Scaffold",
2292
- discoverId: this.discoverId,
2293
- apiLocation: this.envVars.API_LOCATION,
2294
- version: this.version,
2295
- contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
2296
- banner: this.thumbnail
2297
- };
2298
-
2299
- if (hardcoded_context_info[this.discoverId]) {
2300
- action.contextCardUrl = true;
2301
- }
2302
-
2303
- this.propogateCardAction(action);
2304
- },
2305
- openPlot: function openPlot() {
2306
- var action = {
2307
- label: DatasetCardvue_type_script_lang_js_capitalise(this.label),
2308
- resource: this.getFileFromPath(this.discoverId, this.version, this.entry.csvFiles[0].dataset.path),
2309
- title: "View plot",
2310
- type: "Plot",
2311
- discoverId: this.discoverId,
2312
- apiLocation: this.envVars.API_LOCATION,
2313
- version: this.version,
2314
- contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
2315
- banner: this.thumbnail
2316
- };
2317
- this.propogateCardAction(action);
2963
+ categoryChanged: function categoryChanged(name) {
2964
+ this.currentCategory = name;
2965
+ },
2966
+ galleryClicked: function galleryClicked(payload) {
2967
+ this.propogateCardAction(payload);
2318
2968
  },
2319
2969
  openDataset: function openDataset() {
2320
2970
  window.open(this.dataLocation, '_blank');
@@ -2349,51 +2999,10 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
2349
2999
  }
2350
3000
  });
2351
3001
  },
2352
- openSimulation: function openSimulation() {
2353
- var isSedmlResource = false;
2354
- var resource = undefined;
2355
- this.entry.additionalLinks.forEach(function (el) {
2356
- if (el.description == "SED-ML file") {
2357
- isSedmlResource = true;
2358
- resource = el.uri;
2359
- } else if (!isSedmlResource && el.description == "CellML file") {
2360
- resource = el.uri;
2361
- }
2362
- });
2363
- var action = {
2364
- label: undefined,
2365
- resource: resource,
2366
- dataset: this.dataLocation,
2367
- apiLocation: this.envVars.API_LOCATION,
2368
- version: this.version,
2369
- discoverId: this.discoverId,
2370
- contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version, this.entry.contextualInformation) : undefined,
2371
- banner: this.thumbnail,
2372
- title: "View simulation",
2373
- name: this.entry.name,
2374
- description: this.entry.description,
2375
- type: "Simulation"
2376
- };
2377
- this.propogateCardAction(action);
2378
- },
2379
3002
  propogateCardAction: function propogateCardAction(action) {
2380
3003
  components_EventBus.$emit("PopoverActionClick", action);
2381
3004
  this.$emit('contextUpdate', action);
2382
3005
  },
2383
- getScaffoldPath: function getScaffoldPath(discoverId, version, scaffoldPath) {
2384
- var id = discoverId;
2385
- var path = "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(id, "/").concat(version, "/files/").concat(scaffoldPath);
2386
- return path;
2387
- },
2388
- getFileFromPath: function getFileFromPath(discoverId, version, path) {
2389
- return "".concat(this.envVars.API_LOCATION, "s3-resource/").concat(discoverId, "/").concat(version, "/files/").concat(path);
2390
- },
2391
- isOverflown: function isOverflown(el) {
2392
- return el.clientHeight < el.scrollHeight;
2393
- },
2394
- expand: function expand() {
2395
- this.expanded = true;
2396
- },
2397
3006
  splitDOI: function splitDOI(doi) {
2398
3007
  return [doi.split('/')[doi.split('/').length - 2], doi.split('/')[doi.split('/').length - 1]];
2399
3008
  },
@@ -2405,7 +3014,7 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
2405
3014
  this.lastDoi = this.entry.doi;
2406
3015
  this.loading = true;
2407
3016
  var doi = this.splitDOI(this.entry.doi);
2408
- fetch("https://api.pennsieve.io/discover/datasets/doi/".concat(doi[0], "/").concat(doi[1])).then(function (response) {
3017
+ fetch("".concat(this.envVars.PENNSIEVE_API_LOCATION, "/discover/datasets/doi/").concat(doi[0], "/").concat(doi[1])).then(function (response) {
2409
3018
  if (!response.ok) {
2410
3019
  throw Error(response.statusText);
2411
3020
  } else {
@@ -2416,39 +3025,49 @@ var DatasetCardvue_type_script_lang_js_capitalise = function capitalise(string)
2416
3025
  _this.discoverId = data.id;
2417
3026
  _this.version = data.version;
2418
3027
  _this.dataLocation = "https://sparc.science/datasets/".concat(data.id, "?type=dataset");
3028
+
3029
+ _this.getBiolucidaInfo(_this.discoverId);
3030
+
2419
3031
  _this.loading = false;
2420
3032
  }).catch(function () {
2421
3033
  //set defaults if we hit an error
2422
3034
  _this.thumbnail = __webpack_require__("9b53");
2423
- _this.discoverId = undefined;
3035
+ _this.discoverId = Number(_this.entry.datasetId);
2424
3036
  _this.loading = false;
2425
3037
  });
2426
3038
  }
2427
3039
  },
2428
3040
  lastName: function lastName(fullName) {
2429
3041
  return fullName.split(',')[0];
3042
+ },
3043
+ getBiolucidaInfo: function getBiolucidaInfo(id) {
3044
+ var _this2 = this;
3045
+
3046
+ var apiLocation = this.envVars.API_LOCATION;
3047
+ var endpoint = apiLocation + "image_search/" + id; // Add parameters if we are sent them
3048
+
3049
+ fetch(endpoint).then(function (response) {
3050
+ return response.json();
3051
+ }).then(function (data) {
3052
+ if (data.status == "success") _this2.biolucidaData = data;
3053
+ });
2430
3054
  }
2431
3055
  },
2432
- mounted: function mounted() {
3056
+ created: function created() {
2433
3057
  this.getBanner();
2434
- this.cardOverflow = this.isOverflown(this.$refs.card);
2435
3058
  },
2436
- updated: function updated() {},
2437
3059
  watch: {
2438
3060
  // currently not using card overflow
2439
3061
  'entry.description': function entryDescription() {
2440
3062
  // watch it
2441
- this.cardOverflow = false;
2442
- this.expanded = false;
2443
- this.cardOverflow = this.isOverflown(this.$refs.card);
2444
3063
  this.getBanner();
2445
3064
  }
2446
3065
  }
2447
3066
  });
2448
3067
  // CONCATENATED MODULE: ./src/components/DatasetCard.vue?vue&type=script&lang=js&
2449
3068
  /* harmony default export */ var components_DatasetCardvue_type_script_lang_js_ = (DatasetCardvue_type_script_lang_js_);
2450
- // EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=380e4852&scoped=true&lang=css&
2451
- var DatasetCardvue_type_style_index_0_id_380e4852_scoped_true_lang_css_ = __webpack_require__("e14d");
3069
+ // EXTERNAL MODULE: ./src/components/DatasetCard.vue?vue&type=style&index=0&id=bf193158&scoped=true&lang=css&
3070
+ var DatasetCardvue_type_style_index_0_id_bf193158_scoped_true_lang_css_ = __webpack_require__("cbfe");
2452
3071
 
2453
3072
  // CONCATENATED MODULE: ./src/components/DatasetCard.vue
2454
3073
 
@@ -2461,22 +3080,22 @@ var DatasetCardvue_type_style_index_0_id_380e4852_scoped_true_lang_css_ = __webp
2461
3080
 
2462
3081
  var DatasetCard_component = normalizeComponent(
2463
3082
  components_DatasetCardvue_type_script_lang_js_,
2464
- DatasetCardvue_type_template_id_380e4852_scoped_true_render,
2465
- DatasetCardvue_type_template_id_380e4852_scoped_true_staticRenderFns,
3083
+ DatasetCardvue_type_template_id_bf193158_scoped_true_render,
3084
+ DatasetCardvue_type_template_id_bf193158_scoped_true_staticRenderFns,
2466
3085
  false,
2467
3086
  null,
2468
- "380e4852",
3087
+ "bf193158",
2469
3088
  null
2470
3089
 
2471
3090
  )
2472
3091
 
2473
3092
  /* harmony default export */ var DatasetCard = (DatasetCard_component.exports);
2474
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"258ee7b8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ContextCard.vue?vue&type=template&id=41eb07ec&scoped=true&
2475
- var ContextCardvue_type_template_id_41eb07ec_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"context-card-container"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showContextCard),expression:"showContextCard"}]},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showDetails),expression:"showDetails"}],staticClass:"hide",on:{"click":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v("Hide information"),_c('i',{staticClass:"el-icon-arrow-up"})]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showDetails),expression:"!showDetails"}],staticClass:"hide",on:{"click":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v("Show information"),_c('i',{staticClass:"el-icon-arrow-down"})]),(_vm.showDetails && Object.keys(_vm.contextData).length !== 0)?_c('el-card',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"context-card card"},[_c('div',{staticClass:"card-left"},[_c('img',{staticClass:"context-image",attrs:{"src":_vm.entry.banner}})]),_c('div',{staticClass:"card-right"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.contextData.heading))]),_c('div',[_vm._v(_vm._s(_vm.contextData.description))]),_c('br'),(_vm.contextData.views)?_c('div',{staticClass:"subtitle"},[_vm._v("Scaffold Views")]):_vm._e(),_vm._l((_vm.contextData.views),function(view,i){return [_c('span',{key:i+'_1',staticClass:"context-card-item",on:{"click":function($event){return _vm.openViewFile(view)}}},[_c('img',{staticClass:"key-image",attrs:{"src":_vm.getFileFromPath(view.thumbnail)}}),_vm._v(" "+_vm._s(view.description)+" ")]),_c('br',{key:i})]}),_c('div',{staticStyle:{"margin-bottom":"16px"}}),(_vm.contextData.samples && _vm.contextData.samples.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Samples on Scaffold")]):_vm._e(),_vm._l((_vm.contextData.samples),function(sample,i){return [_c('span',{key:i+'_3',staticClass:"context-card-item",on:{"click":function($event){return _vm.toggleSampleDetails(i)}}},[_c('div',{key:i+'_6',staticStyle:{"display":"flex"}},[(sample.color)?_c('div',{staticClass:"color-box",style:('background-color:'+ sample.color)}):(sample.thumbnail)?_c('img',{staticClass:"key-image",attrs:{"src":_vm.getFileFromPath(sample.thumbnail)}}):_vm._e(),_vm._v(" "+_vm._s(sample.heading)+" "),_c('i',{staticClass:"el-icon-warning-outline info"})])]),(_vm.sampleDetails[i])?_c('div',{key:i+'_4'},[_vm._v(" "+_vm._s(sample.description)+" "),(_vm.sampleDetails[i])?_c('a',{key:i+'_5',attrs:{"href":_vm.generateFileLink(sample.path),"target":"_blank"}},[_vm._v("View Source")]):_vm._e()]):_vm._e(),_c('br',{key:i+'_2'})]})],2)]):_vm._e()],1)])}
2476
- var ContextCardvue_type_template_id_41eb07ec_scoped_true_staticRenderFns = []
3093
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65a2a86d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ContextCard.vue?vue&type=template&id=6cd833f3&scoped=true&
3094
+ var ContextCardvue_type_template_id_6cd833f3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",staticClass:"context-card-container"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showContextCard),expression:"showContextCard"}]},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showDetails),expression:"showDetails"}],staticClass:"hide",on:{"click":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v("Hide information"),_c('i',{staticClass:"el-icon-arrow-up"})]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showDetails),expression:"!showDetails"}],staticClass:"hide",on:{"click":function($event){_vm.showDetails = !_vm.showDetails}}},[_vm._v("Show information"),_c('i',{staticClass:"el-icon-arrow-down"})]),(_vm.showDetails && Object.keys(_vm.contextData).length !== 0)?_c('el-card',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"context-card"},[_c('div',{staticClass:"card-left"},[_c('img',{staticClass:"context-image",attrs:{"src":_vm.entry.banner}})]),_c('div',{staticClass:"card-right scrollbar"},[_c('div',{staticClass:"title"},[_vm._v(_vm._s(_vm.contextData.heading))]),_c('div',[_vm._v(_vm._s(_vm.contextData.description))]),_c('br'),(_vm.contextData.views && _vm.contextData.views.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Scaffold Views")]):_vm._e(),_vm._l((_vm.contextData.views),function(view,i){return [_c('span',{key:i+'_1',staticClass:"context-card-item",on:{"click":function($event){return _vm.openViewFile(view)}}},[_c('img',{staticClass:"key-image",attrs:{"src":_vm.getFileFromPath(view.thumbnail)}}),_vm._v(" "+_vm._s(view.description)+" ")]),_c('br',{key:i})]}),_c('div',{staticStyle:{"margin-bottom":"16px"}}),(_vm.contextData.samples && _vm.contextData.samples.length > 0)?_c('div',{staticClass:"subtitle"},[_vm._v("Samples on Scaffold")]):_vm._e(),_vm._l((_vm.contextData.samples),function(sample,i){return [_c('span',{key:i+'_3',staticClass:"context-card-item",on:{"click":function($event){return _vm.toggleSampleDetails(i)}}},[_c('div',{key:i+'_6',staticStyle:{"display":"flex"}},[(sample.color)?_c('div',{staticClass:"color-box",style:('background-color:'+ sample.color)}):(sample.thumbnail)?_c('img',{staticClass:"key-image",attrs:{"src":_vm.getFileFromPath(sample.thumbnail)}}):_vm._e(),_vm._v(" "+_vm._s(sample.heading)+" "),_c('i',{staticClass:"el-icon-warning-outline info"})])]),(_vm.sampleDetails[i])?_c('div',{key:i+'_4'},[_vm._v(" "+_vm._s(sample.description)+" "),(_vm.sampleDetails[i])?_c('a',{key:i+'_5',attrs:{"href":_vm.generateFileLink(sample.path),"target":"_blank"}},[_vm._v("View Source")]):_vm._e()]):_vm._e(),_c('br',{key:i+'_2'})]})],2)]):_vm._e()],1)])}
3095
+ var ContextCardvue_type_template_id_6cd833f3_scoped_true_staticRenderFns = []
2477
3096
 
2478
3097
 
2479
- // CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=41eb07ec&scoped=true&
3098
+ // CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=template&id=6cd833f3&scoped=true&
2480
3099
 
2481
3100
  // EXTERNAL MODULE: external "element-ui/lib/theme-chalk/link.css"
2482
3101
  var link_css_ = __webpack_require__("230a");
@@ -2485,6 +3104,84 @@ var link_css_ = __webpack_require__("230a");
2485
3104
  var link_ = __webpack_require__("7db7");
2486
3105
  var link_default = /*#__PURE__*/__webpack_require__.n(link_);
2487
3106
 
3107
+ // CONCATENATED MODULE: ./src/components/hardcoded-context-info.js
3108
+ /* harmony default export */ var hardcoded_context_info = ({}); // //Uncomment the code below to add in hardcoded data
3109
+ // export default {
3110
+ // 77: {
3111
+ // "description": "This dataset contains single cell scale anatomical map of the rat intrinsic cardiac nervous system (ICNS) across four male and three female hearts. These cell clusters can be seen by the yellow data points on the image as well as spherical markers on the 3D heart scaffold. The dataset provides an integrative framework to visualise the spatial distribution of ICNS across different hearts.",
3112
+ // "heading": "Mapped ICN samples",
3113
+ // "id": "sparc.science.context_data",
3114
+ // "samples": [
3115
+ // {
3116
+ // "annotation": "",
3117
+ // "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
3118
+ // "doi": "",
3119
+ // "heading": "ICNS from subject M54-8",
3120
+ // "id": "Sample 1",
3121
+ // "path": "",
3122
+ // "view": "View 1",
3123
+ // "color": "#FFFF00",
3124
+ // "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
3125
+ // },
3126
+ // {
3127
+ // "annotation": "",
3128
+ // "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
3129
+ // "doi": "",
3130
+ // "heading": "ICNS from subject M54-5",
3131
+ // "id": "Sample 2",
3132
+ // "path": "",
3133
+ // "view": "View 2",
3134
+ // "color": "#FFA500",
3135
+ // "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
3136
+ // }
3137
+ // ],
3138
+ // "version": "0.1.0",
3139
+ // },
3140
+ // 221: {
3141
+ // "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
3142
+ // "heading": "Digital tracings of enteric plexus",
3143
+ // "id": "sparc.science.context_data",
3144
+ // "samples": [
3145
+ // {
3146
+ // "annotation": "",
3147
+ // "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
3148
+ // "doi": "",
3149
+ // "heading": "Digital tracing for subject M11",
3150
+ // "id": "Sample 1",
3151
+ // "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
3152
+ // "view": "View 1"
3153
+ // },
3154
+ // {
3155
+ // "annotation": "",
3156
+ // "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
3157
+ // "doi": "",
3158
+ // "heading": "Digital tracing for subject M16",
3159
+ // "id": "Sample 2",
3160
+ // "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
3161
+ // "view": "View 2"
3162
+ // }
3163
+ // ],
3164
+ // "version": "0.1.0",
3165
+ // "views": [
3166
+ // {
3167
+ // "annotation": "--",
3168
+ // "description": "Digital tracing of neurons for subject M11.",
3169
+ // "id": "View 1",
3170
+ // "path": "files/derivative/Scaffolds/M11_view.json",
3171
+ // "sample": "Sample 1",
3172
+ // "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M11_thumbnail.jpeg"
3173
+ // },
3174
+ // {
3175
+ // "annotation": "--",
3176
+ // "description": "Digital tracing of neurons for subject M16.",
3177
+ // "id": "View 2",
3178
+ // "path": "files/derivative/Scaffolds/M16_view.json",
3179
+ // "sample": "Sample 2",
3180
+ // "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M16_thumbnail.jpeg"
3181
+ // }
3182
+ // ]
3183
+ // }
3184
+ // }
2488
3185
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ContextCard.vue?vue&type=script&lang=js&
2489
3186
 
2490
3187
 
@@ -2509,7 +3206,6 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
2509
3206
 
2510
3207
 
2511
3208
 
2512
-
2513
3209
 
2514
3210
 
2515
3211
  //
@@ -2632,6 +3328,8 @@ external_vue_default.a.use(input_default.a);
2632
3328
  removeDoubleFilesPath: function removeDoubleFilesPath(path) {
2633
3329
  if (path.includes('files/')) {
2634
3330
  return path.replace('files/', '');
3331
+ } else if (path.includes('files\\')) {
3332
+ return path.replace('files\\', '');
2635
3333
  } else {
2636
3334
  return path;
2637
3335
  }
@@ -2657,7 +3355,7 @@ external_vue_default.a.use(input_default.a);
2657
3355
  },
2658
3356
  openViewFile: function openViewFile(view) {
2659
3357
  // note that we assume that the view file is in the same directory as the scaffold (viewUrls take relative paths)
2660
- this.entry.viewUrl = view.path.split('/')[view.path.split('/').length - 1];
3358
+ this.entry.viewUrl = "".concat(this.entry.apiLocation, "s3-resource/").concat(this.entry.discoverId, "/").concat(this.entry.version, "/").concat(view.path);
2661
3359
  this.entry.type = 'Scaffold View';
2662
3360
  components_EventBus.$emit("PopoverActionClick", this.entry);
2663
3361
  }
@@ -2665,8 +3363,8 @@ external_vue_default.a.use(input_default.a);
2665
3363
  });
2666
3364
  // CONCATENATED MODULE: ./src/components/ContextCard.vue?vue&type=script&lang=js&
2667
3365
  /* harmony default export */ var components_ContextCardvue_type_script_lang_js_ = (ContextCardvue_type_script_lang_js_);
2668
- // EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=41eb07ec&scoped=true&lang=css&
2669
- var ContextCardvue_type_style_index_0_id_41eb07ec_scoped_true_lang_css_ = __webpack_require__("718b");
3366
+ // EXTERNAL MODULE: ./src/components/ContextCard.vue?vue&type=style&index=0&id=6cd833f3&scoped=true&lang=css&
3367
+ var ContextCardvue_type_style_index_0_id_6cd833f3_scoped_true_lang_css_ = __webpack_require__("d168");
2670
3368
 
2671
3369
  // CONCATENATED MODULE: ./src/components/ContextCard.vue
2672
3370
 
@@ -2679,11 +3377,11 @@ var ContextCardvue_type_style_index_0_id_41eb07ec_scoped_true_lang_css_ = __webp
2679
3377
 
2680
3378
  var ContextCard_component = normalizeComponent(
2681
3379
  components_ContextCardvue_type_script_lang_js_,
2682
- ContextCardvue_type_template_id_41eb07ec_scoped_true_render,
2683
- ContextCardvue_type_template_id_41eb07ec_scoped_true_staticRenderFns,
3380
+ ContextCardvue_type_template_id_6cd833f3_scoped_true_render,
3381
+ ContextCardvue_type_template_id_6cd833f3_scoped_true_staticRenderFns,
2684
3382
  false,
2685
3383
  null,
2686
- "41eb07ec",
3384
+ "6cd833f3",
2687
3385
  null
2688
3386
 
2689
3387
  )
@@ -2789,8 +3487,6 @@ function SidebarContentvue_type_script_lang_js_objectSpread(target) { for (var i
2789
3487
  //
2790
3488
  //
2791
3489
  //
2792
- //
2793
- //
2794
3490
 
2795
3491
  /* eslint-disable no-alert, no-console */
2796
3492
 
@@ -2871,10 +3567,8 @@ var initial_state = {
2871
3567
  pageModel: 1,
2872
3568
  start: 0,
2873
3569
  hasSearched: false,
2874
- sciCrunchError: false,
2875
3570
  contextCardEntry: undefined,
2876
- contextCardEnabled: true,
2877
- loadingScicrunch: false
3571
+ contextCardEnabled: true
2878
3572
  };
2879
3573
  /* harmony default export */ var SidebarContentvue_type_script_lang_js_ = ({
2880
3574
  components: {
@@ -2975,15 +3669,27 @@ var initial_state = {
2975
3669
 
2976
3670
  var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
2977
3671
  // Algolia search
3672
+ this.loadingCards = true;
2978
3673
  this.algoliaClient.search(getFilters(filters), query, this.numberPerPage, this.page).then(function (searchData) {
2979
3674
  _this.numberOfHits = searchData.total;
2980
3675
  _this.discoverIds = searchData.discoverIds;
2981
- _this.dois = searchData.dois;
3676
+ _this._dois = searchData.dois;
2982
3677
  _this.results = searchData.items;
2983
3678
  _this.loadingCards = false;
2984
3679
 
2985
- _this.searchSciCrunch({
2986
- 'dois': _this.dois
3680
+ _this.scrollToTop();
3681
+
3682
+ _this.$emit("search-changed", {
3683
+ value: _this.searchInput,
3684
+ type: "query-update"
3685
+ });
3686
+
3687
+ if (_this._abortController) _this._abortController.abort();
3688
+ _this._abortController = new AbortController();
3689
+ var signal = _this._abortController.signal; //Search ongoing, let the current flow progress
3690
+
3691
+ _this.perItemSearch(signal, {
3692
+ count: 0
2987
3693
  });
2988
3694
  });
2989
3695
  },
@@ -2999,32 +3705,45 @@ var initial_state = {
2999
3705
  this.page = page;
3000
3706
  this.searchAlgolia(this.filters, this.searchInput, this.numberPerPage, this.page);
3001
3707
  },
3002
- searchSciCrunch: function searchSciCrunch(params) {
3708
+ handleMissingData: function handleMissingData(doi) {
3709
+ var i = this.results.findIndex(function (res) {
3710
+ return res.doi === doi;
3711
+ });
3712
+ if (this.results[i]) this.results[i].detailsReady = true;
3713
+ },
3714
+ perItemSearch: function perItemSearch(signal, data) {
3003
3715
  var _this2 = this;
3004
3716
 
3005
- this.loadingScicrunch = true;
3006
- this.scrollToTop();
3007
- this.$emit("search-changed", {
3008
- value: this.searchInput,
3009
- type: "query-update"
3010
- });
3011
- this.callSciCrunch(this.envVars.API_LOCATION, params).then(function (result) {
3012
- //Only process if the search term is the same as the last search term.
3013
- //This avoid old search being displayed.
3014
- _this2.sciCrunchError = false;
3015
-
3016
- _this2.resultsProcessing(result);
3017
-
3018
- _this2.$refs.content.style["overflow-y"] = "scroll";
3019
- _this2.loadingCards = false;
3020
- _this2.loadingScicrunch = false;
3021
- }).catch(function (result) {
3022
- if (result.name !== 'AbortError') {
3023
- _this2.loadingCards = false;
3024
- _this2.loadingScicrunch = false;
3025
- _this2.sciCrunchError = result.message;
3717
+ //Maximum 10 downloads at once to prevent long waiting time
3718
+ //between unfinished search and new search
3719
+ var maxDownloads = 10;
3720
+
3721
+ if (maxDownloads > data.count) {
3722
+ var doi = this._dois.shift();
3723
+
3724
+ if (doi) {
3725
+ data.count++;
3726
+ this.callSciCrunch(this.envVars.API_LOCATION, {
3727
+ 'dois': [doi]
3728
+ }, signal).then(function (result) {
3729
+ if (result.numberOfHits === 0) _this2.handleMissingData(doi);else _this2.resultsProcessing(result);
3730
+ _this2.$refs.content.style["overflow-y"] = "scroll";
3731
+ data.count--; //Async::Download finished, get the next one
3732
+
3733
+ _this2.perItemSearch(signal, data);
3734
+ }).catch(function (result) {
3735
+ if (result.name !== 'AbortError') {
3736
+ _this2.handleMissingData(doi);
3737
+
3738
+ data.count--; //Async::Download not aborted, get the next one
3739
+
3740
+ _this2.perItemSearch(signal, data);
3741
+ }
3742
+ }); //Check and make another request until it gets to max downloads
3743
+
3744
+ this.perItemSearch(signal, data);
3026
3745
  }
3027
- });
3746
+ }
3028
3747
  },
3029
3748
  scrollToTop: function scrollToTop() {
3030
3749
  if (this.$refs.content) {
@@ -3061,7 +3780,9 @@ var initial_state = {
3061
3780
  numberSubjects: element.subjectSize ? parseInt(element.subjectSize) : 0,
3062
3781
  updated: element.updated[0].timestamp.split("T")[0],
3063
3782
  url: element.uri[0],
3064
- datasetId: element.identifier,
3783
+ datasetId: element.dataset_identifier,
3784
+ datasetRevision: element.dataset_revision,
3785
+ datasetVersion: element.dataset_version,
3065
3786
  organs: element.organs && element.organs.length > 0 ? _toConsumableArray(new Set(element.organs.map(function (v) {
3066
3787
  return v.name;
3067
3788
  }))) : undefined,
@@ -3069,9 +3790,17 @@ var initial_state = {
3069
3790
  return v.species ? v.species.name : null;
3070
3791
  }))) : undefined : undefined,
3071
3792
  // This processing only includes each gender once into 'sexes'
3072
- scaffolds: element['abi-scaffold-metadata-file'] ? element['abi-scaffold-metadata-file'] : undefined,
3793
+ scaffolds: element['abi-scaffold-metadata-file'],
3794
+ thumbnails: element['abi-thumbnail'] ? element['abi-thumbnail'] : element['abi-scaffold-thumbnail'],
3795
+ scaffoldViews: element['abi-scaffold-view-file'],
3796
+ videos: element.video,
3797
+ plots: element['abi-plot'],
3798
+ images: element['common-images'],
3073
3799
  contextualInformation: element['abi-contextual-information'].length > 0 ? element['abi-contextual-information'] : undefined,
3074
- simulation: element['abi-simulation-file']
3800
+ segmentation: element['mbf-segmentation'],
3801
+ simulation: element['abi-simulation-file'],
3802
+ additionalLinks: element.additionalLinks,
3803
+ detailsReady: true
3075
3804
  });
3076
3805
  external_vue_default.a.set(_this3.results, i, _this3.results[i]);
3077
3806
  });
@@ -3099,13 +3828,9 @@ var initial_state = {
3099
3828
  var _this4 = this;
3100
3829
 
3101
3830
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3831
+ var signal = arguments.length > 2 ? arguments[2] : undefined;
3102
3832
  return new Promise(function (resolve, reject) {
3103
- // the following controller will abort current search
3104
- // if a new one has been started
3105
- if (_this4._controller) _this4._controller.abort();
3106
- _this4._controller = new AbortController();
3107
- var signal = _this4._controller.signal; // Add parameters if we are sent them
3108
-
3833
+ // Add parameters if we are sent them
3109
3834
  var fullEndpoint = _this4.envVars.API_LOCATION + _this4.searchEndpoint + "?" + _this4.createfilterParams(params);
3110
3835
 
3111
3836
  fetch(fullEndpoint, {
@@ -3123,8 +3848,7 @@ var initial_state = {
3123
3848
  mounted: function mounted() {
3124
3849
  // initialise algolia
3125
3850
  this.algoliaClient = new algolia_AlgoliaClient(this.envVars.ALGOLIA_ID, this.envVars.ALGOLIA_KEY, this.envVars.PENNSIEVE_API_LOCATION);
3126
- this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX);
3127
- console.log('Algolia initialised in sidebar'); // temporarily disable flatmap search since there are no datasets
3851
+ this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX); // temporarily disable flatmap search since there are no datasets
3128
3852
 
3129
3853
  if (this.firstSearch === "Flatmap" || this.firstSearch === "flatmap") {
3130
3854
  this.openSearch(undefined, '');
@@ -3139,8 +3863,8 @@ var initial_state = {
3139
3863
  });
3140
3864
  // CONCATENATED MODULE: ./src/components/SidebarContent.vue?vue&type=script&lang=js&
3141
3865
  /* harmony default export */ var components_SidebarContentvue_type_script_lang_js_ = (SidebarContentvue_type_script_lang_js_);
3142
- // EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=2df4e2e0&scoped=true&lang=css&
3143
- var SidebarContentvue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css_ = __webpack_require__("c260");
3866
+ // EXTERNAL MODULE: ./src/components/SidebarContent.vue?vue&type=style&index=0&id=2f7fbfd0&scoped=true&lang=css&
3867
+ var SidebarContentvue_type_style_index_0_id_2f7fbfd0_scoped_true_lang_css_ = __webpack_require__("dd3e");
3144
3868
 
3145
3869
  // CONCATENATED MODULE: ./src/components/SidebarContent.vue
3146
3870
 
@@ -3153,17 +3877,17 @@ var SidebarContentvue_type_style_index_0_id_2df4e2e0_scoped_true_lang_css_ = __w
3153
3877
 
3154
3878
  var SidebarContent_component = normalizeComponent(
3155
3879
  components_SidebarContentvue_type_script_lang_js_,
3156
- SidebarContentvue_type_template_id_2df4e2e0_scoped_true_render,
3157
- SidebarContentvue_type_template_id_2df4e2e0_scoped_true_staticRenderFns,
3880
+ SidebarContentvue_type_template_id_2f7fbfd0_scoped_true_render,
3881
+ SidebarContentvue_type_template_id_2f7fbfd0_scoped_true_staticRenderFns,
3158
3882
  false,
3159
3883
  null,
3160
- "2df4e2e0",
3884
+ "2f7fbfd0",
3161
3885
  null
3162
3886
 
3163
3887
  )
3164
3888
 
3165
3889
  /* harmony default export */ var SidebarContent = (SidebarContent_component.exports);
3166
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"258ee7b8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Tabs.vue?vue&type=template&id=d68260c4&scoped=true&
3890
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65a2a86d-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Tabs.vue?vue&type=template&id=d68260c4&scoped=true&
3167
3891
  var Tabsvue_type_template_id_d68260c4_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tab-container"},_vm._l((_vm.tabTitles),function(title){return _c('div',{key:title.id,staticClass:"title"},[_c('div',{staticClass:"title-text-table",class:{ highlightText : (title.id==_vm.activeId) },on:{"click":function($event){return _vm.titleClicked(title.id)}}},[_c('div',{staticClass:"title-text"},[_vm._v(" "+_vm._s(title.title)+" ")])])])}),0)}
3168
3892
  var Tabsvue_type_template_id_d68260c4_scoped_true_staticRenderFns = []
3169
3893