@mjhls/mjh-framework 1.0.1015 → 1.0.1017-blanktagremoval
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AlgoliaSearch.js +72 -108
- package/dist/cjs/ArticleProgramLandingPage.js +2 -2
- package/dist/cjs/Auth.js +1 -1
- package/dist/cjs/AuthWrapper.js +3 -65
- package/dist/cjs/CEDeckSupabase.js +446 -0
- package/dist/cjs/Column2.js +5 -3
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/EventsDeck.js +3 -30
- package/dist/cjs/ExternalResources.js +5 -5
- package/dist/cjs/HamMagazine.js +43 -41
- package/dist/cjs/HorizontalArticleListing.js +2 -2
- package/dist/cjs/{ImageSlider-1ec0408b.js → ImageSlider-50807a77.js} +114 -159
- package/dist/cjs/IssueLanding.js +2 -2
- package/dist/cjs/LeftNav.js +14 -15
- package/dist/cjs/{MediaSeriesCard-7f8ea2ea.js → MediaSeriesCard-02a04189.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +5 -5
- package/dist/cjs/MediaSeriesLandingPaginated.js +5 -5
- package/dist/cjs/NavDvm.js +31 -29
- package/dist/cjs/{NavFooter-880e9d87.js → NavFooter-6df4a327.js} +5 -4
- package/dist/cjs/NavMagazine.js +41 -39
- package/dist/cjs/NavNative.js +46 -46
- package/dist/cjs/PartnerDetailListing.js +26 -25
- package/dist/cjs/PartnerDetailListingPaginated.js +29 -28
- package/dist/cjs/PodcastsLanding.js +3 -3
- package/dist/cjs/SideFooter.js +10 -8
- package/dist/cjs/{SocialSearchComponent-ca9c0c45.js → SocialSearchComponent-3cdae210.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +9 -9
- package/dist/cjs/TaxonomyDescription.js +2 -2
- package/dist/cjs/TemplateNormal.js +4 -4
- package/dist/cjs/{Tooltip-71754b2a.js → Tooltip-8011d690.js} +234 -257
- package/dist/cjs/VideoProgramLandingPage.js +2 -2
- package/dist/cjs/View.js +3 -3
- package/dist/cjs/{checkSisterSite-b29833b2.js → checkSisterSite-c3a4ac98.js} +1 -1
- package/dist/cjs/defineProperty-19580e93.js +71 -0
- package/dist/cjs/defineProperty-9673846a.js +34 -0
- package/dist/cjs/getRelatedArticle.js +1 -1
- package/dist/cjs/getSerializers.js +2 -2
- package/dist/cjs/getTIData.js +92 -0
- package/dist/cjs/{index-bd6c9f56.js → index-3cd60d26.js} +11 -11
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/{index-b41ea6a0.js → index-88b1d875.js} +545 -42
- package/dist/cjs/{index.esm-f59ef5b4.js → index.esm-ab909ee1.js} +9 -8
- package/dist/cjs/index.js +10 -8
- package/dist/esm/AlgoliaSearch.js +59 -95
- package/dist/esm/ArticleProgramLandingPage.js +2 -2
- package/dist/esm/Auth.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -63
- package/dist/esm/CEDeckSupabase.js +440 -0
- package/dist/esm/Column2.js +5 -3
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/EventsDeck.js +2 -29
- package/dist/esm/ExternalResources.js +5 -5
- package/dist/esm/HamMagazine.js +43 -41
- package/dist/esm/HorizontalArticleListing.js +2 -2
- package/dist/esm/{ImageSlider-83913c4c.js → ImageSlider-cdb57d30.js} +115 -160
- package/dist/esm/IssueLanding.js +2 -2
- package/dist/esm/LeftNav.js +14 -15
- package/dist/esm/{MediaSeriesCard-478f939a.js → MediaSeriesCard-5a7491a4.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +5 -5
- package/dist/esm/MediaSeriesLandingPaginated.js +5 -5
- package/dist/esm/NavDvm.js +31 -29
- package/dist/esm/{NavFooter-3272e9cd.js → NavFooter-3673bac5.js} +5 -4
- package/dist/esm/NavMagazine.js +41 -39
- package/dist/esm/NavNative.js +46 -46
- package/dist/esm/PartnerDetailListing.js +26 -25
- package/dist/esm/PartnerDetailListingPaginated.js +29 -28
- package/dist/esm/PodcastsLanding.js +3 -3
- package/dist/esm/SideFooter.js +10 -8
- package/dist/esm/{SocialSearchComponent-68d948b9.js → SocialSearchComponent-0e0af6e1.js} +1 -1
- package/dist/esm/TaxonomyCard.js +9 -9
- package/dist/esm/TaxonomyDescription.js +2 -2
- package/dist/esm/TemplateNormal.js +4 -4
- package/dist/esm/{Tooltip-8307d9d1.js → Tooltip-2cdd0895.js} +29 -52
- package/dist/esm/VideoProgramLandingPage.js +2 -2
- package/dist/esm/View.js +3 -3
- package/dist/esm/{checkSisterSite-baa4fb6b.js → checkSisterSite-a7218fda.js} +1 -1
- package/dist/esm/defineProperty-8c30428f.js +32 -0
- package/dist/esm/defineProperty-e8022d1e.js +66 -0
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getSerializers.js +2 -2
- package/dist/esm/getTIData.js +90 -0
- package/dist/esm/{index-dd204fd9.js → index-0110e48e.js} +545 -42
- package/dist/esm/{index-db3bb315.js → index-0a63f9a3.js} +11 -11
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/{index.esm-07c37a92.js → index.esm-f7316244.js} +9 -8
- package/dist/esm/index.js +10 -8
- package/package.json +3 -1
- package/dist/cjs/index-b95410f0.js +0 -54
- package/dist/esm/index-174b5baf.js +0 -52
|
@@ -42,7 +42,7 @@ import Figure$2 from 'react-bootstrap/Figure';
|
|
|
42
42
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
43
43
|
import Tooltip from 'react-bootstrap/Tooltip';
|
|
44
44
|
import Popover from 'react-bootstrap/Popover';
|
|
45
|
-
import { c as checkSisterSite } from './checkSisterSite-
|
|
45
|
+
import { c as checkSisterSite } from './checkSisterSite-a7218fda.js';
|
|
46
46
|
|
|
47
47
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
48
48
|
var pageNumber = selectedIndex + 1;
|
|
@@ -10422,6 +10422,504 @@ var BlockTable = function BlockTable(props) {
|
|
|
10422
10422
|
);
|
|
10423
10423
|
};
|
|
10424
10424
|
|
|
10425
|
+
var bibtexParse = createCommonjsModule(function (module, exports) {
|
|
10426
|
+
/* start bibtexParse 0.0.24 */
|
|
10427
|
+
|
|
10428
|
+
//Original work by Henrik Muehe (c) 2010
|
|
10429
|
+
//
|
|
10430
|
+
//CommonJS port by Mikola Lysenko 2013
|
|
10431
|
+
//
|
|
10432
|
+
//Port to Browser lib by ORCID / RCPETERS
|
|
10433
|
+
//
|
|
10434
|
+
//Issues:
|
|
10435
|
+
//no comment handling within strings
|
|
10436
|
+
//no string concatenation
|
|
10437
|
+
//no variable values yet
|
|
10438
|
+
//Grammar implemented here:
|
|
10439
|
+
//bibtex -> (string | preamble | comment | entry)*;
|
|
10440
|
+
//string -> '@STRING' '{' key_equals_value '}';
|
|
10441
|
+
//preamble -> '@PREAMBLE' '{' value '}';
|
|
10442
|
+
//comment -> '@COMMENT' '{' value '}';
|
|
10443
|
+
//entry -> '@' key '{' key ',' key_value_list '}';
|
|
10444
|
+
//key_value_list -> key_equals_value (',' key_equals_value)*;
|
|
10445
|
+
//key_equals_value -> key '=' value;
|
|
10446
|
+
//value -> value_quotes | value_braces | key;
|
|
10447
|
+
//value_quotes -> '"' .*? '"'; // not quite
|
|
10448
|
+
//value_braces -> '{' .*? '"'; // not quite
|
|
10449
|
+
(function(exports) {
|
|
10450
|
+
|
|
10451
|
+
function BibtexParser() {
|
|
10452
|
+
|
|
10453
|
+
this.months = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"];
|
|
10454
|
+
this.notKey = [',','{','}',' ','='];
|
|
10455
|
+
this.pos = 0;
|
|
10456
|
+
this.input = "";
|
|
10457
|
+
this.entries = new Array();
|
|
10458
|
+
|
|
10459
|
+
this.currentEntry = "";
|
|
10460
|
+
|
|
10461
|
+
this.setInput = function(t) {
|
|
10462
|
+
this.input = t;
|
|
10463
|
+
};
|
|
10464
|
+
|
|
10465
|
+
this.getEntries = function() {
|
|
10466
|
+
return this.entries;
|
|
10467
|
+
};
|
|
10468
|
+
|
|
10469
|
+
this.isWhitespace = function(s) {
|
|
10470
|
+
return (s == ' ' || s == '\r' || s == '\t' || s == '\n');
|
|
10471
|
+
};
|
|
10472
|
+
|
|
10473
|
+
this.match = function(s, canCommentOut) {
|
|
10474
|
+
if (canCommentOut == undefined || canCommentOut == null)
|
|
10475
|
+
canCommentOut = true;
|
|
10476
|
+
this.skipWhitespace(canCommentOut);
|
|
10477
|
+
if (this.input.substring(this.pos, this.pos + s.length) == s) {
|
|
10478
|
+
this.pos += s.length;
|
|
10479
|
+
} else {
|
|
10480
|
+
throw "Token mismatch, expected " + s + ", found "
|
|
10481
|
+
+ this.input.substring(this.pos);
|
|
10482
|
+
} this.skipWhitespace(canCommentOut);
|
|
10483
|
+
};
|
|
10484
|
+
|
|
10485
|
+
this.tryMatch = function(s, canCommentOut) {
|
|
10486
|
+
if (canCommentOut == undefined || canCommentOut == null)
|
|
10487
|
+
canCommentOut = true;
|
|
10488
|
+
this.skipWhitespace(canCommentOut);
|
|
10489
|
+
if (this.input.substring(this.pos, this.pos + s.length) == s) {
|
|
10490
|
+
return true;
|
|
10491
|
+
} else {
|
|
10492
|
+
return false;
|
|
10493
|
+
} };
|
|
10494
|
+
|
|
10495
|
+
/* when search for a match all text can be ignored, not just white space */
|
|
10496
|
+
this.matchAt = function() {
|
|
10497
|
+
while (this.input.length > this.pos && this.input[this.pos] != '@') {
|
|
10498
|
+
this.pos++;
|
|
10499
|
+
}
|
|
10500
|
+
if (this.input[this.pos] == '@') {
|
|
10501
|
+
return true;
|
|
10502
|
+
} return false;
|
|
10503
|
+
};
|
|
10504
|
+
|
|
10505
|
+
this.skipWhitespace = function(canCommentOut) {
|
|
10506
|
+
while (this.isWhitespace(this.input[this.pos])) {
|
|
10507
|
+
this.pos++;
|
|
10508
|
+
} if (this.input[this.pos] == "%" && canCommentOut == true) {
|
|
10509
|
+
while (this.input[this.pos] != "\n") {
|
|
10510
|
+
this.pos++;
|
|
10511
|
+
} this.skipWhitespace(canCommentOut);
|
|
10512
|
+
} };
|
|
10513
|
+
|
|
10514
|
+
this.value_braces = function() {
|
|
10515
|
+
var bracecount = 0;
|
|
10516
|
+
this.match("{", false);
|
|
10517
|
+
var start = this.pos;
|
|
10518
|
+
var escaped = false;
|
|
10519
|
+
while (true) {
|
|
10520
|
+
if (!escaped) {
|
|
10521
|
+
if (this.input[this.pos] == '}') {
|
|
10522
|
+
if (bracecount > 0) {
|
|
10523
|
+
bracecount--;
|
|
10524
|
+
} else {
|
|
10525
|
+
var end = this.pos;
|
|
10526
|
+
this.match("}", false);
|
|
10527
|
+
return this.input.substring(start, end);
|
|
10528
|
+
} } else if (this.input[this.pos] == '{') {
|
|
10529
|
+
bracecount++;
|
|
10530
|
+
} else if (this.pos >= this.input.length - 1) {
|
|
10531
|
+
throw "Unterminated value";
|
|
10532
|
+
} } if (this.input[this.pos] == '\\' && escaped == false)
|
|
10533
|
+
escaped = true;
|
|
10534
|
+
else
|
|
10535
|
+
escaped = false;
|
|
10536
|
+
this.pos++;
|
|
10537
|
+
} };
|
|
10538
|
+
|
|
10539
|
+
this.value_comment = function() {
|
|
10540
|
+
var str = '';
|
|
10541
|
+
var brcktCnt = 0;
|
|
10542
|
+
while (!(this.tryMatch("}", false) && brcktCnt == 0)) {
|
|
10543
|
+
str = str + this.input[this.pos];
|
|
10544
|
+
if (this.input[this.pos] == '{')
|
|
10545
|
+
brcktCnt++;
|
|
10546
|
+
if (this.input[this.pos] == '}')
|
|
10547
|
+
brcktCnt--;
|
|
10548
|
+
if (this.pos >= this.input.length - 1) {
|
|
10549
|
+
throw "Unterminated value:" + this.input.substring(start);
|
|
10550
|
+
} this.pos++;
|
|
10551
|
+
} return str;
|
|
10552
|
+
};
|
|
10553
|
+
|
|
10554
|
+
this.value_quotes = function() {
|
|
10555
|
+
this.match('"', false);
|
|
10556
|
+
var start = this.pos;
|
|
10557
|
+
var escaped = false;
|
|
10558
|
+
while (true) {
|
|
10559
|
+
if (!escaped) {
|
|
10560
|
+
if (this.input[this.pos] == '"') {
|
|
10561
|
+
var end = this.pos;
|
|
10562
|
+
this.match('"', false);
|
|
10563
|
+
return this.input.substring(start, end);
|
|
10564
|
+
} else if (this.pos >= this.input.length - 1) {
|
|
10565
|
+
throw "Unterminated value:" + this.input.substring(start);
|
|
10566
|
+
} }
|
|
10567
|
+
if (this.input[this.pos] == '\\' && escaped == false)
|
|
10568
|
+
escaped = true;
|
|
10569
|
+
else
|
|
10570
|
+
escaped = false;
|
|
10571
|
+
this.pos++;
|
|
10572
|
+
} };
|
|
10573
|
+
|
|
10574
|
+
this.single_value = function() {
|
|
10575
|
+
var start = this.pos;
|
|
10576
|
+
if (this.tryMatch("{")) {
|
|
10577
|
+
return this.value_braces();
|
|
10578
|
+
} else if (this.tryMatch('"')) {
|
|
10579
|
+
return this.value_quotes();
|
|
10580
|
+
} else {
|
|
10581
|
+
var k = this.key();
|
|
10582
|
+
if (k.match("^[0-9]+$"))
|
|
10583
|
+
return k;
|
|
10584
|
+
else if (this.months.indexOf(k.toLowerCase()) >= 0)
|
|
10585
|
+
return k.toLowerCase();
|
|
10586
|
+
else
|
|
10587
|
+
throw "Value expected:" + this.input.substring(start) + ' for key: ' + k;
|
|
10588
|
+
|
|
10589
|
+
} };
|
|
10590
|
+
|
|
10591
|
+
this.value = function() {
|
|
10592
|
+
var values = [];
|
|
10593
|
+
values.push(this.single_value());
|
|
10594
|
+
while (this.tryMatch("#")) {
|
|
10595
|
+
this.match("#");
|
|
10596
|
+
values.push(this.single_value());
|
|
10597
|
+
} return values.join("");
|
|
10598
|
+
};
|
|
10599
|
+
|
|
10600
|
+
this.key = function(optional) {
|
|
10601
|
+
var start = this.pos;
|
|
10602
|
+
while (true) {
|
|
10603
|
+
if (this.pos >= this.input.length) {
|
|
10604
|
+
throw "Runaway key";
|
|
10605
|
+
} // а-яА-Я is Cyrillic
|
|
10606
|
+
//console.log(this.input[this.pos]);
|
|
10607
|
+
if (this.notKey.indexOf(this.input[this.pos]) >= 0) {
|
|
10608
|
+
if (optional && this.input[this.pos] != ',') {
|
|
10609
|
+
this.pos = start;
|
|
10610
|
+
return null;
|
|
10611
|
+
} return this.input.substring(start, this.pos);
|
|
10612
|
+
} else {
|
|
10613
|
+
this.pos++;
|
|
10614
|
+
|
|
10615
|
+
} } };
|
|
10616
|
+
|
|
10617
|
+
this.key_equals_value = function() {
|
|
10618
|
+
var key = this.key();
|
|
10619
|
+
if (this.tryMatch("=")) {
|
|
10620
|
+
this.match("=");
|
|
10621
|
+
var val = this.value();
|
|
10622
|
+
key = key.trim();
|
|
10623
|
+
return [ key, val ];
|
|
10624
|
+
} else {
|
|
10625
|
+
throw "... = value expected, equals sign missing:"
|
|
10626
|
+
+ this.input.substring(this.pos);
|
|
10627
|
+
} };
|
|
10628
|
+
|
|
10629
|
+
this.key_value_list = function() {
|
|
10630
|
+
var kv = this.key_equals_value();
|
|
10631
|
+
this.currentEntry['entryTags'] = {};
|
|
10632
|
+
this.currentEntry['entryTags'][kv[0]] = kv[1];
|
|
10633
|
+
while (this.tryMatch(",")) {
|
|
10634
|
+
this.match(",");
|
|
10635
|
+
// fixes problems with commas at the end of a list
|
|
10636
|
+
if (this.tryMatch("}")) {
|
|
10637
|
+
break;
|
|
10638
|
+
}
|
|
10639
|
+
kv = this.key_equals_value();
|
|
10640
|
+
this.currentEntry['entryTags'][kv[0]] = kv[1];
|
|
10641
|
+
} };
|
|
10642
|
+
|
|
10643
|
+
this.entry_body = function(d) {
|
|
10644
|
+
this.currentEntry = {};
|
|
10645
|
+
this.currentEntry['citationKey'] = this.key(true);
|
|
10646
|
+
this.currentEntry['entryType'] = d.substring(1);
|
|
10647
|
+
if (this.currentEntry['citationKey'] != null) {
|
|
10648
|
+
this.match(",");
|
|
10649
|
+
}
|
|
10650
|
+
this.key_value_list();
|
|
10651
|
+
this.entries.push(this.currentEntry);
|
|
10652
|
+
};
|
|
10653
|
+
|
|
10654
|
+
this.directive = function() {
|
|
10655
|
+
this.match("@");
|
|
10656
|
+
return "@" + this.key();
|
|
10657
|
+
};
|
|
10658
|
+
|
|
10659
|
+
this.preamble = function() {
|
|
10660
|
+
this.currentEntry = {};
|
|
10661
|
+
this.currentEntry['entryType'] = 'PREAMBLE';
|
|
10662
|
+
this.currentEntry['entry'] = this.value_comment();
|
|
10663
|
+
this.entries.push(this.currentEntry);
|
|
10664
|
+
};
|
|
10665
|
+
|
|
10666
|
+
this.comment = function() {
|
|
10667
|
+
this.currentEntry = {};
|
|
10668
|
+
this.currentEntry['entryType'] = 'COMMENT';
|
|
10669
|
+
this.currentEntry['entry'] = this.value_comment();
|
|
10670
|
+
this.entries.push(this.currentEntry);
|
|
10671
|
+
};
|
|
10672
|
+
|
|
10673
|
+
this.entry = function(d) {
|
|
10674
|
+
this.entry_body(d);
|
|
10675
|
+
};
|
|
10676
|
+
|
|
10677
|
+
this.alernativeCitationKey = function () {
|
|
10678
|
+
this.entries.forEach(function (entry) {
|
|
10679
|
+
if (!entry.citationKey && entry.entryTags) {
|
|
10680
|
+
entry.citationKey = '';
|
|
10681
|
+
if (entry.entryTags.author) {
|
|
10682
|
+
entry.citationKey += entry.entryTags.author.split(',')[0] += ', ';
|
|
10683
|
+
}
|
|
10684
|
+
entry.citationKey += entry.entryTags.year;
|
|
10685
|
+
}
|
|
10686
|
+
});
|
|
10687
|
+
};
|
|
10688
|
+
|
|
10689
|
+
this.bibtex = function() {
|
|
10690
|
+
while (this.matchAt()) {
|
|
10691
|
+
var d = this.directive();
|
|
10692
|
+
this.match("{");
|
|
10693
|
+
if (d.toUpperCase() == "@STRING") {
|
|
10694
|
+
this.string();
|
|
10695
|
+
} else if (d.toUpperCase() == "@PREAMBLE") {
|
|
10696
|
+
this.preamble();
|
|
10697
|
+
} else if (d.toUpperCase() == "@COMMENT") {
|
|
10698
|
+
this.comment();
|
|
10699
|
+
} else {
|
|
10700
|
+
this.entry(d);
|
|
10701
|
+
}
|
|
10702
|
+
this.match("}");
|
|
10703
|
+
}
|
|
10704
|
+
this.alernativeCitationKey();
|
|
10705
|
+
};
|
|
10706
|
+
}
|
|
10707
|
+
exports.toJSON = function(bibtex) {
|
|
10708
|
+
var b = new BibtexParser();
|
|
10709
|
+
b.setInput(bibtex);
|
|
10710
|
+
b.bibtex();
|
|
10711
|
+
return b.entries;
|
|
10712
|
+
};
|
|
10713
|
+
|
|
10714
|
+
/* added during hackathon don't hate on me */
|
|
10715
|
+
exports.toBibtex = function(json) {
|
|
10716
|
+
var out = '';
|
|
10717
|
+
for ( var i in json) {
|
|
10718
|
+
out += "@" + json[i].entryType;
|
|
10719
|
+
out += '{';
|
|
10720
|
+
if (json[i].citationKey)
|
|
10721
|
+
out += json[i].citationKey + ', ';
|
|
10722
|
+
if (json[i].entry)
|
|
10723
|
+
out += json[i].entry ;
|
|
10724
|
+
if (json[i].entryTags) {
|
|
10725
|
+
var tags = '';
|
|
10726
|
+
for (var jdx in json[i].entryTags) {
|
|
10727
|
+
if (tags.length != 0)
|
|
10728
|
+
tags += ', ';
|
|
10729
|
+
tags += jdx + '= {' + json[i].entryTags[jdx] + '}';
|
|
10730
|
+
}
|
|
10731
|
+
out += tags;
|
|
10732
|
+
}
|
|
10733
|
+
out += '}\n\n';
|
|
10734
|
+
}
|
|
10735
|
+
return out;
|
|
10736
|
+
|
|
10737
|
+
};
|
|
10738
|
+
|
|
10739
|
+
})(exports);
|
|
10740
|
+
|
|
10741
|
+
/* end bibtexParse */
|
|
10742
|
+
});
|
|
10743
|
+
|
|
10744
|
+
var References = function References(_ref) {
|
|
10745
|
+
var node = _ref.node,
|
|
10746
|
+
getSerializers = _ref.getSerializers;
|
|
10747
|
+
var referenceslist = node.referenceslist;
|
|
10748
|
+
|
|
10749
|
+
var getGoogleScholarUrl = function getGoogleScholarUrl(citationText, citationReferenceFormat) {
|
|
10750
|
+
if (citationReferenceFormat == 'Bibtex' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
|
|
10751
|
+
var url = 'https://scholar.google.com/scholar_lookup?';
|
|
10752
|
+
var bibtexJson = bibtexParse.toJSON(citationText[0].children[0].text)[0];
|
|
10753
|
+
if (bibtexJson.entryTags) {
|
|
10754
|
+
if (bibtexJson.entryTags.title) url += 'title=' + bibtexJson.entryTags.title;
|
|
10755
|
+
if (bibtexJson.entryTags.author) {
|
|
10756
|
+
bibtexJson.entryTags.author.split(',').map(function (authorName) {
|
|
10757
|
+
return url += '&author=' + authorName;
|
|
10758
|
+
});
|
|
10759
|
+
}
|
|
10760
|
+
if (bibtexJson.entryTags.year) {
|
|
10761
|
+
url += '&publication_year=' + bibtexJson.entryTags.year;
|
|
10762
|
+
}
|
|
10763
|
+
if (bibtexJson.entryTags.journal) {
|
|
10764
|
+
url += '&journal=' + bibtexJson.entryTags.journal;
|
|
10765
|
+
}
|
|
10766
|
+
if (bibtexJson.entryTags.volume) {
|
|
10767
|
+
url += '&volume=' + bibtexJson.entryTags.volume;
|
|
10768
|
+
}
|
|
10769
|
+
if (bibtexJson.entryTags.pages) {
|
|
10770
|
+
url += '&pages=' + bibtexJson.entryTags.pages.replace('--', '-');
|
|
10771
|
+
}
|
|
10772
|
+
}
|
|
10773
|
+
return url;
|
|
10774
|
+
}
|
|
10775
|
+
};
|
|
10776
|
+
var getPubmedUrl = function getPubmedUrl(citationText, citationReferenceFormat) {
|
|
10777
|
+
if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
|
|
10778
|
+
return citationText[0].children[0].text;
|
|
10779
|
+
}
|
|
10780
|
+
};
|
|
10781
|
+
var getCrossrefUrl = function getCrossrefUrl(citationText, citationReferenceFormat) {
|
|
10782
|
+
if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
|
|
10783
|
+
if (citationText[0].children[0].text.includes('dx.doi.org')) {
|
|
10784
|
+
return citationText[0].children[0].text;
|
|
10785
|
+
} else {
|
|
10786
|
+
return 'http://dx.doi.org/' + citationText[0].children[0].text;
|
|
10787
|
+
}
|
|
10788
|
+
}
|
|
10789
|
+
};
|
|
10790
|
+
return React__default.createElement(
|
|
10791
|
+
'div',
|
|
10792
|
+
{ className: 'references-list' },
|
|
10793
|
+
React__default.createElement(
|
|
10794
|
+
Head,
|
|
10795
|
+
null,
|
|
10796
|
+
React__default.createElement('script', { src: 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js' }),
|
|
10797
|
+
React__default.createElement('script', { src: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js' })
|
|
10798
|
+
),
|
|
10799
|
+
React__default.createElement(
|
|
10800
|
+
'p',
|
|
10801
|
+
{ className: 'reference-title' },
|
|
10802
|
+
React__default.createElement(
|
|
10803
|
+
'strong',
|
|
10804
|
+
null,
|
|
10805
|
+
'REFERENCES'
|
|
10806
|
+
)
|
|
10807
|
+
),
|
|
10808
|
+
referenceslist && referenceslist.map(function (reference, ref_index) {
|
|
10809
|
+
return React__default.createElement(
|
|
10810
|
+
'div',
|
|
10811
|
+
{ key: reference._key, id: reference.referenceID.replace('#', '') + '__container', className: 'reference-container' },
|
|
10812
|
+
React__default.createElement(
|
|
10813
|
+
'div',
|
|
10814
|
+
{ className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
|
|
10815
|
+
React__default.createElement(
|
|
10816
|
+
'span',
|
|
10817
|
+
null,
|
|
10818
|
+
ref_index + 1,
|
|
10819
|
+
'.\xA0'
|
|
10820
|
+
),
|
|
10821
|
+
React__default.createElement(BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
|
|
10822
|
+
),
|
|
10823
|
+
reference.citations && reference.citations.length > 0 && React__default.createElement(
|
|
10824
|
+
'div',
|
|
10825
|
+
{ className: 'row citations-container ml-3 mr-3 mb-2' },
|
|
10826
|
+
reference.citations.map(function (citation, cit_index) {
|
|
10827
|
+
return React__default.createElement(
|
|
10828
|
+
'div',
|
|
10829
|
+
{ key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
|
|
10830
|
+
citation.citationName === 'googleScholar' ? React__default.createElement(
|
|
10831
|
+
'a',
|
|
10832
|
+
{ target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10833
|
+
'Google Scholar'
|
|
10834
|
+
) : citation.citationName === 'pubMed' ? React__default.createElement(
|
|
10835
|
+
'a',
|
|
10836
|
+
{ target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10837
|
+
'PubMed'
|
|
10838
|
+
) : React__default.createElement(
|
|
10839
|
+
'a',
|
|
10840
|
+
{ target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10841
|
+
'Crossref'
|
|
10842
|
+
)
|
|
10843
|
+
);
|
|
10844
|
+
})
|
|
10845
|
+
),
|
|
10846
|
+
React__default.createElement(
|
|
10847
|
+
'div',
|
|
10848
|
+
{
|
|
10849
|
+
className: 'modal fade',
|
|
10850
|
+
id: '' + reference.referenceID.replace('#', ''),
|
|
10851
|
+
tabindex: '-1',
|
|
10852
|
+
role: 'dialog',
|
|
10853
|
+
'aria-labelledby': 'reference-modal-' + reference.referenceID.replace('#', ''),
|
|
10854
|
+
'aria-hidden': 'true' },
|
|
10855
|
+
React__default.createElement(
|
|
10856
|
+
'div',
|
|
10857
|
+
{ className: 'modal-dialog modal-dialog-centered', role: 'document' },
|
|
10858
|
+
React__default.createElement(
|
|
10859
|
+
'div',
|
|
10860
|
+
{ className: 'modal-content' },
|
|
10861
|
+
React__default.createElement(
|
|
10862
|
+
'div',
|
|
10863
|
+
{ className: 'modal-body' },
|
|
10864
|
+
React__default.createElement(
|
|
10865
|
+
'button',
|
|
10866
|
+
{ type: 'button', className: 'close', 'data-dismiss': 'modal', 'aria-label': 'Close' },
|
|
10867
|
+
React__default.createElement(
|
|
10868
|
+
'span',
|
|
10869
|
+
{ 'aria-hidden': 'true' },
|
|
10870
|
+
'\xD7'
|
|
10871
|
+
)
|
|
10872
|
+
),
|
|
10873
|
+
React__default.createElement(
|
|
10874
|
+
'div',
|
|
10875
|
+
{ className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
|
|
10876
|
+
React__default.createElement(
|
|
10877
|
+
'span',
|
|
10878
|
+
null,
|
|
10879
|
+
ref_index + 1,
|
|
10880
|
+
'.\xA0'
|
|
10881
|
+
),
|
|
10882
|
+
React__default.createElement(BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
|
|
10883
|
+
),
|
|
10884
|
+
reference.citations && reference.citations.length > 0 && React__default.createElement(
|
|
10885
|
+
'div',
|
|
10886
|
+
{ className: 'row citations-container ml-3 mr-3 mb-2' },
|
|
10887
|
+
reference.citations.map(function (citation, cit_index) {
|
|
10888
|
+
return React__default.createElement(
|
|
10889
|
+
'div',
|
|
10890
|
+
{ key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
|
|
10891
|
+
citation.citationName === 'googleScholar' ? React__default.createElement(
|
|
10892
|
+
'a',
|
|
10893
|
+
{ target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10894
|
+
'Google Scholar'
|
|
10895
|
+
) : citation.citationName === 'pubMed' ? React__default.createElement(
|
|
10896
|
+
'a',
|
|
10897
|
+
{ target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10898
|
+
'PubMed'
|
|
10899
|
+
) : React__default.createElement(
|
|
10900
|
+
'a',
|
|
10901
|
+
{ target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10902
|
+
'Crossref'
|
|
10903
|
+
)
|
|
10904
|
+
);
|
|
10905
|
+
})
|
|
10906
|
+
)
|
|
10907
|
+
)
|
|
10908
|
+
)
|
|
10909
|
+
)
|
|
10910
|
+
)
|
|
10911
|
+
);
|
|
10912
|
+
}),
|
|
10913
|
+
React__default.createElement(
|
|
10914
|
+
'style',
|
|
10915
|
+
{ jsx: 'true' },
|
|
10916
|
+
'\n .reference-details p {\n margin-bottom: 0.5rem;\n }\n .citation-link a {\n text-decoration: none;\n color: var(--primary);\n padding: 0.25rem 0.5rem;\n }\n .citation-link a:hover {\n color: #ffffff;\n background-color: var(--primary);\n border-radius: 15px;\n }\n '
|
|
10917
|
+
)
|
|
10918
|
+
);
|
|
10919
|
+
};
|
|
10920
|
+
|
|
10921
|
+
var References$1 = React__default.memo(References);
|
|
10922
|
+
|
|
10425
10923
|
var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
10426
10924
|
var _props$node = props.node,
|
|
10427
10925
|
FormID = _props$node.FormID;
|
|
@@ -10606,52 +11104,57 @@ var getSerializers = function getSerializers() {
|
|
|
10606
11104
|
|
|
10607
11105
|
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10608
11106
|
},
|
|
10609
|
-
|
|
11107
|
+
referencesList: function referencesList(_ref6) {
|
|
10610
11108
|
var node = _ref6.node;
|
|
11109
|
+
|
|
11110
|
+
return React__default.createElement(References$1, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
11111
|
+
},
|
|
11112
|
+
slideshow: function slideshow(_ref7) {
|
|
11113
|
+
var node = _ref7.node;
|
|
10611
11114
|
var slides = node.slides;
|
|
10612
11115
|
|
|
10613
11116
|
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
10614
11117
|
},
|
|
10615
|
-
sidebar: function sidebar(
|
|
10616
|
-
var node =
|
|
11118
|
+
sidebar: function sidebar(_ref8) {
|
|
11119
|
+
var node = _ref8.node;
|
|
10617
11120
|
var caption = node.caption,
|
|
10618
11121
|
content = node.content;
|
|
10619
11122
|
|
|
10620
11123
|
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10621
11124
|
},
|
|
10622
|
-
datatable: function datatable(
|
|
10623
|
-
var node =
|
|
11125
|
+
datatable: function datatable(_ref9) {
|
|
11126
|
+
var node = _ref9.node;
|
|
10624
11127
|
var table = node.table;
|
|
10625
11128
|
|
|
10626
11129
|
return React__default.createElement(TableShow, { rows: table.rows });
|
|
10627
11130
|
},
|
|
10628
|
-
media: function media(
|
|
10629
|
-
var node =
|
|
11131
|
+
media: function media(_ref10) {
|
|
11132
|
+
var node = _ref10.node;
|
|
10630
11133
|
|
|
10631
11134
|
return React__default.createElement(Media, { node: node, client: client });
|
|
10632
11135
|
},
|
|
10633
|
-
iframe: function iframe(
|
|
10634
|
-
var node =
|
|
11136
|
+
iframe: function iframe(_ref11) {
|
|
11137
|
+
var node = _ref11.node;
|
|
10635
11138
|
|
|
10636
11139
|
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10637
11140
|
},
|
|
10638
|
-
video: function video(
|
|
10639
|
-
var node =
|
|
11141
|
+
video: function video(_ref12) {
|
|
11142
|
+
var node = _ref12.node;
|
|
10640
11143
|
|
|
10641
11144
|
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10642
11145
|
},
|
|
10643
|
-
audio: function audio(
|
|
10644
|
-
var node =
|
|
11146
|
+
audio: function audio(_ref13) {
|
|
11147
|
+
var node = _ref13.node;
|
|
10645
11148
|
|
|
10646
11149
|
return React__default.createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
10647
11150
|
},
|
|
10648
|
-
poll: function poll(
|
|
10649
|
-
var node =
|
|
11151
|
+
poll: function poll(_ref14) {
|
|
11152
|
+
var node = _ref14.node;
|
|
10650
11153
|
|
|
10651
11154
|
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10652
11155
|
},
|
|
10653
|
-
pollMultiChoice: function pollMultiChoice(
|
|
10654
|
-
var node =
|
|
11156
|
+
pollMultiChoice: function pollMultiChoice(_ref15) {
|
|
11157
|
+
var node = _ref15.node;
|
|
10655
11158
|
|
|
10656
11159
|
return React__default.createElement(Poll, {
|
|
10657
11160
|
node: node,
|
|
@@ -10663,31 +11166,31 @@ var getSerializers = function getSerializers() {
|
|
|
10663
11166
|
getSerializers: getSerializers.apply(undefined, props)
|
|
10664
11167
|
});
|
|
10665
11168
|
},
|
|
10666
|
-
quiz: function quiz(
|
|
10667
|
-
var node =
|
|
11169
|
+
quiz: function quiz(_ref16) {
|
|
11170
|
+
var node = _ref16.node;
|
|
10668
11171
|
var quizzes = node.quizzes;
|
|
10669
11172
|
|
|
10670
11173
|
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10671
11174
|
},
|
|
10672
|
-
leads: function leads(
|
|
10673
|
-
var node =
|
|
11175
|
+
leads: function leads(_ref17) {
|
|
11176
|
+
var node = _ref17.node;
|
|
10674
11177
|
var leadID = node.leadID;
|
|
10675
11178
|
|
|
10676
11179
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10677
11180
|
return React__default.createElement(Leads, { url: url });
|
|
10678
11181
|
},
|
|
10679
|
-
slideshows: function slideshows(
|
|
10680
|
-
var node =
|
|
11182
|
+
slideshows: function slideshows(_ref18) {
|
|
11183
|
+
var node = _ref18.node;
|
|
10681
11184
|
|
|
10682
11185
|
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10683
11186
|
},
|
|
10684
|
-
nativeAd: function nativeAd(
|
|
10685
|
-
var node =
|
|
11187
|
+
nativeAd: function nativeAd(_ref19) {
|
|
11188
|
+
var node = _ref19.node;
|
|
10686
11189
|
|
|
10687
11190
|
return React__default.createElement(NativeAd, { node: node });
|
|
10688
11191
|
},
|
|
10689
|
-
html_anchor_links: function html_anchor_links(
|
|
10690
|
-
var node =
|
|
11192
|
+
html_anchor_links: function html_anchor_links(_ref20) {
|
|
11193
|
+
var node = _ref20.node;
|
|
10691
11194
|
|
|
10692
11195
|
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10693
11196
|
},
|
|
@@ -10697,8 +11200,8 @@ var getSerializers = function getSerializers() {
|
|
|
10697
11200
|
brtag: function brtag() {
|
|
10698
11201
|
return React__default.createElement('br', { className: 'line-break' });
|
|
10699
11202
|
},
|
|
10700
|
-
formstack: function formstack(
|
|
10701
|
-
var node =
|
|
11203
|
+
formstack: function formstack(_ref21) {
|
|
11204
|
+
var node = _ref21.node;
|
|
10702
11205
|
var FormID = node.FormID,
|
|
10703
11206
|
Caption = node.Caption,
|
|
10704
11207
|
needSegmentSupport = node.needSegmentSupport;
|
|
@@ -10707,13 +11210,13 @@ var getSerializers = function getSerializers() {
|
|
|
10707
11210
|
},
|
|
10708
11211
|
formassembly: FormAssembly,
|
|
10709
11212
|
digiohSmartTag: DigiohSmartTag,
|
|
10710
|
-
multimedia: function multimedia(
|
|
10711
|
-
var node =
|
|
11213
|
+
multimedia: function multimedia(_ref22) {
|
|
11214
|
+
var node = _ref22.node;
|
|
10712
11215
|
|
|
10713
11216
|
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10714
11217
|
},
|
|
10715
|
-
blockTable: function blockTable(
|
|
10716
|
-
var node =
|
|
11218
|
+
blockTable: function blockTable(_ref23) {
|
|
11219
|
+
var node = _ref23.node;
|
|
10717
11220
|
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10718
11221
|
}
|
|
10719
11222
|
},
|
|
@@ -10738,32 +11241,32 @@ var getSerializers = function getSerializers() {
|
|
|
10738
11241
|
|
|
10739
11242
|
return React__default.createElement(ExternalLink, { children: children, mark: mark, articleId: articleId });
|
|
10740
11243
|
},
|
|
10741
|
-
alignleft: function alignleft(
|
|
10742
|
-
var children =
|
|
11244
|
+
alignleft: function alignleft(_ref24) {
|
|
11245
|
+
var children = _ref24.children;
|
|
10743
11246
|
return React__default.createElement(
|
|
10744
11247
|
'div',
|
|
10745
11248
|
{ style: { textAlign: 'left' } },
|
|
10746
11249
|
children
|
|
10747
11250
|
);
|
|
10748
11251
|
},
|
|
10749
|
-
alignright: function alignright(
|
|
10750
|
-
var children =
|
|
11252
|
+
alignright: function alignright(_ref25) {
|
|
11253
|
+
var children = _ref25.children;
|
|
10751
11254
|
return React__default.createElement(
|
|
10752
11255
|
'div',
|
|
10753
11256
|
{ style: { textAlign: 'right' } },
|
|
10754
11257
|
children
|
|
10755
11258
|
);
|
|
10756
11259
|
},
|
|
10757
|
-
aligncenter: function aligncenter(
|
|
10758
|
-
var children =
|
|
11260
|
+
aligncenter: function aligncenter(_ref26) {
|
|
11261
|
+
var children = _ref26.children;
|
|
10759
11262
|
return React__default.createElement(
|
|
10760
11263
|
'div',
|
|
10761
11264
|
{ style: { textAlign: 'center' } },
|
|
10762
11265
|
children
|
|
10763
11266
|
);
|
|
10764
11267
|
},
|
|
10765
|
-
alignjustify: function alignjustify(
|
|
10766
|
-
var children =
|
|
11268
|
+
alignjustify: function alignjustify(_ref27) {
|
|
11269
|
+
var children = _ref27.children;
|
|
10767
11270
|
return React__default.createElement(
|
|
10768
11271
|
'div',
|
|
10769
11272
|
{ style: { textAlign: 'justify' } },
|