@mjhls/mjh-framework 1.0.998-D4S-2830v3 → 1.0.998
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +5 -6
- package/dist/cjs/AD300x250x600.js +5 -6
- package/dist/cjs/AD728x90.js +6 -7
- package/dist/cjs/ADFloatingFooter.js +8 -9
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +8 -9
- package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-ef933a08.js} +5 -5
- package/dist/cjs/ADSkyscraper.js +8 -9
- package/dist/cjs/ADSponsoredResources.js +8 -9
- package/dist/cjs/ADWebcast.js +8 -9
- package/dist/cjs/ADWelcome.js +12 -13
- package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-0e931f24.js} +3 -3
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -10
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlgoliaSearch.js +1451 -904
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +14 -15
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -12
- package/dist/cjs/ArticleSeriesListing.js +29 -30
- package/dist/cjs/Auth.js +114 -85
- package/dist/cjs/AuthWrapper.js +113 -43
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-7d00f6d5.js} +9 -9
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-96b44364.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CMEDeck.js +61 -62
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +27 -28
- package/dist/cjs/ConferenceArticleCard.js +12 -12
- package/dist/cjs/{ConferenceBanner-6c9e718a.js → ConferenceBanner-213003ce.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +49 -50
- package/dist/cjs/DeckContent.js +58 -59
- package/dist/cjs/DeckQueue.js +57 -58
- package/dist/cjs/DeckQueuePaginated.js +46 -47
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-67646058.js} +17 -18
- package/dist/cjs/EventsDeck.js +90 -90
- package/dist/cjs/ExternalResources.js +37 -39
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +134 -135
- package/dist/cjs/GridContentPaginated.js +121 -122
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +105 -105
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +17 -17
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +28 -29
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-6c00b878.js → ImageSlider-1ec0408b.js} +212 -172
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +19 -20
- package/dist/cjs/LeftNav.js +17 -18
- package/dist/cjs/MasterDeck.js +39 -40
- package/dist/cjs/MasterDeckPaginated.js +29 -30
- package/dist/cjs/{MediaSeriesCard-2e5cd247.js → MediaSeriesCard-78f709ca.js} +16 -16
- package/dist/cjs/MediaSeriesLanding.js +37 -38
- package/dist/cjs/MediaSeriesLandingPaginated.js +36 -37
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-4799de4b.js → NavFooter-880e9d87.js} +11 -11
- package/dist/cjs/NavMagazine.js +106 -106
- package/dist/cjs/NavNative.js +97 -97
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-2a3d0103.js → Pagination-6359861a.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +49 -51
- package/dist/cjs/PartnerDetailListingPaginated.js +48 -50
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PodcastsLanding.js +22 -23
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +13 -14
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-a989a2b3.js} +29 -29
- package/dist/cjs/PublicationLanding.js +73 -73
- package/dist/cjs/QueueDeckExpanded.js +245 -246
- package/dist/cjs/QueueDeckExpandedPaginated.js +222 -223
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +14 -14
- package/dist/cjs/RelatedTopicsDropdown.js +14 -14
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +1 -1
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -19
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-18fc6e71.js} +22 -22
- package/dist/cjs/SideFooter.js +18 -18
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-d2ab3d62.js → SocialSearchComponent-ca9c0c45.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +11 -12
- package/dist/cjs/TemplateNormal.js +27 -28
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/{Tooltip-f075b7ef.js → Tooltip-71754b2a.js} +704 -621
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +28 -29
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +11 -12
- package/dist/cjs/VideoSeriesListing.js +46 -47
- package/dist/cjs/View.js +257 -273
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +33 -33
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4c7825a1.js} +2 -2
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +6 -7
- package/dist/cjs/iconBase-be4097c0.js +2 -4
- package/dist/cjs/{index-eadd5035.js → index-65621b6c.js} +5 -5
- package/dist/cjs/{index-fc2f1ca2.js → index-7435b964.js} +471 -6
- package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
- package/dist/cjs/index-b95410f0.js +54 -0
- package/dist/cjs/{index-f95a3c0f.js → index-e4f1fe32.js} +487 -499
- package/dist/cjs/{index.es-f3e47207.js → index.es-1ab8dda7.js} +4 -4
- package/dist/cjs/{index.esm-1461604c.js → index.esm-f59ef5b4.js} +14 -14
- package/dist/cjs/index.js +102 -105
- package/dist/cjs/{main-f1c77adb.js → main-6054981e.js} +17 -22
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-2c5c389a.js} +7 -7
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-56020df6.js} +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +2 -3
- package/dist/esm/AD300x250x600.js +2 -3
- package/dist/esm/AD728x90.js +2 -3
- package/dist/esm/ADFloatingFooter.js +2 -3
- package/dist/esm/ADGutter.js +2 -3
- package/dist/esm/ADSkyscraper.js +2 -3
- package/dist/esm/ADSponsoredResources.js +2 -3
- package/dist/esm/ADWebcast.js +2 -3
- package/dist/esm/ADWelcome.js +2 -3
- package/dist/esm/AdSlot.js +2 -3
- package/dist/esm/AdSlotsProvider.js +2 -3
- package/dist/esm/AlgoliaSearch.js +1065 -518
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +3 -4
- package/dist/esm/ArticleSeriesLandingPage.js +4 -5
- package/dist/esm/ArticleSeriesListing.js +2 -3
- package/dist/esm/Auth.js +40 -11
- package/dist/esm/AuthWrapper.js +86 -16
- package/dist/esm/CMEDeck.js +2 -3
- package/dist/esm/Column3.js +2 -3
- package/dist/esm/ContentCardPaginated.js +4 -5
- package/dist/esm/DeckContent.js +3 -4
- package/dist/esm/DeckQueue.js +2 -3
- package/dist/esm/DeckQueuePaginated.js +3 -4
- package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
- package/dist/esm/EventsDeck.js +2 -2
- package/dist/esm/ExternalResources.js +7 -9
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/GridContent.js +4 -5
- package/dist/esm/GridContentPaginated.js +5 -6
- package/dist/esm/HamMagazine.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +3 -4
- package/dist/esm/{ImageSlider-f84174cb.js → ImageSlider-83913c4c.js} +157 -117
- package/dist/esm/IssueLanding.js +5 -6
- package/dist/esm/LeftNav.js +2 -3
- package/dist/esm/MasterDeck.js +4 -5
- package/dist/esm/MasterDeckPaginated.js +5 -6
- package/dist/esm/{MediaSeriesCard-afb517a5.js → MediaSeriesCard-db0176b5.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +8 -9
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -10
- package/dist/esm/NavMagazine.js +2 -2
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +6 -8
- package/dist/esm/PartnerDetailListingPaginated.js +7 -9
- package/dist/esm/PodcastsLanding.js +6 -7
- package/dist/esm/PubSection.js +4 -5
- package/dist/esm/QueueDeckExpanded.js +4 -5
- package/dist/esm/QueueDeckExpandedPaginated.js +5 -6
- package/dist/esm/SeriesListingDeck.js +3 -4
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-5728e349.js} +1 -1
- package/dist/esm/{SocialSearchComponent-165b4ae7.js → SocialSearchComponent-68d948b9.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +3 -4
- package/dist/esm/TemplateNormal.js +3 -4
- package/dist/esm/{Tooltip-95655b44.js → Tooltip-8307d9d1.js} +150 -67
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +3 -4
- package/dist/esm/VideoSeriesLandingPage.js +4 -5
- package/dist/esm/VideoSeriesListing.js +2 -3
- package/dist/esm/View.js +43 -59
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +3 -4
- package/dist/esm/index-174b5baf.js +52 -0
- package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
- package/dist/esm/{index-04817712.js → index-3bb56969.js} +8 -20
- package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
- package/dist/esm/index.js +10 -13
- package/dist/esm/{main-1894c974.js → main-9f6806ea.js} +4 -9
- package/package.json +1 -1
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- /package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-f946441a.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-012e6f16.js} +0 -0
package/dist/esm/View.js
CHANGED
|
@@ -8,16 +8,16 @@ import { _ as _JSON$stringify } from './stringify-2b084bee.js';
|
|
|
8
8
|
import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
9
9
|
import { m as moment } from './moment-bc12cb97.js';
|
|
10
10
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
11
|
-
import { m as main_43 } from './main-
|
|
11
|
+
import { m as main_43 } from './main-9f6806ea.js';
|
|
12
12
|
import 'react-bootstrap/Dropdown';
|
|
13
13
|
import Form from 'react-bootstrap/Form';
|
|
14
14
|
import FormControl from 'react-bootstrap/FormControl';
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
16
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-3bb56969.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-5728e349.js';
|
|
21
21
|
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-9bd28724.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
@@ -33,7 +33,7 @@ import { PixelTrackingArticle } from './PixelTracking.js';
|
|
|
33
33
|
import './Segment.js';
|
|
34
34
|
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
35
35
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
36
|
-
import { l as lib_3 } from './index-
|
|
36
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
37
37
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
38
38
|
import getQuery from './getQuery.js';
|
|
39
39
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
@@ -74,7 +74,6 @@ import './checkSisterSite-baa4fb6b.js';
|
|
|
74
74
|
import './debounce-533d9748.js';
|
|
75
75
|
import './isSymbol-a7e9aafe.js';
|
|
76
76
|
import './toNumber-5aeba6e7.js';
|
|
77
|
-
import './events-6c3a7a63.js';
|
|
78
77
|
import './index-db3bb315.js';
|
|
79
78
|
|
|
80
79
|
var getArticleSummary = function getArticleSummary(article) {
|
|
@@ -1018,8 +1017,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1018
1017
|
downloadCitation = _props$downloadCitati === undefined ? false : _props$downloadCitati,
|
|
1019
1018
|
_props$useSegmentReco = props.useSegmentRecommendedArticles,
|
|
1020
1019
|
useSegmentRecommendedArticles = _props$useSegmentReco === undefined ? false : _props$useSegmentReco,
|
|
1021
|
-
showIssueNameOnly = props.showIssueNameOnly,
|
|
1022
|
-
showPageNumber = props.showPageNumber,
|
|
1023
1020
|
emailList = props.emailList,
|
|
1024
1021
|
articleRecs = props.articleRecs;
|
|
1025
1022
|
var sliderData = props.sliderData;
|
|
@@ -1030,9 +1027,9 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1030
1027
|
if (article && article.documentGroup && article.documentGroup.disableEpisodeNumber === true) {
|
|
1031
1028
|
disableEpisodeNumber = true;
|
|
1032
1029
|
}
|
|
1033
|
-
var logicforDisplayingEpisodeNumber =
|
|
1030
|
+
var logicforDisplayingEpisodeNumber = disableEpisodeNumber ? false : true;
|
|
1034
1031
|
var targeting = getTargeting(props);
|
|
1035
|
-
//
|
|
1032
|
+
//remove slider data if toggled
|
|
1036
1033
|
if (article && article.documentGroup && article.documentGroup.hideSeriesSlider === true) {
|
|
1037
1034
|
sliderData = null;
|
|
1038
1035
|
}
|
|
@@ -1056,12 +1053,12 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1056
1053
|
}
|
|
1057
1054
|
}
|
|
1058
1055
|
|
|
1059
|
-
//
|
|
1056
|
+
//if showSocialShare is not disabled for entire site, check article taxonomy, docgroup, authors for showSocialShare === false
|
|
1060
1057
|
if (showSocialShare) {
|
|
1061
1058
|
showSocialShare = getSocialShareDisableFlag(props.article);
|
|
1062
1059
|
}
|
|
1063
1060
|
|
|
1064
|
-
//
|
|
1061
|
+
//If sponsored flag, disable contextual ads
|
|
1065
1062
|
if (sponsoredFlag) {
|
|
1066
1063
|
article.contextualVideoAD = false;
|
|
1067
1064
|
article.contextualAD = false;
|
|
@@ -1070,7 +1067,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1070
1067
|
if (article.disableRelatedContent) {
|
|
1071
1068
|
showRelatedArticles = false;
|
|
1072
1069
|
}
|
|
1073
|
-
//
|
|
1070
|
+
//This was being done in ArticleQueue2 which wasnt effecting articles excluded from infinite scroll, moved inside article component
|
|
1074
1071
|
if (!sponsoredFlag && Ads.getVideoContextualAD) {
|
|
1075
1072
|
article.contextualVideoAD = Ads.getVideoContextualAD(getTargeting(props, 'in-context_video'));
|
|
1076
1073
|
}
|
|
@@ -1151,11 +1148,9 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1151
1148
|
|
|
1152
1149
|
var getAbstract = function getAbstract() {
|
|
1153
1150
|
return article.abstract && article.abstract.map(function (block) {
|
|
1154
|
-
if (block.children) {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1151
|
+
if (block.children) return block.children.map(function (child) {
|
|
1152
|
+
if (child._type === 'span') return child.text;
|
|
1153
|
+
});
|
|
1159
1154
|
}).join(' ');
|
|
1160
1155
|
};
|
|
1161
1156
|
|
|
@@ -1173,52 +1168,52 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1173
1168
|
var fileContent = 'TY - JOUR\n';
|
|
1174
1169
|
if (issue) {
|
|
1175
1170
|
if (article.title) {
|
|
1176
|
-
fileContent += 'TI - ' + article.title + '\n'; //
|
|
1177
|
-
fileContent += 'T1 - ' + article.title + '\n'; //
|
|
1171
|
+
fileContent += 'TI - ' + article.title + '\n'; //Title - TI
|
|
1172
|
+
fileContent += 'T1 - ' + article.title + '\n'; //Title - T1
|
|
1178
1173
|
}
|
|
1179
1174
|
if (authorDetails && authorDetails.length) {
|
|
1180
1175
|
authorDetails.map(function (authorDetail, index) {
|
|
1181
1176
|
return fileContent += 'AU - ' + (authorDetail.firstName && authorDetail.lastName ? authorDetail.lastName + ', ' + authorDetail.firstName : '' + authorDetail.displayName) + '\n';
|
|
1182
|
-
} //
|
|
1177
|
+
} //Author
|
|
1183
1178
|
);
|
|
1184
1179
|
}
|
|
1185
1180
|
if (issue.publication && issue.publication.name) {
|
|
1186
|
-
fileContent += 'T2 - ' + issue.publication.name + '\n'; //
|
|
1187
|
-
fileContent += 'JF - ' + issue.publication.name + '\n'; //
|
|
1181
|
+
fileContent += 'T2 - ' + issue.publication.name + '\n'; //Secondary Title - T2
|
|
1182
|
+
fileContent += 'JF - ' + issue.publication.name + '\n'; //Journal Name - JF
|
|
1188
1183
|
}
|
|
1189
1184
|
if (issue.name) {
|
|
1190
|
-
fileContent += 'T3 - ' + issue.name + '\n'; //
|
|
1185
|
+
fileContent += 'T3 - ' + issue.name + '\n'; //Issue Name - T3
|
|
1191
1186
|
}
|
|
1192
1187
|
if (issue.abbreviatedJournal) {
|
|
1193
|
-
fileContent += 'JO - ' + issue.abbreviatedJournal + '\n'; //
|
|
1188
|
+
fileContent += 'JO - ' + issue.abbreviatedJournal + '\n'; //Journal Name - JO
|
|
1194
1189
|
}
|
|
1195
|
-
if (article.abstract) fileContent += 'AB - ' + getAbstract() + '\n'; //
|
|
1196
|
-
if (article.abstract) fileContent += 'N2 - ' + getAbstract() + '\n'; //
|
|
1197
|
-
if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //
|
|
1198
|
-
fileContent += 'PB - MJH Life Sciences\n'; //
|
|
1199
|
-
if (issue.year) fileContent += 'PY - ' + issue.year + '\n'; //
|
|
1200
|
-
if (issue.volume) fileContent += 'VL - ' + issue.volume + '\n'; //
|
|
1201
|
-
if (issue.url) fileContent += 'L1 - ' + issue.url + '\n'; //
|
|
1190
|
+
if (article.abstract) fileContent += 'AB - ' + getAbstract() + '\n'; //Abstract - AB
|
|
1191
|
+
if (article.abstract) fileContent += 'N2 - ' + getAbstract() + '\n'; //Abstract - N2
|
|
1192
|
+
if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
|
|
1193
|
+
fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
|
|
1194
|
+
if (issue.year) fileContent += 'PY - ' + issue.year + '\n'; //Published Year - PY
|
|
1195
|
+
if (issue.volume) fileContent += 'VL - ' + issue.volume + '\n'; //Volume - VL
|
|
1196
|
+
if (issue.url) fileContent += 'L1 - ' + issue.url + '\n'; //Link to PDF - L1
|
|
1202
1197
|
if (shareOptions && shareOptions.shareBaseUrl) {
|
|
1203
|
-
fileContent += 'L2 - ' + (shareOptions.shareBaseUrl + url) + '\n'; //
|
|
1204
|
-
fileContent += 'UR - ' + (shareOptions.shareBaseUrl + url) + '\n'; //
|
|
1198
|
+
fileContent += 'L2 - ' + (shareOptions.shareBaseUrl + url) + '\n'; //Link to Full-text - L2
|
|
1199
|
+
fileContent += 'UR - ' + (shareOptions.shareBaseUrl + url) + '\n'; //Doc URL - UR
|
|
1205
1200
|
}
|
|
1206
|
-
if (props.Website) fileContent += 'LK - https://' + props.Website.liveDomain + '\n'; //
|
|
1201
|
+
if (props.Website) fileContent += 'LK - https://' + props.Website.liveDomain + '\n'; //Website Link - LK
|
|
1207
1202
|
if (issue.isbn_issn) {
|
|
1208
|
-
fileContent += 'SN - ' + issue.isbn_issn + '\n'; //
|
|
1203
|
+
fileContent += 'SN - ' + issue.isbn_issn + '\n'; //ISSN/ISBN - TI
|
|
1209
1204
|
}
|
|
1210
1205
|
if (pageNumber) {
|
|
1211
1206
|
if (pageNumber.includes('-')) {
|
|
1212
|
-
fileContent += 'SP - ' + pageNumber.split('-')[0] + '\n'; //
|
|
1213
|
-
fileContent += 'EP - ' + pageNumber.split('-')[1] + '\n'; //
|
|
1207
|
+
fileContent += 'SP - ' + pageNumber.split('-')[0] + '\n'; //Start Page - SP
|
|
1208
|
+
fileContent += 'EP - ' + pageNumber.split('-')[1] + '\n'; //End Page - EP
|
|
1214
1209
|
} else {
|
|
1215
1210
|
fileContent += 'SP - ' + pageNumber + '\n';
|
|
1216
1211
|
}
|
|
1217
1212
|
}
|
|
1218
|
-
if (article.published) fileContent += 'Y1 - ' + moment(published).format('DD-MMMM-YYYY') + '\n'; //
|
|
1219
|
-
fileContent += 'Y2 - ' + moment().format('DD-MMMM-YYYY') + '\n'; //
|
|
1213
|
+
if (article.published) fileContent += 'Y1 - ' + moment(published).format('DD-MMMM-YYYY') + '\n'; //Primary Date - Y1
|
|
1214
|
+
fileContent += 'Y2 - ' + moment().format('DD-MMMM-YYYY') + '\n'; //Access Date - Y2
|
|
1220
1215
|
}
|
|
1221
|
-
fileContent += 'ER -\n'; //
|
|
1216
|
+
fileContent += 'ER -\n'; //End of Record
|
|
1222
1217
|
return fileContent;
|
|
1223
1218
|
};
|
|
1224
1219
|
var getAuthorList = function getAuthorList() {
|
|
@@ -1781,7 +1776,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1781
1776
|
{ className: 'volume-issue' },
|
|
1782
1777
|
issue.publication && issue.publication.name && React__default.createElement(
|
|
1783
1778
|
'span',
|
|
1784
|
-
{ className: 'mb-0
|
|
1779
|
+
{ className: 'mb-0' },
|
|
1785
1780
|
React__default.createElement(
|
|
1786
1781
|
'b',
|
|
1787
1782
|
null,
|
|
@@ -1790,22 +1785,17 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1790
1785
|
',',
|
|
1791
1786
|
' '
|
|
1792
1787
|
),
|
|
1793
|
-
issue.name &&
|
|
1794
|
-
'span',
|
|
1795
|
-
{ className: 'mb-0' },
|
|
1796
|
-
issue.name,
|
|
1797
|
-
', '
|
|
1798
|
-
) : issue.name && showIssueNameOnly === false ? React__default.createElement(
|
|
1788
|
+
issue.name && React__default.createElement(
|
|
1799
1789
|
'span',
|
|
1800
1790
|
{ className: 'mb-0' },
|
|
1801
1791
|
issue.name,
|
|
1802
1792
|
', '
|
|
1803
|
-
)
|
|
1793
|
+
),
|
|
1804
1794
|
issue.volume && React__default.createElement(
|
|
1805
1795
|
'span',
|
|
1806
1796
|
null,
|
|
1807
1797
|
'Volume ' + issue.volume,
|
|
1808
|
-
',
|
|
1798
|
+
','
|
|
1809
1799
|
),
|
|
1810
1800
|
issue.issueNumber && React__default.createElement(
|
|
1811
1801
|
'span',
|
|
@@ -1813,15 +1803,11 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1813
1803
|
' Issue ' + issue.issueNumber
|
|
1814
1804
|
)
|
|
1815
1805
|
),
|
|
1816
|
-
pageNumber &&
|
|
1806
|
+
pageNumber && React__default.createElement(
|
|
1817
1807
|
'div',
|
|
1818
1808
|
{ className: 'article-pageNumber' },
|
|
1819
1809
|
'Pages: ' + pageNumber
|
|
1820
|
-
)
|
|
1821
|
-
'div',
|
|
1822
|
-
{ className: 'article-pageNumber' },
|
|
1823
|
-
'Pages: ' + pageNumber
|
|
1824
|
-
) : null
|
|
1810
|
+
)
|
|
1825
1811
|
),
|
|
1826
1812
|
React__default.createElement(
|
|
1827
1813
|
'div',
|
|
@@ -2287,9 +2273,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2287
2273
|
// Passing queueData to check for single article
|
|
2288
2274
|
, queueData: queueData,
|
|
2289
2275
|
showRelatedArticles: showRelatedArticles,
|
|
2290
|
-
index: index
|
|
2291
|
-
showPageNumber: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showPageNumber : null,
|
|
2292
|
-
showIssueNameOnly: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showIssueNameOnly : null
|
|
2276
|
+
index: index
|
|
2293
2277
|
}))
|
|
2294
2278
|
);
|
|
2295
2279
|
})
|
|
@@ -2501,7 +2485,7 @@ var View = function View(props) {
|
|
|
2501
2485
|
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
2502
2486
|
)
|
|
2503
2487
|
),
|
|
2504
|
-
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus, emailList: emailList, articleRecs: articleRecs }, props
|
|
2488
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus, emailList: emailList, articleRecs: articleRecs }, props)) : React__default.createElement(ArticleQueue, _extends({
|
|
2505
2489
|
infiniteScroll: true,
|
|
2506
2490
|
showRelatedArticles: showRelatedArticles,
|
|
2507
2491
|
canonicalTag: canonicalTag,
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -4,7 +4,7 @@ import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
|
4
4
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
5
5
|
import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
6
6
|
import urlFor from './urlFor.js';
|
|
7
|
-
import { m as main_43, a as main_49, b as main_42 } from './main-
|
|
7
|
+
import { m as main_43, a as main_49, b as main_42 } from './main-9f6806ea.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './web.dom.iterable-ab4dea5c.js';
|
|
10
10
|
import './core.get-iterator-method-ea258bb1.js';
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -11,7 +11,7 @@ var getQuery = function getQuery(type) {
|
|
|
11
11
|
case 'related':
|
|
12
12
|
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && isHealthcareProfessional != true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n && !defined(body[].quizzes)\n && !defined(body[].slides)\n && !defined(body[].articles)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
|
|
13
13
|
case 'article':
|
|
14
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier,
|
|
14
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n disableEpisodeNumber,\n excludeRelatedContents,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n isSeries,\n disableEpisodeNumber,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n excludeRelatedContents,\n \'path\': identifier.current,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n year,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n\n }';
|
|
15
15
|
case 'publication':
|
|
16
16
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
17
17
|
case 'issue':
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { g as default } from './index-
|
|
2
|
+
export { g as default } from './index-3bb56969.js';
|
|
3
3
|
import './BlockContent-1e73bd2c.js';
|
|
4
4
|
import './entities-6d9154b4.js';
|
|
5
5
|
import './slicedToArray-6ebcbfea.js';
|
|
@@ -9,8 +9,7 @@ import './core.get-iterator-method-ea258bb1.js';
|
|
|
9
9
|
import 'react-bootstrap';
|
|
10
10
|
import './urlFor.js';
|
|
11
11
|
import './index-3f5c03b2.js';
|
|
12
|
-
import './index-
|
|
13
|
-
import './events-6c3a7a63.js';
|
|
12
|
+
import './index-5cc7b406.js';
|
|
14
13
|
import 'prop-types';
|
|
15
14
|
import 'next/router';
|
|
16
15
|
import './index-c7e2ac95.js';
|
|
@@ -21,7 +20,7 @@ import './asyncToGenerator-958ef5fc.js';
|
|
|
21
20
|
import './_library-528f1934.js';
|
|
22
21
|
import './_iter-detect-98db3b07.js';
|
|
23
22
|
import './Segment.js';
|
|
24
|
-
import './main-
|
|
23
|
+
import './main-9f6806ea.js';
|
|
25
24
|
import './extends-6d8e3924.js';
|
|
26
25
|
import './_object-pie-133f504a.js';
|
|
27
26
|
import './urlForFile-b69adffc.js';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
|
|
3
|
+
var classnames = createCommonjsModule(function (module) {
|
|
4
|
+
/*!
|
|
5
|
+
Copyright (c) 2017 Jed Watson.
|
|
6
|
+
Licensed under the MIT License (MIT), see
|
|
7
|
+
http://jedwatson.github.io/classnames
|
|
8
|
+
*/
|
|
9
|
+
/* global define */
|
|
10
|
+
|
|
11
|
+
(function () {
|
|
12
|
+
|
|
13
|
+
var hasOwn = {}.hasOwnProperty;
|
|
14
|
+
|
|
15
|
+
function classNames () {
|
|
16
|
+
var classes = [];
|
|
17
|
+
|
|
18
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
19
|
+
var arg = arguments[i];
|
|
20
|
+
if (!arg) continue;
|
|
21
|
+
|
|
22
|
+
var argType = typeof arg;
|
|
23
|
+
|
|
24
|
+
if (argType === 'string' || argType === 'number') {
|
|
25
|
+
classes.push(arg);
|
|
26
|
+
} else if (Array.isArray(arg) && arg.length) {
|
|
27
|
+
var inner = classNames.apply(null, arg);
|
|
28
|
+
if (inner) {
|
|
29
|
+
classes.push(inner);
|
|
30
|
+
}
|
|
31
|
+
} else if (argType === 'object') {
|
|
32
|
+
for (var key in arg) {
|
|
33
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
34
|
+
classes.push(key);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return classes.join(' ');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (module.exports) {
|
|
44
|
+
classNames.default = classNames;
|
|
45
|
+
module.exports = classNames;
|
|
46
|
+
} else {
|
|
47
|
+
window.classNames = classNames;
|
|
48
|
+
}
|
|
49
|
+
}());
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export { classnames as c };
|