@mjhls/mjh-framework 1.0.966-reference-serializer-v2 → 1.0.966-test
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 +15 -131
- 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 +2 -1
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +2 -1
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/GridContentPaginated.js +2 -1
- 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 +10 -9
- package/dist/cjs/{MediaSeriesCard-988b53d3.js → MediaSeriesCard-4bffa27e.js} +2 -2
- package/dist/cjs/MediaSeriesLanding.js +7 -7
- package/dist/cjs/MediaSeriesLandingPaginated.js +9 -8
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-c63770a3.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +3 -2
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +2 -1
- 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-74546d19.js → SeriesSlider-594b19eb.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 +12 -16
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-3c5754ac.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-3972d55f.js → index-e8c2ed3b.js} +41 -473
- package/dist/cjs/index.js +4 -3
- package/dist/esm/AlgoliaSearch.js +16 -132
- 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 +2 -1
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +2 -1
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/GridContentPaginated.js +2 -1
- 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 +10 -9
- package/dist/esm/{MediaSeriesCard-0c8104cb.js → MediaSeriesCard-d605f453.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +7 -7
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -8
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-6f8d5327.js +82 -0
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +3 -2
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +2 -1
- 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-e495571f.js → SeriesSlider-f771e20d.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 +11 -16
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{getTargeting-04d979c9.js → getTargeting-42f9b439.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-4cef488a.js → index-cefa7325.js} +41 -473
- package/dist/esm/index.js +4 -3
- package/package.json +115 -117
- package/dist/cjs/Pagination-30bb1ca1.js +0 -97
- package/dist/esm/Pagination-194dd03f.js +0 -90
|
@@ -10319,433 +10319,6 @@ var BlockTable = function BlockTable(props) {
|
|
|
10319
10319
|
);
|
|
10320
10320
|
};
|
|
10321
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-list' },
|
|
10690
|
-
React__default.createElement(
|
|
10691
|
-
'p',
|
|
10692
|
-
{ className: 'reference-title' },
|
|
10693
|
-
React__default.createElement(
|
|
10694
|
-
'strong',
|
|
10695
|
-
null,
|
|
10696
|
-
'REFERENCES'
|
|
10697
|
-
)
|
|
10698
|
-
),
|
|
10699
|
-
referenceslist && referenceslist.map(function (reference, ref_index) {
|
|
10700
|
-
return React__default.createElement(
|
|
10701
|
-
'div',
|
|
10702
|
-
{ key: reference._key, id: reference.referenceID, className: 'reference-container' },
|
|
10703
|
-
React__default.createElement(
|
|
10704
|
-
'div',
|
|
10705
|
-
{ className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
|
|
10706
|
-
React__default.createElement(
|
|
10707
|
-
'span',
|
|
10708
|
-
null,
|
|
10709
|
-
ref_index + 1,
|
|
10710
|
-
'.\xA0'
|
|
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 mb-2' },
|
|
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 .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 '
|
|
10743
|
-
)
|
|
10744
|
-
);
|
|
10745
|
-
};
|
|
10746
|
-
|
|
10747
|
-
var References$1 = React__default.memo(References);
|
|
10748
|
-
|
|
10749
10322
|
var ScrollToElement = function ScrollToElement(elementId) {
|
|
10750
10323
|
var element = document.getElementById(elementId);
|
|
10751
10324
|
if (element) {
|
|
@@ -10864,57 +10437,52 @@ var getSerializers = function getSerializers() {
|
|
|
10864
10437
|
|
|
10865
10438
|
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10866
10439
|
},
|
|
10867
|
-
|
|
10440
|
+
slideshow: function slideshow(_ref6) {
|
|
10868
10441
|
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;
|
|
10874
10442
|
var slides = node.slides;
|
|
10875
10443
|
|
|
10876
10444
|
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
10877
10445
|
},
|
|
10878
|
-
sidebar: function sidebar(
|
|
10879
|
-
var node =
|
|
10446
|
+
sidebar: function sidebar(_ref7) {
|
|
10447
|
+
var node = _ref7.node;
|
|
10880
10448
|
var caption = node.caption,
|
|
10881
10449
|
content = node.content;
|
|
10882
10450
|
|
|
10883
10451
|
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10884
10452
|
},
|
|
10885
|
-
datatable: function datatable(
|
|
10886
|
-
var node =
|
|
10453
|
+
datatable: function datatable(_ref8) {
|
|
10454
|
+
var node = _ref8.node;
|
|
10887
10455
|
var table = node.table;
|
|
10888
10456
|
|
|
10889
10457
|
return React__default.createElement(TableShow, { rows: table.rows });
|
|
10890
10458
|
},
|
|
10891
|
-
media: function media(
|
|
10892
|
-
var node =
|
|
10459
|
+
media: function media(_ref9) {
|
|
10460
|
+
var node = _ref9.node;
|
|
10893
10461
|
|
|
10894
10462
|
return React__default.createElement(Media, { node: node, client: client });
|
|
10895
10463
|
},
|
|
10896
|
-
iframe: function iframe(
|
|
10897
|
-
var node =
|
|
10464
|
+
iframe: function iframe(_ref10) {
|
|
10465
|
+
var node = _ref10.node;
|
|
10898
10466
|
|
|
10899
10467
|
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10900
10468
|
},
|
|
10901
|
-
video: function video(
|
|
10902
|
-
var node =
|
|
10469
|
+
video: function video(_ref11) {
|
|
10470
|
+
var node = _ref11.node;
|
|
10903
10471
|
|
|
10904
10472
|
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10905
10473
|
},
|
|
10906
|
-
audio: function audio(
|
|
10907
|
-
var node =
|
|
10474
|
+
audio: function audio(_ref12) {
|
|
10475
|
+
var node = _ref12.node;
|
|
10908
10476
|
|
|
10909
10477
|
return React__default.createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
10910
10478
|
},
|
|
10911
|
-
poll: function poll(
|
|
10912
|
-
var node =
|
|
10479
|
+
poll: function poll(_ref13) {
|
|
10480
|
+
var node = _ref13.node;
|
|
10913
10481
|
|
|
10914
10482
|
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10915
10483
|
},
|
|
10916
|
-
pollMultiChoice: function pollMultiChoice(
|
|
10917
|
-
var node =
|
|
10484
|
+
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10485
|
+
var node = _ref14.node;
|
|
10918
10486
|
|
|
10919
10487
|
return React__default.createElement(Poll, {
|
|
10920
10488
|
node: node,
|
|
@@ -10926,31 +10494,31 @@ var getSerializers = function getSerializers() {
|
|
|
10926
10494
|
getSerializers: getSerializers.apply(undefined, props)
|
|
10927
10495
|
});
|
|
10928
10496
|
},
|
|
10929
|
-
quiz: function quiz(
|
|
10930
|
-
var node =
|
|
10497
|
+
quiz: function quiz(_ref15) {
|
|
10498
|
+
var node = _ref15.node;
|
|
10931
10499
|
var quizzes = node.quizzes;
|
|
10932
10500
|
|
|
10933
10501
|
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
10934
10502
|
},
|
|
10935
|
-
leads: function leads(
|
|
10936
|
-
var node =
|
|
10503
|
+
leads: function leads(_ref16) {
|
|
10504
|
+
var node = _ref16.node;
|
|
10937
10505
|
var leadID = node.leadID;
|
|
10938
10506
|
|
|
10939
10507
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10940
10508
|
return React__default.createElement(Leads, { url: url });
|
|
10941
10509
|
},
|
|
10942
|
-
slideshows: function slideshows(
|
|
10943
|
-
var node =
|
|
10510
|
+
slideshows: function slideshows(_ref17) {
|
|
10511
|
+
var node = _ref17.node;
|
|
10944
10512
|
|
|
10945
10513
|
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
10946
10514
|
},
|
|
10947
|
-
nativeAd: function nativeAd(
|
|
10948
|
-
var node =
|
|
10515
|
+
nativeAd: function nativeAd(_ref18) {
|
|
10516
|
+
var node = _ref18.node;
|
|
10949
10517
|
|
|
10950
10518
|
return React__default.createElement(NativeAd, { node: node });
|
|
10951
10519
|
},
|
|
10952
|
-
html_anchor_links: function html_anchor_links(
|
|
10953
|
-
var node =
|
|
10520
|
+
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10521
|
+
var node = _ref19.node;
|
|
10954
10522
|
|
|
10955
10523
|
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10956
10524
|
},
|
|
@@ -10960,8 +10528,8 @@ var getSerializers = function getSerializers() {
|
|
|
10960
10528
|
brtag: function brtag() {
|
|
10961
10529
|
return React__default.createElement('br', { className: 'line-break' });
|
|
10962
10530
|
},
|
|
10963
|
-
formstack: function formstack(
|
|
10964
|
-
var node =
|
|
10531
|
+
formstack: function formstack(_ref20) {
|
|
10532
|
+
var node = _ref20.node;
|
|
10965
10533
|
var FormID = node.FormID,
|
|
10966
10534
|
Caption = node.Caption,
|
|
10967
10535
|
needSegmentSupport = node.needSegmentSupport;
|
|
@@ -10969,13 +10537,13 @@ var getSerializers = function getSerializers() {
|
|
|
10969
10537
|
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10970
10538
|
},
|
|
10971
10539
|
formassembly: FormAssembly,
|
|
10972
|
-
multimedia: function multimedia(
|
|
10973
|
-
var node =
|
|
10540
|
+
multimedia: function multimedia(_ref21) {
|
|
10541
|
+
var node = _ref21.node;
|
|
10974
10542
|
|
|
10975
10543
|
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10976
10544
|
},
|
|
10977
|
-
blockTable: function blockTable(
|
|
10978
|
-
var node =
|
|
10545
|
+
blockTable: function blockTable(_ref22) {
|
|
10546
|
+
var node = _ref22.node;
|
|
10979
10547
|
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10980
10548
|
}
|
|
10981
10549
|
},
|
|
@@ -11021,32 +10589,32 @@ var getSerializers = function getSerializers() {
|
|
|
11021
10589
|
children
|
|
11022
10590
|
) : children;
|
|
11023
10591
|
},
|
|
11024
|
-
alignleft: function alignleft(
|
|
11025
|
-
var children =
|
|
10592
|
+
alignleft: function alignleft(_ref23) {
|
|
10593
|
+
var children = _ref23.children;
|
|
11026
10594
|
return React__default.createElement(
|
|
11027
10595
|
'div',
|
|
11028
10596
|
{ style: { textAlign: 'left' } },
|
|
11029
10597
|
children
|
|
11030
10598
|
);
|
|
11031
10599
|
},
|
|
11032
|
-
alignright: function alignright(
|
|
11033
|
-
var children =
|
|
10600
|
+
alignright: function alignright(_ref24) {
|
|
10601
|
+
var children = _ref24.children;
|
|
11034
10602
|
return React__default.createElement(
|
|
11035
10603
|
'div',
|
|
11036
10604
|
{ style: { textAlign: 'right' } },
|
|
11037
10605
|
children
|
|
11038
10606
|
);
|
|
11039
10607
|
},
|
|
11040
|
-
aligncenter: function aligncenter(
|
|
11041
|
-
var children =
|
|
10608
|
+
aligncenter: function aligncenter(_ref25) {
|
|
10609
|
+
var children = _ref25.children;
|
|
11042
10610
|
return React__default.createElement(
|
|
11043
10611
|
'div',
|
|
11044
10612
|
{ style: { textAlign: 'center' } },
|
|
11045
10613
|
children
|
|
11046
10614
|
);
|
|
11047
10615
|
},
|
|
11048
|
-
alignjustify: function alignjustify(
|
|
11049
|
-
var children =
|
|
10616
|
+
alignjustify: function alignjustify(_ref26) {
|
|
10617
|
+
var children = _ref26.children;
|
|
11050
10618
|
return React__default.createElement(
|
|
11051
10619
|
'div',
|
|
11052
10620
|
{ 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-cefa7325.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-42f9b439.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,9 +191,10 @@ import 'swr';
|
|
|
191
191
|
import 'passport-local';
|
|
192
192
|
import 'mysql';
|
|
193
193
|
import './md5-4e42248e.js';
|
|
194
|
-
import './SeriesSlider-
|
|
194
|
+
import './SeriesSlider-f771e20d.js';
|
|
195
195
|
import './style-inject.es-1f59c1d0.js';
|
|
196
196
|
import 'disqus-react';
|
|
197
|
+
import 'file-saver';
|
|
197
198
|
import 'react-twitter-embed';
|
|
198
199
|
import './ImageSlider-f84174cb.js';
|
|
199
200
|
import './defineProperty-23a8f8cd.js';
|