forked from IHTSDO/sct-browser-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1081 lines (1032 loc) · 70.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<title>IHTSDO SNOMED CT Browser</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="IHTSDO SNOMED CT Browser">
<meta name="author" content="IHTSDO">
<link rel="icon" type="image/png" href="favicon.png">
<script src="external-libs/jquery-2.1.0.min.js" type="text/javascript"></script>
<script src="external-libs/jquery-ui-1.10.4.custom.min.js" type="text/javascript"></script>
<script src="external-libs/base64.js" type="text/javascript"></script>
<script src="external-libs/jquery.svg.js" type="text/javascript"></script>
<script src="external-libs/jquery.splitter-0.14.0.js" type="text/javascript"></script>
<script src="external-libs/conduit.min.js" type="text/javascript"></script>
<script src="external-libs/lodash.js" type="text/javascript"></script>
<script src="external-libs/postal.min.js" type="text/javascript"></script>
<script src="external-libs/bootstrap-tour.min.js"></script>
<script src="external-libs/jquery.i18n.properties-min-1.0.9.js"></script>
<script src="external-libs/handlebars-v1.3.0.js"></script>
<script src="external-libs/bootstrap.min.js" type="text/javascript"></script>
<script src="external-libs/jquery.ui.touch-punch.min.js"></script>
<script src="external-libs/excellentexport.min.js"></script>
<script src="external-libs/notify.js"></script>
<script src="external-libs/popover-extra-placements.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/jquery.splitter.css">
<link rel="stylesheet" href="css/jquery-ui-1.10.4.custom.min.css">
<link rel="stylesheet" href="css/bootstrap.min.base.12.css">
<link rel="stylesheet" href="css/bootstrap-tour.css">
<link rel="stylesheet" href="css/popover-extra-placements.css">
<link rel="stylesheet" href="snomed-interaction-components/css/snomed-interaction-components-1.22.0.min.css">
<script src="snomed-interaction-components/js/snomed-interaction-components-1.22.0.min.js"></script>
<script type="text/javascript">
var selectedLanguage = 'en_US';
var selectedFlag = 'img/flags/us.png';
var currentPerspective = "home";
//It can be time consuming to load all the collections into mongo. If you are only loading one collection
//set it here and all GUI elements will use this collection. Used by switchReleases function
var mongoDetails = {
useMe: false,//if set to false this is ignored and normal defaults are taken, if true all the parameters are used!
database: 'test',
collection: 'concepts',
mongoRestServer: 'http://localhost:3000/snomed'
};
var options = {
serverUrl: "http://browserdata-2.ihtsdotools.org/api/snomed",
// serverUrl: "http://browser.ihtsdotools.org/api/snomed",
edition: "en-edition",
release: "v20150131",
showIds: false,
hideNotAcceptable: true,
displayInactiveDescriptions: false,
displaySynonyms: true,
selectedView: "inferred",
displayChildren: false,
langRefset: "900000000000509007",
closeButton: false,
collapseButton: false,
linkerButton: true,
subscribersMarker: true,
searchMode: "partialMatching",
searchLang: "english",
diagrammingMarkupEnabled: false,
statusSearchFilter: "activeOnly",
highlightByEffectiveTime: "false"
};
if (mongoDetails.useMe) {
options.serverUrl = mongoDetails.mongoRestServer
}
var manifests;
xhrM = $.getJSON(options.serverUrl.replace("snomed", "") + "server/releases", function (result) {
// nothing
}).done(function (result) {
manifests = result;
console.log(result);
}).fail(function(){
$.notify("Error Terminology server not accessible!", {
autoHide: false,
className: "error"
});
// alert("Error Terminolgy server not accesed");
console.log("fail Manifest");
});
$.when(xhrM).done(function(){
xhr = $.getJSON("http://multibrowser.ihtsdotools.org/api/snomed".replace("snomed", "") + "server/releases", function (result) {
// nothing
}).done(function (result) {
$.each(result, function (i, field){
manifests.push(field);
});
}).fail(function(){
$.notify("Error Terminology server not accessible!", {
autoHide: false,
className: "error"
});
// console.log("fail Manifest");
});
});
$.when(xhrM).done(function(){
xhr = $.getJSON("http://browserdata-1.ihtsdotools.org/api/snomed".replace("snomed", "") + "server/releases", function (result) {
// nothing
}).done(function (result) {
$.each(result, function (i, field){
manifests.push(field);
});
}).fail(function(){
$.notify("Error Terminology server not accessible!", {
autoHide: false,
className: "error"
});
// console.log("fail Manifest");
});
});
$.when(xhrM).done(function(){
xhr = $.getJSON("http://browser.ihtsdotools.org/api/snomed".replace("snomed", "") + "server/releases", function (result) {
// nothing
}).done(function (result) {
$.each(result, function (i, field){
manifests.push(field);
});
}).fail(function(){
$.notify("Error Terminology server not accessible!", {
autoHide: false,
className: "error"
});
// console.log("fail Manifest");
});
});
var tours = {};
var tour;
var QueryString = function () {
var query_string = {};
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (typeof query_string[pair[0]] === "undefined") {
query_string[pair[0]] = pair[1];
} else if (typeof query_string[pair[0]] === "string") {
var arr = [ query_string[pair[0]], pair[1] ];
query_string[pair[0]] = arr;
} else {
query_string[pair[0]].push(pair[1]);
}
}
return query_string;
} ();
function start() {
// Read parameters
if (typeof QueryString.dev != "undefined") {
console.log("Using Dev Server...");
//options.serverUrl = "http://107.170.33.116/api";
}
if (typeof QueryString.langRefset != "undefined") {
options.langRefset = QueryString.langRefset;
}
if (typeof QueryString.server != "undefined") {
options.serverUrl = QueryString.server + "api/snomed";
}
var edition = QueryString.edition;
if (typeof edition == "undefined" || edition == null || edition == "") {
edition = "en-edition";
}
options.edition = edition;
var release = QueryString.release;
if (typeof release == "undefined" || release == null || release == "") {
release = "v20150131";
}
options.release = release;
var diagrammingMarkupEnabled = QueryString.diagrammingMarkupEnabled;
if (typeof diagrammingMarkupEnabled == "undefined" || diagrammingMarkupEnabled == null || diagrammingMarkupEnabled == "") {
diagrammingMarkupEnabled = false;
}
options.diagrammingMarkupEnabled = diagrammingMarkupEnabled;
var langRefset = QueryString.langRefset;
if (typeof langRefset == "undefined" || langRefset == null || langRefset == "") {
langRefset = "900000000000509007";
}
options.langRefset = langRefset;
$("#editionLabel").html(edition + " " + release);
if (QueryString.ui_language == "en") {
selectedLanguage = 'en_US';
selectedFlag = 'img/flags/us.png';
} else if (QueryString.ui_language == "es") {
selectedLanguage = 'es';
selectedFlag = 'img/flags/es.png';
} else if (QueryString.ui_language == "da") {
selectedLanguage = 'da';
selectedFlag = 'img/flags/dk.png';
} else if (QueryString.ui_language == "pt") {
selectedLanguage = 'pt';
selectedFlag = 'img/flags/pt.png';
}
switchLanguage(selectedLanguage, selectedFlag, false);
var cdValue1 = QueryString.conceptId1;
if (typeof cdValue1 == "undefined" || cdValue1 == null || cdValue1 == "") {
cdValue1 = 404684003;
}
var cdValue2 = QueryString.conceptId2;
if (typeof cdValue2 == "undefined" || cdValue2 == null || cdValue2 == "") {
cdValue2 = 404684003;
}
var txValue1 = QueryString.conceptIdTx1;
if (typeof txValue1 == "undefined" || txValue1 == null || txValue1 == "") {
txValue1 = 138875005;
}
var txValue2 = QueryString.conceptIdTx2;
if (typeof txValue2 == "undefined" || txValue2 == null || txValue2 == "") {
txValue2 = 138875005;
}
var acceptLicense = QueryString.acceptLicense;
if (typeof acceptLicense == "undefined" || acceptLicense == null || acceptLicense == "") {
acceptLicense = false;
}
options.acceptLicense = (acceptLicense == "true");
if (QueryString.perspective == "home") {
initialize();
} else if (QueryString.perspective == "browsing") {
currentPerspective = "browsing";
switchToBrowsing(cdValue1,cdValue2,txValue1);
} else if (QueryString.perspective == "full") {
currentPerspective = "full";
switchToFullHeight(cdValue1,txValue1);
} else if (QueryString.perspective == "compare_concepts") {
currentPerspective = "compare_concepts";
switchToComparingConcepts(cdValue1,cdValue2);
} else if (QueryString.perspective == "compare_hierarchies") {
currentPerspective = "compare_hierarchies";
switchToComparingTaxonomies(cdValue1,txValue1,txValue2);
} else if (QueryString.perspective == "responsive") {
currentPerspective = "responsive";
switchToResponsiveLayout(cdValue1,cdValue2,txValue1)
} else {
initialize();
}
if (!options.acceptLicense) {
$('#license-modal').modal('show');
}
// verifyDate(release)
}
function initTour() {
if (typeof tours[selectedLanguage] == "undefined") {
tours[selectedLanguage] = new Tour({
steps: [
{
element: "nothing",
title: i18n_tour_step1_fh_title,
content: i18n_tour_step1_fh_text,
placement: "bottom",
orphan: true,
backdrop: false,
onShow: function (tour) { switchToFullHeight(204351007, 138875005) }
},
{
element: "#fh-tabs-pane",
title: i18n_tour_step2_title,
content: i18n_tour_step2_text,
placement: "right",
backdrop: true
},
{
element: "#fh-taxonomy_canvas-taxonomyConfigBar",
title: i18n_tour_step5_title,
content: i18n_tour_step5_text,
placement: "bottom",
backdrop: true
},
{
element: "#fh-taxonomy_canvas-treenode-404684003",
title: i18n_tour_step10_title,
content: i18n_tour_step10_text,
placement: "right",
backdrop: true
},
{
element: "#fh-taxonomy_canvas-treeicon-404684003",
title: i18n_tour_step11_title,
content: i18n_tour_step11_text,
placement: "right",
backdrop: true
},
{
element: "#fh-tabs",
title: i18n_tour_step2_5_title,
content: i18n_tour_step2_5_text,
placement: "bottom",
backdrop: true,
onNext: function (tour) { $('#fh-tabs li:eq(1) a').tab('show') }
},
{
element: "#fh-tabs-pane",
title: i18n_tour_step3_title,
content: i18n_tour_step3_text,
placement: "right",
backdrop: true
},
{
element: "#fh-search_canvas-searchConfigBar",
title: i18n_tour_step6_title,
content: i18n_tour_step6_text,
placement: "bottom",
backdrop: true
},
{
element: "#fh-search_canvas",
title: i18n_tour_step12_title,
content: i18n_tour_step12_text,
placement: "right",
backdrop: true
},
{
element: "#fh-search_canvas-historyButton",
title: i18n_tour_step13_title,
content: i18n_tour_step13_text,
placement: "left",
backdrop: true,
onNext: function (tour) { $('#fh-tabs li:eq(0) a').tab('show') }
},
{
element: "#fh-cd1_canvas",
title: i18n_tour_step4_title,
content: i18n_tour_step4_text,
placement: "left",
backdrop: true
},
{
element: "#fh-cd1_canvas-configButton",
title: i18n_tour_step7_title,
content: i18n_tour_step7_text,
placement: "left",
backdrop: true
},
/*{
element: "#fh-taxonomy_canvas-linkerButton",
title: i18n_tour_step8_title,
content: i18n_tour_step8_text,
placement: "left",
backdrop: true
},
{
element: "#bp-taxonomy_canvas-subscribersMarker",
title: i18n_tour_step9_title,
content: i18n_tour_step9_text,
placement: "right",
backdrop: true
},*/
{
element: "#details-tabs-fh-cd1_canvas",
title: i18n_tour_step13_1_title,
content: i18n_tour_step13_1_text,
placement: "bottom",
backdrop: true
},
{
element: "#fh-cd1_canvas-panelBody",
title: i18n_tour_step13_2_title,
content: i18n_tour_step13_2_text,
placement: "left",
backdrop: true,
onNext: function (tour) { $('#details-tabs-fh-cd1_canvas li:eq(1) a').tab('show') }
},
{
element: "#fh-cd1_canvas-panelBody",
title: i18n_tour_step13_3_title,
content: i18n_tour_step13_3_text,
placement: "left",
backdrop: true
},
{
element: "#fh-cd1_canvas-attributesClip",
title: i18n_tour_step14_title,
content: i18n_tour_step14_text,
placement: "left",
backdrop: true,
onNext: function (tour) { initialize() }
},
{
element: "nothing",
title: i18n_tour_step15_title,
content: i18n_tour_step15_text,
placement: "bottom",
orphan: true,
backdrop: true
}
],
storage: false,
debug: false,
template: "<div class='popover tour'><div class='arrow'></div><h3 class='popover-title'></h3><div class='popover-content'></div><div class='popover-navigation'><button class='btn btn-default' data-role='prev'>« " + i18n_tour_prev + "</button><span data-role='separator'>|</span><button class='btn btn-default' data-role='next'>" + i18n_tour_next + " »</button><button class='btn btn-default' data-role='end'>" + i18n_tour_end_tour + "</button></div></div>"
});
tour = tours[selectedLanguage];
tour.init();
} else {
tour = tours[selectedLanguage];
}
}
function tourStart() {
if (tour.ended()) {
tour.restart();
} else {
tour.start();
}
}
function initialize() {
componentsRegistry = [];
postal.unsubscribeFor();
currentPerspective = "home";
$("#welcome-perspective").css({"display":"block"});
$("#browsing-perspective").css({"display":"none"});
$("#comparing-concepts-perspective").css({"display":"none"});
$("#comparing-taxonomies-perspective").css({"display":"none"});
$("#full-height-perspective").css({"display":"none"});
$("#responsive-perspective").css({"display":"none"});
$("#perspectiveLabel").html("<em>...</em>");
$('.more-fields-button').popover('hide');
}
function switchToBrowsing(cd1Value, cd2Value, txValue1) {
currentPerspective = "browsing";
postal.unsubscribeFor();
if (typeof componentsRegistry !="undefined"){
$.each(componentsRegistry, function(i, field){
field = null;
});
componentsRegistry = [];
}
$("#welcome-perspective").css({"display":"none"});
$("#browsing-perspective").css({"display":"block"});
$("#comparing-concepts-perspective").css({"display":"none"});
$("#comparing-taxonomies-perspective").css({"display":"none"});
$("#full-height-perspective").css({"display":"none"});
$("#responsive-perspective").css({"display":"none"});
$("#perspectiveLabel").html("Browsing");
var tpt = new taxonomyPanel(document.getElementById("bp-taxonomy_canvas"), txValue1, options);
var spa = new searchPanel(document.getElementById("bp-search_canvas"), options);
var cdPanel1 = new conceptDetails(document.getElementById("bp-cd1_canvas"), cd1Value, options);
var cdPanel2 = new conceptDetails(document.getElementById("bp-cd2_canvas"), cd2Value, options);
cdPanel1.subscribe(tpt);
cdPanel1.setupCanvas();
cdPanel2.subscribe(spa);
cdPanel2.setupCanvas();
$('#spliter2').split({orientation: 'vertical', limit: 20, position: '30%'});
$('#searchDetails').split({orientation: 'horizontal', limit: 10});
$('#details').split({orientation: 'vertical', limit: 20});
$.each(componentsRegistry, function (i, field){
field.loadMarkers();
});
switchLanguage(selectedLanguage, selectedFlag, false);
}
function switchToComparingConcepts(cd1Value, cd2Value) {
currentPerspective = "compare_concepts";
postal.unsubscribeFor();
if (typeof componentsRegistry !="undefined"){
$.each(componentsRegistry, function(i, field){
field = null;
});
componentsRegistry = [];
}
$("#welcome-perspective").css({"display":"none"});
$("#browsing-perspective").css({"display":"none"});
$("#comparing-concepts-perspective").css({"display":"block"});
$("#comparing-taxonomies-perspective").css({"display":"none"});
$("#full-height-perspective").css({"display":"none"});
$("#responsive-perspective").css({"display":"none"});
$("#perspectiveLabel").html("Comparing concepts");
var spa = new searchPanel(document.getElementById("cc-search_canvas"), options);
var cdPanel1 = new conceptDetails(document.getElementById("cc-cd1_canvas"), cd1Value, options);
var cdPanel2 = new conceptDetails(document.getElementById("cc-cd2_canvas"), cd2Value, options);
cdPanel1.subscribe(spa);
cdPanel1.setupCanvas();
cdPanel2.setupCanvas();
$('#comparing-concepts-wrapper').split({orientation: 'horizontal'});
$('#comparing-concept-details').split({orientation: 'vertical'});
$.each(componentsRegistry, function (i, field){
field.loadMarkers();
});
switchLanguage(selectedLanguage, selectedFlag, false);
}
function switchToComparingTaxonomies(cd1Value, txValue1, txValue2) {
currentPerspective = "compare_hierarchies";
postal.unsubscribeFor();
if (typeof componentsRegistry !="undefined"){
$.each(componentsRegistry, function(i, field){
field = null;
});
componentsRegistry = [];
}
$("#welcome-perspective").css({"display":"none"});
$("#browsing-perspective").css({"display":"none"});
$("#comparing-concepts-perspective").css({"display":"none"});
$("#comparing-taxonomies-perspective").css({"display":"block"});
$("#full-height-perspective").css({"display":"none"});
$("#responsive-perspective").css({"display":"none"});
$("#perspectiveLabel").html("Comparing taxonomies");
var tx1 = new taxonomyPanel(document.getElementById("ct-tx1_canvas"), txValue1, options);
var tx2 = new taxonomyPanel(document.getElementById("ct-tx2_canvas"), txValue2, options);
var spa = new searchPanel(document.getElementById("ct-search_canvas"), options);
var cdPanel1 = new conceptDetails(document.getElementById("ct-cd1_canvas"), cd1Value, options);
cdPanel1.subscribe(spa);
cdPanel1.setupCanvas();
$('#comparing-taxonomies-wrapper').split({orientation: 'horizontal'});
$('#taxonomies-canvas-wrapper').split({orientation: 'vertical'});
$('#search-cd-wrapper').split({orientation: 'vertical'});
$.each(componentsRegistry, function (i, field){
field.loadMarkers();
});
switchLanguage(selectedLanguage, selectedFlag, false);
}
function switchToFullHeight(cd1Value, txValue1) {
currentPerspective = "full";
postal.unsubscribeFor();
if (typeof componentsRegistry !="undefined"){
$.each(componentsRegistry, function(i, field){
field = null;
});
componentsRegistry = [];
}
$("#welcome-perspective").css({"display":"none"});
$("#browsing-perspective").css({"display":"none"});
$("#comparing-concepts-perspective").css({"display":"none"});
$("#comparing-taxonomies-perspective").css({"display":"none"});
$("#full-height-perspective").css({"display":"block"});
$("#responsive-perspective").css({"display":"none"});
$("#perspectiveLabel").html("Full");
var fhOptions = jQuery.extend(true, {}, options);
fhOptions.subscribersMarker = false;
fhOptions.linkerButton = false;
var tpt = new taxonomyPanel(document.getElementById("fh-taxonomy_canvas"), txValue1, fhOptions);
var fav = new favoritePanel(document.getElementById("fh-favorites_canvas"), fhOptions);
var ref = new refsetPanel(document.getElementById("fh-refset_canvas"), fhOptions);
var spa = new searchPanel(document.getElementById("fh-search_canvas"), fhOptions);
var cdPanel1 = new conceptDetails(document.getElementById("fh-cd1_canvas"), cd1Value, fhOptions);
cdPanel1.subscribe(tpt);
cdPanel1.subscribe(spa);
cdPanel1.subscribe(fav);
cdPanel1.subscribe(ref);
cdPanel1.setupCanvas();
if(window.screen.width > 1500){
$('#spliter-fh').split({orientation: 'vertical', limit: 20, position: '40%'});
}else{
$('#spliter-fh').split({orientation: 'vertical', limit: 20, position: '50%'});
}
if (typeof QueryString.searchTerm != "undefined") {
$('#fh-tabs li:eq(1) a').tab('show');
searchInPanel(spa.divElement.id, decodeURI(QueryString.searchTerm));
}
$.each(componentsRegistry, function (i, field){
field.loadMarkers();
});
switchLanguage(selectedLanguage, selectedFlag, false);
}
function switchToResponsiveLayout(cd1Value, cd2Value, txValue1) {
currentPerspective = "responsive";
postal.unsubscribeFor();
if (typeof componentsRegistry !="undefined"){
$.each(componentsRegistry, function(i, field){
field = null;
});
componentsRegistry = [];
}
$("#welcome-perspective").css({"display":"none"});
$("#browsing-perspective").css({"display":"none"});
$("#comparing-concepts-perspective").css({"display":"none"});
$("#comparing-taxonomies-perspective").css({"display":"none"});
$("#full-height-perspective").css({"display":"none"});
$("#responsive-perspective").css({"display":"block"});
$("#perspectiveLabel").html("Responsive");
var tpt = new taxonomyPanel(document.getElementById("rp-taxonomy_canvas"), txValue1, options);
var spa = new searchPanel(document.getElementById("rp-search_canvas"), options);
var cdPanel1 = new conceptDetails(document.getElementById("rp-cd1_canvas"), cd1Value, options);
var cdPanel2 = new conceptDetails(document.getElementById("rp-cd2_canvas"), cd2Value, options);
cdPanel1.subscribe(tpt);
cdPanel1.setupCanvas();
cdPanel2.subscribe(spa);
cdPanel2.setupCanvas();
$('#spliter2').split({orientation: 'vertical', limit: 20, position: '30%'});
$('#searchDetails').split({orientation: 'horizontal', limit: 10});
$('#details').split({orientation: 'vertical', limit: 20});
$.each(componentsRegistry, function (i, field){
field.loadMarkers();
});
switchLanguage(selectedLanguage, selectedFlag, false);
}
function reloadCurrentPerspective() {
var cdValue1 = 404684003;
var cdValue2 = 404684003;
var txValue1 = 138875005;
var txValue2 = 138875005;
if (currentPerspective == "home") {
initialize();
} else if (currentPerspective == "browsing") {
switchToBrowsing(cdValue1,cdValue2,txValue1);
} else if (currentPerspective == "full") {
switchToFullHeight(cdValue1,txValue1);
} else if (currentPerspective == "compare_concepts") {
switchToComparingConcepts(cdValue1,cdValue2);
} else if (currentPerspective == "compare_hierarchies") {
switchToComparingTaxonomies(cdValue1,txValue1,txValue2);
} else if (currentPerspective == "responsive") {
switchToResponsiveLayout(cdValue1,cdValue2,txValue1)
} else {
currentPerspective = "home"
initialize();
}
}
function switchRelease(label, edition, release, langRefset, serverUrl) {
if (mongoDetails.useMe) {
edition = mongoDetails.database;
release = mongoDetails.collection;
serverUrl = mongoDetails.mongoRestServer;//serverUrl seems hardcoded in many places throughout the code
}
// verifyDate(release);
if (langRefset == "31000146106"){
options.hideNotAcceptable = false;
}
postal.unsubscribeFor();
if (typeof componentsRegistry !="undefined"){
$.each(componentsRegistry, function(i, field){
field = null;
});
componentsRegistry = [];
}
var i = 0;
var releaseName = release.substring(1, 9);
// console.log(releaseName);
while ( (i < manifests.length) && (manifests[i].databaseName != edition || manifests[i].effectiveTime != releaseName)) {
i++;
}
i = Math.min(i,manifests.length - 1);//fix array out of bounds causing NPE.
// console.log(manifests[i].databaseName);
// console.log(manifests[i].effectiveTime);
if (i < manifests.length){
options.manifest = manifests[i];
options.textIndexNormalized = options.manifest.textIndexNormalized;
// console.log(options.textIndexNormalized);
verifyDate(options.manifest.expirationDate);
}
options.edition = edition;
options.release = release;
options.langRefset = langRefset;
if (serverUrl){
options.serverUrl = serverUrl;
}else{
options.serverUrl = "http://browser.ihtsdotools.org/api/snomed";
// options.serverUrl = "http://browserdata-2.ihtsdotools.org/api/snomed";
}
$("#editionLabel").html(label);
}
function verifyDate(release) {
var now = new Date()
//console.log(release.substring(1, 5) + " " + release.substring(5, 7) + " " + release.substring(7, 9));
var releaseDate = new Date(release.substring(1, 5), release.substring(5, 7)-1, release.substring(7, 9));
if (releaseDate < now){
// console.log("bien");
$("#alert-section").html("");
}else{
// console.log("expirada");
var alertHtml = '<div class="alert alert-danger" id="outdated-alert">';
alertHtml = alertHtml + '<a href="#" class="close" data-dismiss="alert">×</a>';
alertHtml = alertHtml + '<strong>Warning!</strong> the release you are browsing is expired.';
alertHtml = alertHtml + '</div>';
$("#alert-section").html(alertHtml);
$("#outdated-alert").alert();
}
}
function switchLanguage(language, flagPng, fade) {
selectedLanguage = language;
selectedFlag = flagPng;
$("#nav-selected-flag").html('<img src="' + flagPng + '">');
$("#nav-selected-flag-modal").html('<img src="' + flagPng + '">');
jQuery.i18n.properties({
name:'Languages',
path:'i18n/',
mode:'both',
language:language
});
$( ".i18n" ).each(function( index ) {
var translation = jQuery.i18n.prop($(this).attr('data-i18n-id'));
if (translation != "[" + $(this).attr('data-i18n-id') + "]") {
if (fade) {
$(this).fadeOut("slow", function(){
$(this).html(translation);
$(this).fadeIn("slow");
});
} else {
$(this).html(translation);
}
} else {
console.log($(this).attr('data-i18n-id') + " = " + $(this).html());
}
});
initTour();
$("#navBarBrand").tooltip().tooltip('destroy');
$("#navBarBrand").tooltip({
placement : 'bottom',
trigger: 'hover',
title: i18n_go_back_home,
animation: true,
delay: 1000
});
}
</script>
<style>
.ribbon {
background-color: #a00;
overflow: hidden;
white-space: nowrap;
position: absolute;
left: -47px;
top: 22px;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.ribbon span {
border: 1px solid #faa;
color: #fff;
display: block;
font: bold 100% 'Helvetica Neue', Helvetica, Arial, sans-serif;
margin: 1px 0;
padding: 3px 70px;
text-align: center;
text-decoration: none;
}
.navbar-brand {
margin-top: 4px;
}
.navbar .navbar-btn {
margin-left: 10px;
}
</style>
</head>
<body onLoad="start();" style="height: 100%; display: block;">
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div>
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- <img class="pull-left " src="img/box-logo.png" style="height:50px" alt="IHTSDO delivering SNOMED, the global clinical terminology"> -->
<a class="navbar-brand" href="javascript:void(0);" onclick="initialize();" id="navBarBrand">
<strong>
IHTSDO SNOMED CT Browser</strong></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" style="padding-left: 20px; padding-right: 20px;">
<ul class="nav navbar-nav navbar-right">
<li class="navbar-btn" id="edition-selector">
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown">
<span class="i18n" data-i18n-id="i18n_release">Release</span>: <span id="editionLabel">International Edition 20150131</span> <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="javascript:void(0);" onclick="switchRelease('International Edition 20150131', 'en-edition', 'v20150131', '900000000000509007', 'http://browserdata-2.ihtsdotools.org/api/snomed');reloadCurrentPerspective();">International Edition 20150131</a></li>
<li><a href="javascript:void(0);" onclick="switchRelease('Spanish Edition 20150430', 'es-edition', 'v20150430', '450828004', 'http://multibrowser.ihtsdotools.org/api/snomed');reloadCurrentPerspective();">Spanish Edition 20150430</a></li>
<li><a href="javascript:void(0);" onclick="switchRelease('Australian Edition 20140531', 'au-edition', 'v20140531', '46011000052107', 'http://browserdata-1.ihtsdotools.org/api/snomed');reloadCurrentPerspective();">Australian Edition 20140531</a></li>
<li><a href="javascript:void(0);" onclick="switchRelease('Danish Edition 20150206', 'dk-edition', 'v20150206', '554461000005103','http://browser.ihtsdotools.org/api/snomed');reloadCurrentPerspective();">Danish Edition 20150206</a></li>
<li><a href="javascript:void(0);" onclick="switchRelease('Netherlands Edition 20150331', 'nl-edition', 'v20150331', '31000146106', 'http://multibrowser.ihtsdotools.org/api/snomed');reloadCurrentPerspective();">NL Edition 20150331</a></li>
<li><a href="javascript:void(0);" onclick="switchRelease('Swedish Edition 20141130', 'se-edition', 'v20141130', '46011000052107', 'http://browserdata-2.ihtsdotools.org/api/snomed');reloadCurrentPerspective();">Swedish Edition 20141130</a></li>
<li><a href="javascript:void(0);" onclick="switchRelease('United Kingdom Edition 20150401', 'uk-edition', 'v20150401', '999001251000000103','http://browserdata-1.ihtsdotools.org/api/snomed');reloadCurrentPerspective();">UK Edition 20150401</a></li>
<li><a href="javascript:void(0);" onclick="switchRelease('United States Edition 20150301', 'us-edition', 'v20150301', '900000000000509007', 'http://browserdata-1.ihtsdotools.org/api/snomed');reloadCurrentPerspective();">US Edition 20150301</a></li>
</ul>
</li>
<li class="navbar-btn" id="perspective-selector">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<span class="i18n" data-i18n-id="i18n_perspective">Perspective</span>: <span id="perspectiveLabel"><em>...</em></span> <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="javascript:void(0);" onclick="switchToFullHeight(404684003, 138875005);"><span class="i18n" data-i18n-id="i18n_full_perspective">Full</span></a></li>
<!-- <li><a href="javascript:void(0);" onclick="switchToBrowsing(404684003,404684003, 138875005);"><span class="i18n" data-i18n-id="i18n_browsing_perspective">Browsing</span></a></li> -->
<li><a href="javascript:void(0);" onclick="switchToComparingConcepts(404684003,404684003);"><span class="i18n" data-i18n-id="i18n_comp_concepts_perspective">Comparing concepts</span></a></li>
<li><a href="javascript:void(0);" onclick="switchToComparingTaxonomies(404684003, 138875005, 138875005);"><span class="i18n" data-i18n-id="i18n_comp_hier_perspective">Comparing hierarchy</span></a></li>
<li><a href="javascript:void(0);" onclick="switchToResponsiveLayout(404684003,404684003,138875005);"><span class="i18n" data-i18n-id="i18n_responsive_perspective">Responsive (tablets, phones)</span></a></li>
</ul>
</li>
<li class="navbar-btn feedback-button">
<button type="button" class="btn btn-info" onclick="FreshWidget.show(); return false;">
<span class="i18n" data-i18n-id="i18n_feedback">Feedback</span>
</button>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="i18n" data-i18n-id="i18n_about">Help</span> <b class="caret"></b></a>
<ul class="dropdown-menu">
<!-- <li><a href="mailto:[email protected]?subject=feedback" target="_blank"><span class="i18n" data-i18n-id="i18n_provide_feedback">Provide feedback on this browser</span></a></li> -->
<li><a href="https://github.com/IHTSDO/sct-browser-frontend" target="_blank"><span class="i18n" data-i18n-id="i18n_github">See the code on GitHub</span></a></li>
<!-- <li><a href="#">About SNOMED CT</a></li> -->
<li class="divider"></li>
<li><a href="http://www.ihtsdotools.org" target="_blank">IHTSDO Tooling</a></li>
<li><a href="http://www.ihtsdo.org" target="_blank">IHTSDO.org</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span id="nav-selected-flag"></span> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="javascript:void(0);" onclick="switchLanguage('en_US', 'img/flags/us.png', true);"><img src="img/flags/us.png"> English</a></li>
<li><a href="javascript:void(0);" onclick="switchLanguage('es', 'img/flags/es.png', true);"><img src="img/flags/es.png"> Español</a></li>
<!-- <li><a href="javascript:void(0);" onclick="switchLanguage('pt', 'img/flags/pt.png', true);"><img src="img/flags/pt.png"> Portuguese</a></li>
<li><a href="javascript:void(0);" onclick="switchLanguage('en_GB', 'img/flags/gb.png', true);"><img src="img/flags/gb.png"> English (GB)</a></li>
<li><a href="javascript:void(0);" onclick="switchLanguage('se', 'img/flags/se.png', true);"><img src="img/flags/se.png"> Swedish</a></li> -->
<li><a href="javascript:void(0);" onclick="switchLanguage('da', 'img/flags/dk.png', true);"><img src="img/flags/dk.png"> Dansk</a></li>
<li><a href="javascript:void(0);" onclick="switchLanguage('pt', 'img/flags/pt.png', true);"><img src="img/flags/pt.png"> Português</a></li>
<li class="divider"></li>
<li style="margin: 5px;"><em><span class="i18n text-muted small" data-i18n-id="i18n_translation_warning">This option only applies to the Browser. Terminology language depends on the selected edition.</span></em></li>
</ul>
</li>
<li>
<p class="pull-right"><a href="http://www.ihtsdo.org" target="_blank"><img class="pull-right visible-lg" src="img/newlogo.png" alt="IHTSDO delivering SNOMED, the global clinical terminology"></a>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div id="alert-section">
</div>
<div class="container-fluid" style="height: 100%">
<!-- Welcome Perspective -->
<div id="welcome-perspective" class="bperspective">
<div class="jumbotron">
<h1><span class="i18n" data-i18n-id="i18n_welcome_2nd">The IHTSDO SNOMED CT Browser</span></h1>
<p><span class="i18n" data-i18n-id="i18n_home1">The IHTSDO SNOMED CT Browser provides ways to browse and search SNOMED CT. The browser has been implemented as part of development within the IHTSDO Open Tooling Framework, by the IHTSDO and its development partners</span></p>
<p><span class="i18n" data-i18n-id="i18n_home5">The Browser is provided by the IHTSDO to anyone for reference purposes. There are other tools developed by IHTSDO for Members for the use in health care settings. </span></p>
<p><span class="i18n" data-i18n-id="i18n_home3">Please provide any feedback by clicking on the feedback button at the top of the page. Your feedback is essential to the evolution and improvement of this service.</span></p>
<h2><span class="i18n" data-i18n-id="i18n_international_editions">International Editions</span></h2>
<p>
<a class="btn btn-primary btn-lg" role="button" onclick="switchRelease('International Edition 20150131', 'en-edition', 'v20150131', '900000000000509007', 'http://browserdata-2.ihtsdotools.org/api/snomed');switchToFullHeight(404684003, 138875005);"><img src="img/box-logo.png" style="height:20px"> <span class="i18n"data-i18n-id="i18n_go_browsing">Go browsing...</span><br><span class="small ">International edition<br>January 2015</span></a>
<a class="btn btn-primary btn-lg" role="button" onclick="switchRelease('Spanish Edition 20150430', 'es-edition', 'v20150430', '450828004', 'http://multibrowser.ihtsdotools.org/api/snomed');switchLanguage('es', 'img/flags/es.png', true);switchToFullHeight(404684003, 138875005);"><img src="img/flags/es.png"> Ir al Navegador...</span><br><span class="small">Edición en español</span></a>
</p>
<h2><span class="i18n" data-i18n-id="i18n_local_extensions">Local Extensions</span></h2>
<p>
<a class="btn btn-primary btn-lg" role="button" onclick="switchRelease('Australian Edition 20140531', 'au-edition', 'v20140501', '32570271000036106', 'http://browserdata-1.ihtsdotools.org/api/snomed');switchLanguage('en_US', 'img/flags/us.png', true);switchToFullHeight(404684003, 138875005);"><img src="img/flags/au.png"> Go browsing...</span><br><span class="small">Australian edition</span></a>
<a class="btn btn-primary btn-lg" role="button" onclick="switchRelease('Danish Edition 20150206', 'dk-edition', 'v20150206', '554461000005103','http://browser.ihtsdotools.org/api/snomed');switchLanguage('da', 'img/flags/dk.png', true);switchToFullHeight(404684003, 138875005);"><img src="img/flags/dk.png"> Gå til browser-siden</span><br><span class="small">Danish edition</span></a>
<a class="btn btn-primary btn-lg" role="button" onclick="switchRelease('Swedish Edition 20141130', 'se-edition', 'v20141130', '46011000052107', 'http://browserdata-2.ihtsdotools.org/api/snomed');switchLanguage('en_US', 'img/flags/us.png', true);switchToFullHeight(404684003, 138875005);"><img src="img/flags/se.png"> Go browsing...</span><br><span class="small">Swedish edition</span></a>
<a class="btn btn-primary btn-lg" role="button" onclick="switchRelease('United Kingdom Edition 20150401', 'uk-edition', 'v20150401', '999001251000000103','http://browserdata-1.ihtsdotools.org/api/snomed');switchLanguage('en_US', 'img/flags/us.png', true);switchToFullHeight(404684003, 138875005);"><img src="img/flags/gb.png"> Go browsing...</span><br><span class="small">United Kingdom edition</span></a>
<a class="btn btn-primary btn-lg" role="button" onclick="switchRelease('Netherlands Edition 20150331', 'nl-edition', 'v20150331', '31000146106', 'http://multibrowser.ihtsdotools.org/api/snomed');switchLanguage('en_US', 'img/flags/us.png', true);switchToFullHeight(404684003, 138875005);"><img src="img/flags/nl.png"> Go browsing...</span><br><span class="small">Netherlands edition</span></a>
<a class="btn btn-primary btn-lg" role="button" onclick="switchRelease('United States Edition 20150301', 'us-edition', 'v20150301', '900000000000509007', 'http://browserdata-1.ihtsdotools.org/api/snomed');switchLanguage('en_US', 'img/flags/us.png', true);switchToFullHeight(404684003, 138875005);"><img src="img/flags/us.png"> Go browsing...</span><br><span class="small">United States edition</span></a>
</p>
<p>
<span class="i18n" data-i18n-id="i18n_or">or</span>
<a class="btn btn-primary " role="button" onclick="tourStart();"><span class="i18n" data-i18n-id="i18n_take_tour">take the Tour...</span></a></p>
<p><span class="i18n" data-i18n-id="i18n_home8">Many thanks to the IHTSDO Member countries who have provided their extensions in this browser. If you would like to enquire further about any of the Member country extensions in this browser, please contact the relevant National Release Center via the URL's below:</span></p>
<p class="lead">
<img src="img/flags/au.png"> <a href="http://www.nehta.gov.au" target="_blank">National E-Health Transition Authority (NEHTA), Australia</a>
<br><img src="img/flags/dk.png"> <a href="http://www.ssi.dk/English/HealthdataandICT/The%20National%20eHealth%20Authority.aspx" target="_blank">The National eHealth Authority, Denmark</a>
<br><img src="img/flags/se.png"> <a href="http://www.socialstyrelsen.se/facksprak" target="_blank">The National Board of Health and Welfare, Sweden</a>
<br><img src="img/flags/gb.png"> <a href="http://systems.hscic.gov.uk/data/uktc" target="_blank">The Health and Social Care Information Centre (HSCIC), United Kingdom</a>
<br><img src="img/flags/us.png"> <a href="http://www.nlm.nih.gov/" target="_blank">National Library of Medicine (NLM), United States</a>
</p>
<p><span class="i18n" data-i18n-id="i18n_home4">If you would like to get involved in the development, this code is available under an Apache v2 open source license. Please find more information on the <a href="http://ihtsdo.github.io/sct-browser-frontend/" target="_blank">IHTSDO Browser service page</a></span></p>
</div>
<p><span class="i18n" data-i18n-id="i18n_home6"><span class="btn-success"><em>Releases</em></span> will allow the selection of SNOMED CT content from the International Edition or other extensions, with specific dates.</span></p>
<p><span class="i18n" data-i18n-id="i18n_home7"><span class="btn-primary"><em>Perspectives</em></span> are pre-defined browsing layouts for specific purposes. Use the <a href="javascript:void(0);" onclick="switchToResponsiveLayout(404684003,404684003,138875005);">responsive perspective</a> for best results in tablets and phones.</span></p>
</div>
<!-- Browsing Perspective -->
<div id="browsing-perspective" class="bperspective">
<div id="spliter2" class="row" style="width:100%; height: 91%; position: absolute;">
<div class="a panel panel-default" style="border-radius: 0px;">
<div id="bp-taxonomy_canvas" style="padding: 0px;margin: 0;"></div>
</div>
<div class="" id="searchDetails">
<div class="row panel panel-default" style="border-radius: 0px;" >
<div class="col-md-12" id="bp-search_canvas" style="padding: 0px;margin: 0;"></div>
</div>
<div class="" id="details" >
<div class="col-md-6 panel panel-default" style="border-radius: 0px;" >
<div class="col-md-12" id="bp-cd1_canvas" style="padding: 0px;margin: 0;"></div>
</div>
<div class="col-md-6 panel panel-default" style="border-radius: 0px;" >
<div class="col-md-12" id="bp-cd2_canvas" style="padding: 0px;margin: 0;"></div>
</div>
</div>
</div>
</div>
</div>
<footer>
<p>
<small><b>© IHTSDO 2015</b></small>
</p>
</footer>
<!-- Comparing concepts -->
<div id="comparing-concepts-perspective" class="bperspective">
<div id="comparing-concepts-wrapper" class="row" style="width:100%; height: 91%; position: absolute;">
<div class="" id="comparing-concept-details" >
<div class="col-md-6" style="padding: 0px;margin: 0;">
<div class="col-md-12" id="cc-cd1_canvas" style="padding: 0px;margin: 0;"></div>
</div>
<div class="col-md-6" style="padding: 0px;margin: 0;">
<div class="col-md-12" id="cc-cd2_canvas" style="padding: 0px;margin: 0;"></div>
</div>
</div>
<div class="">
<div class="col-md-12" id="cc-search_canvas" style="padding: 0px;margin: 0;"></div>
</div>
</div>
</div>
<!-- Comparing hierarchy -->
<div id="comparing-taxonomies-perspective" class="bperspective">
<div id="comparing-taxonomies-wrapper" class="row" style="width:100%; height: 91%; position: absolute;">
<div class="" id="taxonomies-canvas-wrapper">
<div class="col-md-6" style="padding: 0px;margin: 0;">
<div class="col-md-12" id="ct-tx1_canvas" style="padding: 0px;margin: 0;"></div>
</div>
<div class="col-md-6" style="padding: 0px;margin: 0;">
<div class="col-md-12" id="ct-tx2_canvas" style="padding: 0px;margin: 0;"></div>
</div>
</div>
<div class="" id="search-cd-wrapper">
<div class="col-md-6" style="padding: 0px;margin: 0;">
<div class="col-md-12" id="ct-search_canvas" style="padding: 0px;margin: 0;"></div>
</div>
<div class="col-md-6" style="padding: 0px;margin: 0;">
<div class="col-md-12" id="ct-cd1_canvas" style="padding: 0px;margin: 0;"></div>
</div>
</div>
</div>
</div>
<!-- Full Perspective -->
<div id="full-height-perspective" class="bperspective">
<div id="spliter-fh" class="row" style="width:100%; height: 91%; position: absolute;">
<div class="a panel panel-default" id="fh-tabs-pane" style="border-radius: 0px;">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="fh-tabs">
<li class="active"><a href="#fh-taxonomy_canvas" data-toggle="tab"><span class="i18n" data-i18n-id="i18n_taxonomy">Taxonomy</span></a></li>
<li><a href="#fh-search_canvas" data-toggle="tab"><span class="i18n" data-i18n-id="i18n_search">Search</span></a></li>
<li id="fh-favorites_canvas-li"><a href="#fh-favorites_canvas" data-toggle="tab"><span class="i18n" data-i18n-id="i18n_favorites">Favorites</span></a></li>
<li id="fh-refset_canvas-li"><a href="#fh-refset_canvas" data-toggle="tab"><span class="i18n" data-i18n-id="i18n_refset">Refset</span></a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="fh-taxonomy_canvas" style="padding: 0px;margin: 0;"></div>
<div class="tab-pane" id="fh-search_canvas" style="padding: 0px;margin: 0;"></div>
<div class="tab-pane" id="fh-favorites_canvas" style="padding: 0px;margin: 0;"></div>
<div class="tab-pane" id="fh-refset_canvas" style="padding: 0px;margin: 0;"></div>
</div>
</div>
<div class="" id="conceptDetails-fh">
<div class="col-md-12" id="fh-cd1_canvas" style="padding: 0px;margin: 0;"></div>
</div>
</div>
</div>
<!-- Responsive Perspective -->
<div id="responsive-perspective" class="bperspective">
<div id="comparing-taxonomies-wrapper3" class="row" style="width:100%; height: 91%; position: absolute;padding: 0px !important;margin: 0 !important;">
<div class="row">
<div id="rp-taxonomy_canvas" class="col-sm-6" style="height: 500px;padding: 0px;margin: 0;border: 1px solid gainsboro;"></div>
<div id="rp-cd1_canvas" class="col-sm-6" style="height: 500px;padding: 0px;margin: 0;border: 1px solid gainsboro;"></div>
<div id="rp-search_canvas" class="col-sm-6" style="height: 500px;padding: 0px;margin: 0;border: 1px solid gainsboro;"></div>
<div id="rp-cd2_canvas" class="col-sm-6" style="height: 500px;padding: 0px;margin: 0;border: 1px solid gainsboro;"></div>
</div>
</div>
</div>
</div>
<!-- License agreement modal -->
<div class="modal fade" id="license-modal" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">