@mjhls/mjh-framework 1.0.965 → 1.0.966-reference-serializer-v1
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 +168 -168
- package/dist/cjs/AlgoliaSearch.js +131 -15
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +1 -2
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +1 -2
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/GridContentPaginated.js +1 -2
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +30 -30
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +9 -10
- package/dist/cjs/{MediaSeriesCard-d7a5f3c7.js → MediaSeriesCard-f50ca989.js} +2 -2
- package/dist/cjs/MediaSeriesLanding.js +7 -7
- package/dist/cjs/MediaSeriesLandingPaginated.js +8 -9
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-30bb1ca1.js +97 -0
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +2 -3
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +1 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-74546d19.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +32 -25
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-dab97fe1.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-0c7e47cd.js → index-2577ac27.js} +480 -46
- package/dist/cjs/index.js +3 -4
- package/dist/esm/AlgoliaSearch.js +132 -16
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +1 -2
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +1 -2
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/GridContentPaginated.js +1 -2
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +30 -30
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MasterDeckPaginated.js +9 -10
- package/dist/esm/{MediaSeriesCard-748d85aa.js → MediaSeriesCard-fc2023f9.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +7 -7
- package/dist/esm/MediaSeriesLandingPaginated.js +8 -9
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-194dd03f.js +90 -0
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +2 -3
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +1 -2
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-e495571f.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +32 -24
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-04d979c9.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-b5289749.js → index-efc5ef64.js} +480 -46
- package/dist/esm/index.js +3 -4
- package/package.json +117 -115
- package/dist/cjs/Pagination-c63770a3.js +0 -90
- package/dist/esm/Pagination-6f8d5327.js +0 -82
|
@@ -7483,7 +7483,9 @@ _defineProperty(ReactPlayer, "canEnablePIP", function (url) {
|
|
|
7483
7483
|
var ReactPlayer = unwrapExports(ReactPlayer_1);
|
|
7484
7484
|
|
|
7485
7485
|
var Audio = function Audio(_ref) {
|
|
7486
|
-
var node = _ref.node
|
|
7486
|
+
var node = _ref.node,
|
|
7487
|
+
_ref$audioAutoplay = _ref.audioAutoplay,
|
|
7488
|
+
audioAutoplay = _ref$audioAutoplay === undefined ? false : _ref$audioAutoplay;
|
|
7487
7489
|
|
|
7488
7490
|
if (node.uploadAudio) {
|
|
7489
7491
|
return React__default.createElement(
|
|
@@ -7491,7 +7493,7 @@ var Audio = function Audio(_ref) {
|
|
|
7491
7493
|
{ className: 'audio d-block text-center mb-3' },
|
|
7492
7494
|
React__default.createElement(
|
|
7493
7495
|
'audio',
|
|
7494
|
-
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7496
|
+
{ controls: true, controlsList: 'nodownload', className: 'audio', autoPlay: audioAutoplay },
|
|
7495
7497
|
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7496
7498
|
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7497
7499
|
'Your browser does not support the audio element.'
|
|
@@ -10317,6 +10319,433 @@ var BlockTable = function BlockTable(props) {
|
|
|
10317
10319
|
);
|
|
10318
10320
|
};
|
|
10319
10321
|
|
|
10322
|
+
var bibtexParse = createCommonjsModule(function (module, exports) {
|
|
10323
|
+
/* start bibtexParse 0.0.24 */
|
|
10324
|
+
|
|
10325
|
+
//Original work by Henrik Muehe (c) 2010
|
|
10326
|
+
//
|
|
10327
|
+
//CommonJS port by Mikola Lysenko 2013
|
|
10328
|
+
//
|
|
10329
|
+
//Port to Browser lib by ORCID / RCPETERS
|
|
10330
|
+
//
|
|
10331
|
+
//Issues:
|
|
10332
|
+
//no comment handling within strings
|
|
10333
|
+
//no string concatenation
|
|
10334
|
+
//no variable values yet
|
|
10335
|
+
//Grammar implemented here:
|
|
10336
|
+
//bibtex -> (string | preamble | comment | entry)*;
|
|
10337
|
+
//string -> '@STRING' '{' key_equals_value '}';
|
|
10338
|
+
//preamble -> '@PREAMBLE' '{' value '}';
|
|
10339
|
+
//comment -> '@COMMENT' '{' value '}';
|
|
10340
|
+
//entry -> '@' key '{' key ',' key_value_list '}';
|
|
10341
|
+
//key_value_list -> key_equals_value (',' key_equals_value)*;
|
|
10342
|
+
//key_equals_value -> key '=' value;
|
|
10343
|
+
//value -> value_quotes | value_braces | key;
|
|
10344
|
+
//value_quotes -> '"' .*? '"'; // not quite
|
|
10345
|
+
//value_braces -> '{' .*? '"'; // not quite
|
|
10346
|
+
(function(exports) {
|
|
10347
|
+
|
|
10348
|
+
function BibtexParser() {
|
|
10349
|
+
|
|
10350
|
+
this.months = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"];
|
|
10351
|
+
this.notKey = [',','{','}',' ','='];
|
|
10352
|
+
this.pos = 0;
|
|
10353
|
+
this.input = "";
|
|
10354
|
+
this.entries = new Array();
|
|
10355
|
+
|
|
10356
|
+
this.currentEntry = "";
|
|
10357
|
+
|
|
10358
|
+
this.setInput = function(t) {
|
|
10359
|
+
this.input = t;
|
|
10360
|
+
};
|
|
10361
|
+
|
|
10362
|
+
this.getEntries = function() {
|
|
10363
|
+
return this.entries;
|
|
10364
|
+
};
|
|
10365
|
+
|
|
10366
|
+
this.isWhitespace = function(s) {
|
|
10367
|
+
return (s == ' ' || s == '\r' || s == '\t' || s == '\n');
|
|
10368
|
+
};
|
|
10369
|
+
|
|
10370
|
+
this.match = function(s, canCommentOut) {
|
|
10371
|
+
if (canCommentOut == undefined || canCommentOut == null)
|
|
10372
|
+
canCommentOut = true;
|
|
10373
|
+
this.skipWhitespace(canCommentOut);
|
|
10374
|
+
if (this.input.substring(this.pos, this.pos + s.length) == s) {
|
|
10375
|
+
this.pos += s.length;
|
|
10376
|
+
} else {
|
|
10377
|
+
throw "Token mismatch, expected " + s + ", found "
|
|
10378
|
+
+ this.input.substring(this.pos);
|
|
10379
|
+
} this.skipWhitespace(canCommentOut);
|
|
10380
|
+
};
|
|
10381
|
+
|
|
10382
|
+
this.tryMatch = function(s, canCommentOut) {
|
|
10383
|
+
if (canCommentOut == undefined || canCommentOut == null)
|
|
10384
|
+
canCommentOut = true;
|
|
10385
|
+
this.skipWhitespace(canCommentOut);
|
|
10386
|
+
if (this.input.substring(this.pos, this.pos + s.length) == s) {
|
|
10387
|
+
return true;
|
|
10388
|
+
} else {
|
|
10389
|
+
return false;
|
|
10390
|
+
} };
|
|
10391
|
+
|
|
10392
|
+
/* when search for a match all text can be ignored, not just white space */
|
|
10393
|
+
this.matchAt = function() {
|
|
10394
|
+
while (this.input.length > this.pos && this.input[this.pos] != '@') {
|
|
10395
|
+
this.pos++;
|
|
10396
|
+
}
|
|
10397
|
+
if (this.input[this.pos] == '@') {
|
|
10398
|
+
return true;
|
|
10399
|
+
} return false;
|
|
10400
|
+
};
|
|
10401
|
+
|
|
10402
|
+
this.skipWhitespace = function(canCommentOut) {
|
|
10403
|
+
while (this.isWhitespace(this.input[this.pos])) {
|
|
10404
|
+
this.pos++;
|
|
10405
|
+
} if (this.input[this.pos] == "%" && canCommentOut == true) {
|
|
10406
|
+
while (this.input[this.pos] != "\n") {
|
|
10407
|
+
this.pos++;
|
|
10408
|
+
} this.skipWhitespace(canCommentOut);
|
|
10409
|
+
} };
|
|
10410
|
+
|
|
10411
|
+
this.value_braces = function() {
|
|
10412
|
+
var bracecount = 0;
|
|
10413
|
+
this.match("{", false);
|
|
10414
|
+
var start = this.pos;
|
|
10415
|
+
var escaped = false;
|
|
10416
|
+
while (true) {
|
|
10417
|
+
if (!escaped) {
|
|
10418
|
+
if (this.input[this.pos] == '}') {
|
|
10419
|
+
if (bracecount > 0) {
|
|
10420
|
+
bracecount--;
|
|
10421
|
+
} else {
|
|
10422
|
+
var end = this.pos;
|
|
10423
|
+
this.match("}", false);
|
|
10424
|
+
return this.input.substring(start, end);
|
|
10425
|
+
} } else if (this.input[this.pos] == '{') {
|
|
10426
|
+
bracecount++;
|
|
10427
|
+
} else if (this.pos >= this.input.length - 1) {
|
|
10428
|
+
throw "Unterminated value";
|
|
10429
|
+
} } if (this.input[this.pos] == '\\' && escaped == false)
|
|
10430
|
+
escaped = true;
|
|
10431
|
+
else
|
|
10432
|
+
escaped = false;
|
|
10433
|
+
this.pos++;
|
|
10434
|
+
} };
|
|
10435
|
+
|
|
10436
|
+
this.value_comment = function() {
|
|
10437
|
+
var str = '';
|
|
10438
|
+
var brcktCnt = 0;
|
|
10439
|
+
while (!(this.tryMatch("}", false) && brcktCnt == 0)) {
|
|
10440
|
+
str = str + this.input[this.pos];
|
|
10441
|
+
if (this.input[this.pos] == '{')
|
|
10442
|
+
brcktCnt++;
|
|
10443
|
+
if (this.input[this.pos] == '}')
|
|
10444
|
+
brcktCnt--;
|
|
10445
|
+
if (this.pos >= this.input.length - 1) {
|
|
10446
|
+
throw "Unterminated value:" + this.input.substring(start);
|
|
10447
|
+
} this.pos++;
|
|
10448
|
+
} return str;
|
|
10449
|
+
};
|
|
10450
|
+
|
|
10451
|
+
this.value_quotes = function() {
|
|
10452
|
+
this.match('"', false);
|
|
10453
|
+
var start = this.pos;
|
|
10454
|
+
var escaped = false;
|
|
10455
|
+
while (true) {
|
|
10456
|
+
if (!escaped) {
|
|
10457
|
+
if (this.input[this.pos] == '"') {
|
|
10458
|
+
var end = this.pos;
|
|
10459
|
+
this.match('"', false);
|
|
10460
|
+
return this.input.substring(start, end);
|
|
10461
|
+
} else if (this.pos >= this.input.length - 1) {
|
|
10462
|
+
throw "Unterminated value:" + this.input.substring(start);
|
|
10463
|
+
} }
|
|
10464
|
+
if (this.input[this.pos] == '\\' && escaped == false)
|
|
10465
|
+
escaped = true;
|
|
10466
|
+
else
|
|
10467
|
+
escaped = false;
|
|
10468
|
+
this.pos++;
|
|
10469
|
+
} };
|
|
10470
|
+
|
|
10471
|
+
this.single_value = function() {
|
|
10472
|
+
var start = this.pos;
|
|
10473
|
+
if (this.tryMatch("{")) {
|
|
10474
|
+
return this.value_braces();
|
|
10475
|
+
} else if (this.tryMatch('"')) {
|
|
10476
|
+
return this.value_quotes();
|
|
10477
|
+
} else {
|
|
10478
|
+
var k = this.key();
|
|
10479
|
+
if (k.match("^[0-9]+$"))
|
|
10480
|
+
return k;
|
|
10481
|
+
else if (this.months.indexOf(k.toLowerCase()) >= 0)
|
|
10482
|
+
return k.toLowerCase();
|
|
10483
|
+
else
|
|
10484
|
+
throw "Value expected:" + this.input.substring(start) + ' for key: ' + k;
|
|
10485
|
+
|
|
10486
|
+
} };
|
|
10487
|
+
|
|
10488
|
+
this.value = function() {
|
|
10489
|
+
var values = [];
|
|
10490
|
+
values.push(this.single_value());
|
|
10491
|
+
while (this.tryMatch("#")) {
|
|
10492
|
+
this.match("#");
|
|
10493
|
+
values.push(this.single_value());
|
|
10494
|
+
} return values.join("");
|
|
10495
|
+
};
|
|
10496
|
+
|
|
10497
|
+
this.key = function(optional) {
|
|
10498
|
+
var start = this.pos;
|
|
10499
|
+
while (true) {
|
|
10500
|
+
if (this.pos >= this.input.length) {
|
|
10501
|
+
throw "Runaway key";
|
|
10502
|
+
} // а-яА-Я is Cyrillic
|
|
10503
|
+
//console.log(this.input[this.pos]);
|
|
10504
|
+
if (this.notKey.indexOf(this.input[this.pos]) >= 0) {
|
|
10505
|
+
if (optional && this.input[this.pos] != ',') {
|
|
10506
|
+
this.pos = start;
|
|
10507
|
+
return null;
|
|
10508
|
+
} return this.input.substring(start, this.pos);
|
|
10509
|
+
} else {
|
|
10510
|
+
this.pos++;
|
|
10511
|
+
|
|
10512
|
+
} } };
|
|
10513
|
+
|
|
10514
|
+
this.key_equals_value = function() {
|
|
10515
|
+
var key = this.key();
|
|
10516
|
+
if (this.tryMatch("=")) {
|
|
10517
|
+
this.match("=");
|
|
10518
|
+
var val = this.value();
|
|
10519
|
+
key = key.trim();
|
|
10520
|
+
return [ key, val ];
|
|
10521
|
+
} else {
|
|
10522
|
+
throw "... = value expected, equals sign missing:"
|
|
10523
|
+
+ this.input.substring(this.pos);
|
|
10524
|
+
} };
|
|
10525
|
+
|
|
10526
|
+
this.key_value_list = function() {
|
|
10527
|
+
var kv = this.key_equals_value();
|
|
10528
|
+
this.currentEntry['entryTags'] = {};
|
|
10529
|
+
this.currentEntry['entryTags'][kv[0]] = kv[1];
|
|
10530
|
+
while (this.tryMatch(",")) {
|
|
10531
|
+
this.match(",");
|
|
10532
|
+
// fixes problems with commas at the end of a list
|
|
10533
|
+
if (this.tryMatch("}")) {
|
|
10534
|
+
break;
|
|
10535
|
+
}
|
|
10536
|
+
kv = this.key_equals_value();
|
|
10537
|
+
this.currentEntry['entryTags'][kv[0]] = kv[1];
|
|
10538
|
+
} };
|
|
10539
|
+
|
|
10540
|
+
this.entry_body = function(d) {
|
|
10541
|
+
this.currentEntry = {};
|
|
10542
|
+
this.currentEntry['citationKey'] = this.key(true);
|
|
10543
|
+
this.currentEntry['entryType'] = d.substring(1);
|
|
10544
|
+
if (this.currentEntry['citationKey'] != null) {
|
|
10545
|
+
this.match(",");
|
|
10546
|
+
}
|
|
10547
|
+
this.key_value_list();
|
|
10548
|
+
this.entries.push(this.currentEntry);
|
|
10549
|
+
};
|
|
10550
|
+
|
|
10551
|
+
this.directive = function() {
|
|
10552
|
+
this.match("@");
|
|
10553
|
+
return "@" + this.key();
|
|
10554
|
+
};
|
|
10555
|
+
|
|
10556
|
+
this.preamble = function() {
|
|
10557
|
+
this.currentEntry = {};
|
|
10558
|
+
this.currentEntry['entryType'] = 'PREAMBLE';
|
|
10559
|
+
this.currentEntry['entry'] = this.value_comment();
|
|
10560
|
+
this.entries.push(this.currentEntry);
|
|
10561
|
+
};
|
|
10562
|
+
|
|
10563
|
+
this.comment = function() {
|
|
10564
|
+
this.currentEntry = {};
|
|
10565
|
+
this.currentEntry['entryType'] = 'COMMENT';
|
|
10566
|
+
this.currentEntry['entry'] = this.value_comment();
|
|
10567
|
+
this.entries.push(this.currentEntry);
|
|
10568
|
+
};
|
|
10569
|
+
|
|
10570
|
+
this.entry = function(d) {
|
|
10571
|
+
this.entry_body(d);
|
|
10572
|
+
};
|
|
10573
|
+
|
|
10574
|
+
this.alernativeCitationKey = function () {
|
|
10575
|
+
this.entries.forEach(function (entry) {
|
|
10576
|
+
if (!entry.citationKey && entry.entryTags) {
|
|
10577
|
+
entry.citationKey = '';
|
|
10578
|
+
if (entry.entryTags.author) {
|
|
10579
|
+
entry.citationKey += entry.entryTags.author.split(',')[0] += ', ';
|
|
10580
|
+
}
|
|
10581
|
+
entry.citationKey += entry.entryTags.year;
|
|
10582
|
+
}
|
|
10583
|
+
});
|
|
10584
|
+
};
|
|
10585
|
+
|
|
10586
|
+
this.bibtex = function() {
|
|
10587
|
+
while (this.matchAt()) {
|
|
10588
|
+
var d = this.directive();
|
|
10589
|
+
this.match("{");
|
|
10590
|
+
if (d.toUpperCase() == "@STRING") {
|
|
10591
|
+
this.string();
|
|
10592
|
+
} else if (d.toUpperCase() == "@PREAMBLE") {
|
|
10593
|
+
this.preamble();
|
|
10594
|
+
} else if (d.toUpperCase() == "@COMMENT") {
|
|
10595
|
+
this.comment();
|
|
10596
|
+
} else {
|
|
10597
|
+
this.entry(d);
|
|
10598
|
+
}
|
|
10599
|
+
this.match("}");
|
|
10600
|
+
}
|
|
10601
|
+
this.alernativeCitationKey();
|
|
10602
|
+
};
|
|
10603
|
+
}
|
|
10604
|
+
exports.toJSON = function(bibtex) {
|
|
10605
|
+
var b = new BibtexParser();
|
|
10606
|
+
b.setInput(bibtex);
|
|
10607
|
+
b.bibtex();
|
|
10608
|
+
return b.entries;
|
|
10609
|
+
};
|
|
10610
|
+
|
|
10611
|
+
/* added during hackathon don't hate on me */
|
|
10612
|
+
exports.toBibtex = function(json) {
|
|
10613
|
+
var out = '';
|
|
10614
|
+
for ( var i in json) {
|
|
10615
|
+
out += "@" + json[i].entryType;
|
|
10616
|
+
out += '{';
|
|
10617
|
+
if (json[i].citationKey)
|
|
10618
|
+
out += json[i].citationKey + ', ';
|
|
10619
|
+
if (json[i].entry)
|
|
10620
|
+
out += json[i].entry ;
|
|
10621
|
+
if (json[i].entryTags) {
|
|
10622
|
+
var tags = '';
|
|
10623
|
+
for (var jdx in json[i].entryTags) {
|
|
10624
|
+
if (tags.length != 0)
|
|
10625
|
+
tags += ', ';
|
|
10626
|
+
tags += jdx + '= {' + json[i].entryTags[jdx] + '}';
|
|
10627
|
+
}
|
|
10628
|
+
out += tags;
|
|
10629
|
+
}
|
|
10630
|
+
out += '}\n\n';
|
|
10631
|
+
}
|
|
10632
|
+
return out;
|
|
10633
|
+
|
|
10634
|
+
};
|
|
10635
|
+
|
|
10636
|
+
})(exports);
|
|
10637
|
+
|
|
10638
|
+
/* end bibtexParse */
|
|
10639
|
+
});
|
|
10640
|
+
|
|
10641
|
+
var References = function References(_ref) {
|
|
10642
|
+
var node = _ref.node,
|
|
10643
|
+
getSerializers = _ref.getSerializers;
|
|
10644
|
+
var referenceslist = node.referenceslist;
|
|
10645
|
+
|
|
10646
|
+
var getGoogleScholarUrl = function getGoogleScholarUrl(citationText, citationReferenceFormat) {
|
|
10647
|
+
if (citationReferenceFormat == 'Bibtex' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
|
|
10648
|
+
var url = 'https://scholar.google.com/scholar_lookup?';
|
|
10649
|
+
var bibtexJson = bibtexParse.toJSON(citationText[0].children[0].text)[0];
|
|
10650
|
+
if (bibtexJson.entryTags) {
|
|
10651
|
+
if (bibtexJson.entryTags.title) url += 'title=' + bibtexJson.entryTags.title;
|
|
10652
|
+
if (bibtexJson.entryTags.author) {
|
|
10653
|
+
bibtexJson.entryTags.author.split(',').map(function (authorName) {
|
|
10654
|
+
return url += '&author=' + authorName;
|
|
10655
|
+
});
|
|
10656
|
+
}
|
|
10657
|
+
if (bibtexJson.entryTags.year) {
|
|
10658
|
+
url += '&publication_year=' + bibtexJson.entryTags.year;
|
|
10659
|
+
}
|
|
10660
|
+
if (bibtexJson.entryTags.journal) {
|
|
10661
|
+
url += '&journal=' + bibtexJson.entryTags.journal;
|
|
10662
|
+
}
|
|
10663
|
+
if (bibtexJson.entryTags.volume) {
|
|
10664
|
+
url += '&volume=' + bibtexJson.entryTags.volume;
|
|
10665
|
+
}
|
|
10666
|
+
if (bibtexJson.entryTags.pages) {
|
|
10667
|
+
url += '&pages=' + bibtexJson.entryTags.pages.replace('--', '-');
|
|
10668
|
+
}
|
|
10669
|
+
}
|
|
10670
|
+
return url;
|
|
10671
|
+
}
|
|
10672
|
+
};
|
|
10673
|
+
var getPubmedUrl = function getPubmedUrl(citationText, citationReferenceFormat) {
|
|
10674
|
+
if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
|
|
10675
|
+
return citationText[0].children[0].text;
|
|
10676
|
+
}
|
|
10677
|
+
};
|
|
10678
|
+
var getCrossrefUrl = function getCrossrefUrl(citationText, citationReferenceFormat) {
|
|
10679
|
+
if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
|
|
10680
|
+
if (citationText[0].children[0].text.includes('dx.doi.org')) {
|
|
10681
|
+
return citationText[0].children[0].text;
|
|
10682
|
+
} else {
|
|
10683
|
+
return 'http://dx.doi.org/' + citationText[0].children[0].text;
|
|
10684
|
+
}
|
|
10685
|
+
}
|
|
10686
|
+
};
|
|
10687
|
+
return React__default.createElement(
|
|
10688
|
+
'div',
|
|
10689
|
+
{ className: 'references-container' },
|
|
10690
|
+
React__default.createElement(
|
|
10691
|
+
'p',
|
|
10692
|
+
{ className: 'reference-title' },
|
|
10693
|
+
React__default.createElement(
|
|
10694
|
+
'strong',
|
|
10695
|
+
null,
|
|
10696
|
+
'REFERENCES'
|
|
10697
|
+
)
|
|
10698
|
+
),
|
|
10699
|
+
referenceslist.map(function (reference, ref_index) {
|
|
10700
|
+
return React__default.createElement(
|
|
10701
|
+
'div',
|
|
10702
|
+
{ key: reference._key, id: reference.referenceID },
|
|
10703
|
+
React__default.createElement(
|
|
10704
|
+
'div',
|
|
10705
|
+
{ style: { display: 'flex', flexDirection: 'row' } },
|
|
10706
|
+
React__default.createElement(
|
|
10707
|
+
'span',
|
|
10708
|
+
null,
|
|
10709
|
+
ref_index + 1,
|
|
10710
|
+
'. '
|
|
10711
|
+
),
|
|
10712
|
+
React__default.createElement(BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
|
|
10713
|
+
),
|
|
10714
|
+
reference.citations && reference.citations.length > 0 && React__default.createElement(
|
|
10715
|
+
'div',
|
|
10716
|
+
{ className: 'row citations-container ml-3 mr-3' },
|
|
10717
|
+
reference.citations.map(function (citation, cit_index) {
|
|
10718
|
+
return React__default.createElement(
|
|
10719
|
+
'div',
|
|
10720
|
+
{ key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
|
|
10721
|
+
citation.citationName === 'googleScholar' ? React__default.createElement(
|
|
10722
|
+
'a',
|
|
10723
|
+
{ target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10724
|
+
'Google Scholar'
|
|
10725
|
+
) : citation.citationName === 'pubMed' ? React__default.createElement(
|
|
10726
|
+
'a',
|
|
10727
|
+
{ target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10728
|
+
'PubMed'
|
|
10729
|
+
) : React__default.createElement(
|
|
10730
|
+
'a',
|
|
10731
|
+
{ target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10732
|
+
'Crossref'
|
|
10733
|
+
)
|
|
10734
|
+
);
|
|
10735
|
+
})
|
|
10736
|
+
)
|
|
10737
|
+
);
|
|
10738
|
+
}),
|
|
10739
|
+
React__default.createElement(
|
|
10740
|
+
'style',
|
|
10741
|
+
{ jsx: 'true' },
|
|
10742
|
+
'\n .citation-link a {\n text-decoration: none;\n color: var(--primary);\n padding: 0.5rem;\n }\n .citation-link a:hover {\n color: #ffffff;\n background-color: var(--primary);\n border-radius: 15px;\n }\n '
|
|
10743
|
+
)
|
|
10744
|
+
);
|
|
10745
|
+
};
|
|
10746
|
+
|
|
10747
|
+
var References$1 = React__default.memo(References);
|
|
10748
|
+
|
|
10320
10749
|
var ScrollToElement = function ScrollToElement(elementId) {
|
|
10321
10750
|
var element = document.getElementById(elementId);
|
|
10322
10751
|
if (element) {
|
|
@@ -10375,11 +10804,11 @@ var getSerializers = function getSerializers() {
|
|
|
10375
10804
|
article = props[12],
|
|
10376
10805
|
meta = props[13],
|
|
10377
10806
|
authorPrefix = props[14],
|
|
10378
|
-
authorImgHeight = props[15]
|
|
10807
|
+
authorImgHeight = props[15],
|
|
10808
|
+
audioAutoplay = props[16];
|
|
10379
10809
|
|
|
10380
10810
|
|
|
10381
10811
|
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
10382
|
-
|
|
10383
10812
|
return {
|
|
10384
10813
|
types: {
|
|
10385
10814
|
undefined: function undefined$1() {
|
|
@@ -10435,52 +10864,57 @@ var getSerializers = function getSerializers() {
|
|
|
10435
10864
|
|
|
10436
10865
|
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10437
10866
|
},
|
|
10438
|
-
|
|
10867
|
+
referencesList: function referencesList(_ref6) {
|
|
10439
10868
|
var node = _ref6.node;
|
|
10869
|
+
|
|
10870
|
+
return React__default.createElement(References$1, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10871
|
+
},
|
|
10872
|
+
slideshow: function slideshow(_ref7) {
|
|
10873
|
+
var node = _ref7.node;
|
|
10440
10874
|
var slides = node.slides;
|
|
10441
10875
|
|
|
10442
10876
|
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
10443
10877
|
},
|
|
10444
|
-
sidebar: function sidebar(
|
|
10445
|
-
var node =
|
|
10878
|
+
sidebar: function sidebar(_ref8) {
|
|
10879
|
+
var node = _ref8.node;
|
|
10446
10880
|
var caption = node.caption,
|
|
10447
10881
|
content = node.content;
|
|
10448
10882
|
|
|
10449
10883
|
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10450
10884
|
},
|
|
10451
|
-
datatable: function datatable(
|
|
10452
|
-
var node =
|
|
10885
|
+
datatable: function datatable(_ref9) {
|
|
10886
|
+
var node = _ref9.node;
|
|
10453
10887
|
var table = node.table;
|
|
10454
10888
|
|
|
10455
10889
|
return React__default.createElement(TableShow, { rows: table.rows });
|
|
10456
10890
|
},
|
|
10457
|
-
media: function media(
|
|
10458
|
-
var node =
|
|
10891
|
+
media: function media(_ref10) {
|
|
10892
|
+
var node = _ref10.node;
|
|
10459
10893
|
|
|
10460
10894
|
return React__default.createElement(Media, { node: node, client: client });
|
|
10461
10895
|
},
|
|
10462
|
-
iframe: function iframe(
|
|
10463
|
-
var node =
|
|
10896
|
+
iframe: function iframe(_ref11) {
|
|
10897
|
+
var node = _ref11.node;
|
|
10464
10898
|
|
|
10465
10899
|
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10466
10900
|
},
|
|
10467
|
-
video: function video(
|
|
10468
|
-
var node =
|
|
10901
|
+
video: function video(_ref12) {
|
|
10902
|
+
var node = _ref12.node;
|
|
10469
10903
|
|
|
10470
10904
|
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10471
10905
|
},
|
|
10472
|
-
audio: function audio(
|
|
10473
|
-
var node =
|
|
10906
|
+
audio: function audio(_ref13) {
|
|
10907
|
+
var node = _ref13.node;
|
|
10474
10908
|
|
|
10475
|
-
return React__default.createElement(Audio, { node: node });
|
|
10909
|
+
return React__default.createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
10476
10910
|
},
|
|
10477
|
-
poll: function poll(
|
|
10478
|
-
var node =
|
|
10911
|
+
poll: function poll(_ref14) {
|
|
10912
|
+
var node = _ref14.node;
|
|
10479
10913
|
|
|
10480
10914
|
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10481
10915
|
},
|
|
10482
|
-
pollMultiChoice: function pollMultiChoice(
|
|
10483
|
-
var node =
|
|
10916
|
+
pollMultiChoice: function pollMultiChoice(_ref15) {
|
|
10917
|
+
var node = _ref15.node;
|
|
10484
10918
|
|
|
10485
10919
|
return React__default.createElement(Poll, {
|
|
10486
10920
|
node: node,
|
|
@@ -10492,31 +10926,31 @@ var getSerializers = function getSerializers() {
|
|
|
10492
10926
|
getSerializers: getSerializers.apply(undefined, props)
|
|
10493
10927
|
});
|
|
10494
10928
|
},
|
|
10495
|
-
quiz: function quiz(
|
|
10496
|
-
var node =
|
|
10929
|
+
quiz: function quiz(_ref16) {
|
|
10930
|
+
var node = _ref16.node;
|
|
10497
10931
|
var quizzes = node.quizzes;
|
|
10498
10932
|
|
|
10499
10933
|
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10500
10934
|
},
|
|
10501
|
-
leads: function leads(
|
|
10502
|
-
var node =
|
|
10935
|
+
leads: function leads(_ref17) {
|
|
10936
|
+
var node = _ref17.node;
|
|
10503
10937
|
var leadID = node.leadID;
|
|
10504
10938
|
|
|
10505
10939
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10506
10940
|
return React__default.createElement(Leads, { url: url });
|
|
10507
10941
|
},
|
|
10508
|
-
slideshows: function slideshows(
|
|
10509
|
-
var node =
|
|
10942
|
+
slideshows: function slideshows(_ref18) {
|
|
10943
|
+
var node = _ref18.node;
|
|
10510
10944
|
|
|
10511
10945
|
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10512
10946
|
},
|
|
10513
|
-
nativeAd: function nativeAd(
|
|
10514
|
-
var node =
|
|
10947
|
+
nativeAd: function nativeAd(_ref19) {
|
|
10948
|
+
var node = _ref19.node;
|
|
10515
10949
|
|
|
10516
10950
|
return React__default.createElement(NativeAd, { node: node });
|
|
10517
10951
|
},
|
|
10518
|
-
html_anchor_links: function html_anchor_links(
|
|
10519
|
-
var node =
|
|
10952
|
+
html_anchor_links: function html_anchor_links(_ref20) {
|
|
10953
|
+
var node = _ref20.node;
|
|
10520
10954
|
|
|
10521
10955
|
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10522
10956
|
},
|
|
@@ -10526,8 +10960,8 @@ var getSerializers = function getSerializers() {
|
|
|
10526
10960
|
brtag: function brtag() {
|
|
10527
10961
|
return React__default.createElement('br', { className: 'line-break' });
|
|
10528
10962
|
},
|
|
10529
|
-
formstack: function formstack(
|
|
10530
|
-
var node =
|
|
10963
|
+
formstack: function formstack(_ref21) {
|
|
10964
|
+
var node = _ref21.node;
|
|
10531
10965
|
var FormID = node.FormID,
|
|
10532
10966
|
Caption = node.Caption,
|
|
10533
10967
|
needSegmentSupport = node.needSegmentSupport;
|
|
@@ -10535,13 +10969,13 @@ var getSerializers = function getSerializers() {
|
|
|
10535
10969
|
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10536
10970
|
},
|
|
10537
10971
|
formassembly: FormAssembly,
|
|
10538
|
-
multimedia: function multimedia(
|
|
10539
|
-
var node =
|
|
10972
|
+
multimedia: function multimedia(_ref22) {
|
|
10973
|
+
var node = _ref22.node;
|
|
10540
10974
|
|
|
10541
10975
|
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10542
10976
|
},
|
|
10543
|
-
blockTable: function blockTable(
|
|
10544
|
-
var node =
|
|
10977
|
+
blockTable: function blockTable(_ref23) {
|
|
10978
|
+
var node = _ref23.node;
|
|
10545
10979
|
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10546
10980
|
}
|
|
10547
10981
|
},
|
|
@@ -10587,32 +11021,32 @@ var getSerializers = function getSerializers() {
|
|
|
10587
11021
|
children
|
|
10588
11022
|
) : children;
|
|
10589
11023
|
},
|
|
10590
|
-
alignleft: function alignleft(
|
|
10591
|
-
var children =
|
|
11024
|
+
alignleft: function alignleft(_ref24) {
|
|
11025
|
+
var children = _ref24.children;
|
|
10592
11026
|
return React__default.createElement(
|
|
10593
11027
|
'div',
|
|
10594
11028
|
{ style: { textAlign: 'left' } },
|
|
10595
11029
|
children
|
|
10596
11030
|
);
|
|
10597
11031
|
},
|
|
10598
|
-
alignright: function alignright(
|
|
10599
|
-
var children =
|
|
11032
|
+
alignright: function alignright(_ref25) {
|
|
11033
|
+
var children = _ref25.children;
|
|
10600
11034
|
return React__default.createElement(
|
|
10601
11035
|
'div',
|
|
10602
11036
|
{ style: { textAlign: 'right' } },
|
|
10603
11037
|
children
|
|
10604
11038
|
);
|
|
10605
11039
|
},
|
|
10606
|
-
aligncenter: function aligncenter(
|
|
10607
|
-
var children =
|
|
11040
|
+
aligncenter: function aligncenter(_ref26) {
|
|
11041
|
+
var children = _ref26.children;
|
|
10608
11042
|
return React__default.createElement(
|
|
10609
11043
|
'div',
|
|
10610
11044
|
{ style: { textAlign: 'center' } },
|
|
10611
11045
|
children
|
|
10612
11046
|
);
|
|
10613
11047
|
},
|
|
10614
|
-
alignjustify: function alignjustify(
|
|
10615
|
-
var children =
|
|
11048
|
+
alignjustify: function alignjustify(_ref27) {
|
|
11049
|
+
var children = _ref27.children;
|
|
10616
11050
|
return React__default.createElement(
|
|
10617
11051
|
'div',
|
|
10618
11052
|
{ style: { textAlign: 'justify' } },
|
package/dist/esm/index.js
CHANGED
|
@@ -86,7 +86,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
86
86
|
export { default as YahooHero } from './YahooHero.js';
|
|
87
87
|
export { default as GridHero } from './GridHero.js';
|
|
88
88
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
89
|
-
export { g as getSerializers } from './index-
|
|
89
|
+
export { g as getSerializers } from './index-efc5ef64.js';
|
|
90
90
|
export { default as Beam } from './Beam.js';
|
|
91
91
|
export { default as Segment } from './Segment.js';
|
|
92
92
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -101,7 +101,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
|
|
|
101
101
|
export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
|
|
102
102
|
export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
|
|
103
103
|
export { default as Schema } from './Schema.js';
|
|
104
|
-
export { g as getTargeting } from './getTargeting-
|
|
104
|
+
export { g as getTargeting } from './getTargeting-04d979c9.js';
|
|
105
105
|
export { default as getKeywords } from './getKeywords.js';
|
|
106
106
|
export { default as getQuery } from './getQuery.js';
|
|
107
107
|
import './toConsumableArray-f7074d7c.js';
|
|
@@ -191,10 +191,9 @@ import 'swr';
|
|
|
191
191
|
import 'passport-local';
|
|
192
192
|
import 'mysql';
|
|
193
193
|
import './md5-4e42248e.js';
|
|
194
|
-
import './SeriesSlider-
|
|
194
|
+
import './SeriesSlider-e495571f.js';
|
|
195
195
|
import './style-inject.es-1f59c1d0.js';
|
|
196
196
|
import 'disqus-react';
|
|
197
|
-
import 'file-saver';
|
|
198
197
|
import 'react-twitter-embed';
|
|
199
198
|
import './ImageSlider-f84174cb.js';
|
|
200
199
|
import './defineProperty-23a8f8cd.js';
|