@mjhls/mjh-framework 1.0.966-reference-serializer-v3 → 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-1420d4f2.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-3927ac32.js → index-e8c2ed3b.js} +42 -551
- 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-ae1d3c37.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-e6489945.js → index-cefa7325.js} +42 -551
- package/dist/esm/index.js +4 -3
- package/package.json +115 -116
- package/dist/cjs/Pagination-30bb1ca1.js +0 -97
- package/dist/esm/Pagination-194dd03f.js +0 -90
|
@@ -10319,504 +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
|
-
Head,
|
|
10692
|
-
null,
|
|
10693
|
-
React__default.createElement('script', { src: 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js' }),
|
|
10694
|
-
React__default.createElement('script', { src: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js' })
|
|
10695
|
-
),
|
|
10696
|
-
React__default.createElement(
|
|
10697
|
-
'p',
|
|
10698
|
-
{ className: 'reference-title' },
|
|
10699
|
-
React__default.createElement(
|
|
10700
|
-
'strong',
|
|
10701
|
-
null,
|
|
10702
|
-
'REFERENCES'
|
|
10703
|
-
)
|
|
10704
|
-
),
|
|
10705
|
-
referenceslist && referenceslist.map(function (reference, ref_index) {
|
|
10706
|
-
return React__default.createElement(
|
|
10707
|
-
'div',
|
|
10708
|
-
{ key: reference._key, id: reference.referenceID, className: 'reference-container' },
|
|
10709
|
-
React__default.createElement(
|
|
10710
|
-
'div',
|
|
10711
|
-
{ className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
|
|
10712
|
-
React__default.createElement(
|
|
10713
|
-
'span',
|
|
10714
|
-
null,
|
|
10715
|
-
ref_index + 1,
|
|
10716
|
-
'.\xA0'
|
|
10717
|
-
),
|
|
10718
|
-
React__default.createElement(BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
|
|
10719
|
-
),
|
|
10720
|
-
reference.citations && reference.citations.length > 0 && React__default.createElement(
|
|
10721
|
-
'div',
|
|
10722
|
-
{ className: 'row citations-container ml-3 mr-3 mb-2' },
|
|
10723
|
-
reference.citations.map(function (citation, cit_index) {
|
|
10724
|
-
return React__default.createElement(
|
|
10725
|
-
'div',
|
|
10726
|
-
{ key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
|
|
10727
|
-
citation.citationName === 'googleScholar' ? React__default.createElement(
|
|
10728
|
-
'a',
|
|
10729
|
-
{ target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10730
|
-
'Google Scholar'
|
|
10731
|
-
) : citation.citationName === 'pubMed' ? React__default.createElement(
|
|
10732
|
-
'a',
|
|
10733
|
-
{ target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10734
|
-
'PubMed'
|
|
10735
|
-
) : React__default.createElement(
|
|
10736
|
-
'a',
|
|
10737
|
-
{ target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10738
|
-
'Crossref'
|
|
10739
|
-
)
|
|
10740
|
-
);
|
|
10741
|
-
})
|
|
10742
|
-
),
|
|
10743
|
-
React__default.createElement(
|
|
10744
|
-
'div',
|
|
10745
|
-
{
|
|
10746
|
-
className: 'modal fade',
|
|
10747
|
-
id: 'reference_' + reference.referenceID,
|
|
10748
|
-
tabindex: '-1',
|
|
10749
|
-
role: 'dialog',
|
|
10750
|
-
'aria-labelledby': 'reference-modal-' + reference.referenceID,
|
|
10751
|
-
'aria-hidden': 'true' },
|
|
10752
|
-
React__default.createElement(
|
|
10753
|
-
'div',
|
|
10754
|
-
{ className: 'modal-dialog modal-dialog-centered', role: 'document' },
|
|
10755
|
-
React__default.createElement(
|
|
10756
|
-
'div',
|
|
10757
|
-
{ className: 'modal-content' },
|
|
10758
|
-
React__default.createElement(
|
|
10759
|
-
'div',
|
|
10760
|
-
{ className: 'modal-body' },
|
|
10761
|
-
React__default.createElement(
|
|
10762
|
-
'button',
|
|
10763
|
-
{ type: 'button', className: 'close', 'data-dismiss': 'modal', 'aria-label': 'Close' },
|
|
10764
|
-
React__default.createElement(
|
|
10765
|
-
'span',
|
|
10766
|
-
{ 'aria-hidden': 'true' },
|
|
10767
|
-
'\xD7'
|
|
10768
|
-
)
|
|
10769
|
-
),
|
|
10770
|
-
React__default.createElement(
|
|
10771
|
-
'div',
|
|
10772
|
-
{ className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
|
|
10773
|
-
React__default.createElement(
|
|
10774
|
-
'span',
|
|
10775
|
-
null,
|
|
10776
|
-
ref_index + 1,
|
|
10777
|
-
'.\xA0'
|
|
10778
|
-
),
|
|
10779
|
-
React__default.createElement(BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
|
|
10780
|
-
),
|
|
10781
|
-
reference.citations && reference.citations.length > 0 && React__default.createElement(
|
|
10782
|
-
'div',
|
|
10783
|
-
{ className: 'row citations-container ml-3 mr-3 mb-2' },
|
|
10784
|
-
reference.citations.map(function (citation, cit_index) {
|
|
10785
|
-
return React__default.createElement(
|
|
10786
|
-
'div',
|
|
10787
|
-
{ key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
|
|
10788
|
-
citation.citationName === 'googleScholar' ? React__default.createElement(
|
|
10789
|
-
'a',
|
|
10790
|
-
{ target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10791
|
-
'Google Scholar'
|
|
10792
|
-
) : citation.citationName === 'pubMed' ? React__default.createElement(
|
|
10793
|
-
'a',
|
|
10794
|
-
{ target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10795
|
-
'PubMed'
|
|
10796
|
-
) : React__default.createElement(
|
|
10797
|
-
'a',
|
|
10798
|
-
{ target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
|
|
10799
|
-
'Crossref'
|
|
10800
|
-
)
|
|
10801
|
-
);
|
|
10802
|
-
})
|
|
10803
|
-
)
|
|
10804
|
-
)
|
|
10805
|
-
)
|
|
10806
|
-
)
|
|
10807
|
-
)
|
|
10808
|
-
);
|
|
10809
|
-
}),
|
|
10810
|
-
React__default.createElement(
|
|
10811
|
-
'style',
|
|
10812
|
-
{ jsx: 'true' },
|
|
10813
|
-
'\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 '
|
|
10814
|
-
)
|
|
10815
|
-
);
|
|
10816
|
-
};
|
|
10817
|
-
|
|
10818
|
-
var References$1 = React__default.memo(References);
|
|
10819
|
-
|
|
10820
10322
|
var ScrollToElement = function ScrollToElement(elementId) {
|
|
10821
10323
|
var element = document.getElementById(elementId);
|
|
10822
10324
|
if (element) {
|
|
@@ -10935,57 +10437,52 @@ var getSerializers = function getSerializers() {
|
|
|
10935
10437
|
|
|
10936
10438
|
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10937
10439
|
},
|
|
10938
|
-
|
|
10440
|
+
slideshow: function slideshow(_ref6) {
|
|
10939
10441
|
var node = _ref6.node;
|
|
10940
|
-
|
|
10941
|
-
return React__default.createElement(References$1, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10942
|
-
},
|
|
10943
|
-
slideshow: function slideshow(_ref7) {
|
|
10944
|
-
var node = _ref7.node;
|
|
10945
10442
|
var slides = node.slides;
|
|
10946
10443
|
|
|
10947
10444
|
return React__default.createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
|
|
10948
10445
|
},
|
|
10949
|
-
sidebar: function sidebar(
|
|
10950
|
-
var node =
|
|
10446
|
+
sidebar: function sidebar(_ref7) {
|
|
10447
|
+
var node = _ref7.node;
|
|
10951
10448
|
var caption = node.caption,
|
|
10952
10449
|
content = node.content;
|
|
10953
10450
|
|
|
10954
10451
|
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
|
|
10955
10452
|
},
|
|
10956
|
-
datatable: function datatable(
|
|
10957
|
-
var node =
|
|
10453
|
+
datatable: function datatable(_ref8) {
|
|
10454
|
+
var node = _ref8.node;
|
|
10958
10455
|
var table = node.table;
|
|
10959
10456
|
|
|
10960
10457
|
return React__default.createElement(TableShow, { rows: table.rows });
|
|
10961
10458
|
},
|
|
10962
|
-
media: function media(
|
|
10963
|
-
var node =
|
|
10459
|
+
media: function media(_ref9) {
|
|
10460
|
+
var node = _ref9.node;
|
|
10964
10461
|
|
|
10965
10462
|
return React__default.createElement(Media, { node: node, client: client });
|
|
10966
10463
|
},
|
|
10967
|
-
iframe: function iframe(
|
|
10968
|
-
var node =
|
|
10464
|
+
iframe: function iframe(_ref10) {
|
|
10465
|
+
var node = _ref10.node;
|
|
10969
10466
|
|
|
10970
10467
|
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10971
10468
|
},
|
|
10972
|
-
video: function video(
|
|
10973
|
-
var node =
|
|
10469
|
+
video: function video(_ref11) {
|
|
10470
|
+
var node = _ref11.node;
|
|
10974
10471
|
|
|
10975
10472
|
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10976
10473
|
},
|
|
10977
|
-
audio: function audio(
|
|
10978
|
-
var node =
|
|
10474
|
+
audio: function audio(_ref12) {
|
|
10475
|
+
var node = _ref12.node;
|
|
10979
10476
|
|
|
10980
10477
|
return React__default.createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
10981
10478
|
},
|
|
10982
|
-
poll: function poll(
|
|
10983
|
-
var node =
|
|
10479
|
+
poll: function poll(_ref13) {
|
|
10480
|
+
var node = _ref13.node;
|
|
10984
10481
|
|
|
10985
10482
|
return React__default.createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
|
|
10986
10483
|
},
|
|
10987
|
-
pollMultiChoice: function pollMultiChoice(
|
|
10988
|
-
var node =
|
|
10484
|
+
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10485
|
+
var node = _ref14.node;
|
|
10989
10486
|
|
|
10990
10487
|
return React__default.createElement(Poll, {
|
|
10991
10488
|
node: node,
|
|
@@ -10997,31 +10494,31 @@ var getSerializers = function getSerializers() {
|
|
|
10997
10494
|
getSerializers: getSerializers.apply(undefined, props)
|
|
10998
10495
|
});
|
|
10999
10496
|
},
|
|
11000
|
-
quiz: function quiz(
|
|
11001
|
-
var node =
|
|
10497
|
+
quiz: function quiz(_ref15) {
|
|
10498
|
+
var node = _ref15.node;
|
|
11002
10499
|
var quizzes = node.quizzes;
|
|
11003
10500
|
|
|
11004
10501
|
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
|
|
11005
10502
|
},
|
|
11006
|
-
leads: function leads(
|
|
11007
|
-
var node =
|
|
10503
|
+
leads: function leads(_ref16) {
|
|
10504
|
+
var node = _ref16.node;
|
|
11008
10505
|
var leadID = node.leadID;
|
|
11009
10506
|
|
|
11010
10507
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
11011
10508
|
return React__default.createElement(Leads, { url: url });
|
|
11012
10509
|
},
|
|
11013
|
-
slideshows: function slideshows(
|
|
11014
|
-
var node =
|
|
10510
|
+
slideshows: function slideshows(_ref17) {
|
|
10511
|
+
var node = _ref17.node;
|
|
11015
10512
|
|
|
11016
10513
|
return React__default.createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
|
|
11017
10514
|
},
|
|
11018
|
-
nativeAd: function nativeAd(
|
|
11019
|
-
var node =
|
|
10515
|
+
nativeAd: function nativeAd(_ref18) {
|
|
10516
|
+
var node = _ref18.node;
|
|
11020
10517
|
|
|
11021
10518
|
return React__default.createElement(NativeAd, { node: node });
|
|
11022
10519
|
},
|
|
11023
|
-
html_anchor_links: function html_anchor_links(
|
|
11024
|
-
var node =
|
|
10520
|
+
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10521
|
+
var node = _ref19.node;
|
|
11025
10522
|
|
|
11026
10523
|
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
11027
10524
|
},
|
|
@@ -11031,8 +10528,8 @@ var getSerializers = function getSerializers() {
|
|
|
11031
10528
|
brtag: function brtag() {
|
|
11032
10529
|
return React__default.createElement('br', { className: 'line-break' });
|
|
11033
10530
|
},
|
|
11034
|
-
formstack: function formstack(
|
|
11035
|
-
var node =
|
|
10531
|
+
formstack: function formstack(_ref20) {
|
|
10532
|
+
var node = _ref20.node;
|
|
11036
10533
|
var FormID = node.FormID,
|
|
11037
10534
|
Caption = node.Caption,
|
|
11038
10535
|
needSegmentSupport = node.needSegmentSupport;
|
|
@@ -11040,13 +10537,13 @@ var getSerializers = function getSerializers() {
|
|
|
11040
10537
|
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
11041
10538
|
},
|
|
11042
10539
|
formassembly: FormAssembly,
|
|
11043
|
-
multimedia: function multimedia(
|
|
11044
|
-
var node =
|
|
10540
|
+
multimedia: function multimedia(_ref21) {
|
|
10541
|
+
var node = _ref21.node;
|
|
11045
10542
|
|
|
11046
10543
|
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
11047
10544
|
},
|
|
11048
|
-
blockTable: function blockTable(
|
|
11049
|
-
var node =
|
|
10545
|
+
blockTable: function blockTable(_ref22) {
|
|
10546
|
+
var node = _ref22.node;
|
|
11050
10547
|
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
11051
10548
|
}
|
|
11052
10549
|
},
|
|
@@ -11072,13 +10569,7 @@ var getSerializers = function getSerializers() {
|
|
|
11072
10569
|
blank = _props$mark.blank,
|
|
11073
10570
|
color = _props$mark.color;
|
|
11074
10571
|
|
|
11075
|
-
|
|
11076
|
-
return React__default.createElement(
|
|
11077
|
-
'a',
|
|
11078
|
-
{ 'data-toggle': 'modal', 'data-target': href },
|
|
11079
|
-
children
|
|
11080
|
-
);
|
|
11081
|
-
}
|
|
10572
|
+
|
|
11082
10573
|
if (href && href.charAt(0) === '#') {
|
|
11083
10574
|
var elementId = href.slice(1);
|
|
11084
10575
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
@@ -11098,32 +10589,32 @@ var getSerializers = function getSerializers() {
|
|
|
11098
10589
|
children
|
|
11099
10590
|
) : children;
|
|
11100
10591
|
},
|
|
11101
|
-
alignleft: function alignleft(
|
|
11102
|
-
var children =
|
|
10592
|
+
alignleft: function alignleft(_ref23) {
|
|
10593
|
+
var children = _ref23.children;
|
|
11103
10594
|
return React__default.createElement(
|
|
11104
10595
|
'div',
|
|
11105
10596
|
{ style: { textAlign: 'left' } },
|
|
11106
10597
|
children
|
|
11107
10598
|
);
|
|
11108
10599
|
},
|
|
11109
|
-
alignright: function alignright(
|
|
11110
|
-
var children =
|
|
10600
|
+
alignright: function alignright(_ref24) {
|
|
10601
|
+
var children = _ref24.children;
|
|
11111
10602
|
return React__default.createElement(
|
|
11112
10603
|
'div',
|
|
11113
10604
|
{ style: { textAlign: 'right' } },
|
|
11114
10605
|
children
|
|
11115
10606
|
);
|
|
11116
10607
|
},
|
|
11117
|
-
aligncenter: function aligncenter(
|
|
11118
|
-
var children =
|
|
10608
|
+
aligncenter: function aligncenter(_ref25) {
|
|
10609
|
+
var children = _ref25.children;
|
|
11119
10610
|
return React__default.createElement(
|
|
11120
10611
|
'div',
|
|
11121
10612
|
{ style: { textAlign: 'center' } },
|
|
11122
10613
|
children
|
|
11123
10614
|
);
|
|
11124
10615
|
},
|
|
11125
|
-
alignjustify: function alignjustify(
|
|
11126
|
-
var children =
|
|
10616
|
+
alignjustify: function alignjustify(_ref26) {
|
|
10617
|
+
var children = _ref26.children;
|
|
11127
10618
|
return React__default.createElement(
|
|
11128
10619
|
'div',
|
|
11129
10620
|
{ style: { textAlign: 'justify' } },
|