@mjhls/mjh-framework 1.0.977 → 1.0.979-ris-update-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +1 -2
- package/dist/cjs/AD300x250x600.js +1 -2
- package/dist/cjs/AD728x90.js +1 -2
- package/dist/cjs/ADFloatingFooter.js +1 -2
- package/dist/cjs/ADGutter.js +1 -2
- package/dist/cjs/ADSkyscraper.js +1 -2
- package/dist/cjs/ADSponsoredResources.js +1 -2
- package/dist/cjs/ADWebcast.js +1 -2
- package/dist/cjs/ADWelcome.js +1 -2
- package/dist/cjs/AdSlot.js +1 -2
- package/dist/cjs/AdSlotsProvider.js +1 -2
- package/dist/cjs/AlgoliaSearch.js +17 -14164
- package/dist/cjs/ArticleProgramLandingPage.js +2 -3
- package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
- package/dist/cjs/ArticleSeriesListing.js +1 -2
- package/dist/cjs/AuthWrapper.js +29 -3
- package/dist/cjs/CMEDeck.js +1 -2
- package/dist/cjs/Column3.js +1 -2
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +3 -5
- package/dist/cjs/DeckContent.js +10 -11
- package/dist/cjs/DeckQueue.js +1 -2
- package/dist/cjs/DeckQueuePaginated.js +2 -4
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-94f8ccdf.js} +1 -2
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +2 -3
- package/dist/cjs/GridContent.js +3 -4
- package/dist/cjs/GridContentPaginated.js +4 -6
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +2 -3
- package/dist/cjs/IssueLanding.js +33 -34
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +1 -2
- package/dist/cjs/MasterDeck.js +11 -12
- package/dist/cjs/MasterDeckPaginated.js +12 -14
- package/dist/cjs/{MediaSeriesCard-5bf9813e.js → MediaSeriesCard-1a62916a.js} +384 -288
- package/dist/cjs/MediaSeriesLanding.js +10 -12
- package/dist/cjs/MediaSeriesLandingPaginated.js +11 -14
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-2a3d0103.js +97 -0
- package/dist/cjs/PartnerDetailListing.js +4 -5
- package/dist/cjs/PartnerDetailListingPaginated.js +5 -7
- package/dist/cjs/PubSection.js +3 -4
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +3 -4
- package/dist/cjs/QueueDeckExpandedPaginated.js +4 -6
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +2 -3
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-74546d19.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +2 -3
- package/dist/cjs/TemplateNormal.js +1 -2
- package/dist/cjs/VideoProgramLandingPage.js +2 -3
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +3 -4
- package/dist/cjs/VideoSeriesListing.js +1 -2
- package/dist/cjs/View.js +168 -74
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +3 -3
- package/dist/cjs/getSerializers.js +6 -7
- package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-dab97fe1.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
- package/dist/cjs/{index-eb1c583d.js → index-bb00ade7.js} +73 -30
- package/dist/cjs/index.js +7 -10
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +1 -2
- package/dist/esm/AD300x250x600.js +1 -2
- package/dist/esm/AD728x90.js +1 -2
- package/dist/esm/ADFloatingFooter.js +1 -2
- package/dist/esm/ADGutter.js +1 -2
- package/dist/esm/ADSkyscraper.js +1 -2
- package/dist/esm/ADSponsoredResources.js +1 -2
- package/dist/esm/ADWebcast.js +1 -2
- package/dist/esm/ADWelcome.js +1 -2
- package/dist/esm/AdSlot.js +1 -2
- package/dist/esm/AdSlotsProvider.js +1 -2
- package/dist/esm/AlgoliaSearch.js +11 -14158
- package/dist/esm/ArticleProgramLandingPage.js +2 -3
- package/dist/esm/ArticleSeriesLandingPage.js +3 -4
- package/dist/esm/ArticleSeriesListing.js +1 -2
- package/dist/esm/AuthWrapper.js +28 -2
- package/dist/esm/CMEDeck.js +1 -2
- package/dist/esm/Column3.js +1 -2
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +3 -5
- package/dist/esm/DeckContent.js +10 -11
- package/dist/esm/DeckQueue.js +1 -2
- package/dist/esm/DeckQueuePaginated.js +2 -4
- package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +2 -3
- package/dist/esm/GridContent.js +3 -4
- package/dist/esm/GridContentPaginated.js +4 -6
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +2 -3
- package/dist/esm/IssueLanding.js +33 -34
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +1 -2
- package/dist/esm/MasterDeck.js +11 -12
- package/dist/esm/MasterDeckPaginated.js +12 -14
- package/dist/esm/{MediaSeriesCard-305a9cb3.js → MediaSeriesCard-146e08c8.js} +99 -3
- package/dist/esm/MediaSeriesLanding.js +10 -12
- package/dist/esm/MediaSeriesLandingPaginated.js +11 -14
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-dc30727b.js +90 -0
- package/dist/esm/PartnerDetailListing.js +4 -5
- package/dist/esm/PartnerDetailListingPaginated.js +5 -7
- package/dist/esm/PubSection.js +3 -4
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpanded.js +3 -4
- package/dist/esm/QueueDeckExpandedPaginated.js +4 -6
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +2 -3
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-e495571f.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +2 -3
- package/dist/esm/TemplateNormal.js +1 -2
- package/dist/esm/VideoProgramLandingPage.js +2 -3
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +3 -4
- package/dist/esm/VideoSeriesListing.js +1 -2
- package/dist/esm/View.js +168 -73
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +3 -3
- package/dist/esm/getSerializers.js +6 -7
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-04d979c9.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
- package/dist/esm/{index-264bbd3c.js → index-e89d33c8.js} +73 -30
- package/dist/esm/index.js +7 -10
- package/package.json +115 -115
- package/dist/cjs/Pagination-1e0d5f1d.js +0 -90
- 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/Pagination-cd21f8c2.js +0 -82
- 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/cjs/{ADInfeed-81006615.js → ADInfeed-cf54cb8a.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-0db07099.js → ADlgInfeed-d06624d8.js} +0 -0
- /package/dist/esm/{ADInfeed-6d1fc6bf.js → ADInfeed-0852ff35.js} +0 -0
- /package/dist/esm/{ADlgInfeed-dc36c928.js → ADlgInfeed-5fb3b724.js} +0 -0
package/dist/esm/View.js
CHANGED
|
@@ -15,10 +15,10 @@ 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-e89d33c8.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
21
|
-
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-e495571f.js';
|
|
21
|
+
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-04d979c9.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
24
24
|
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
@@ -28,15 +28,14 @@ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
|
28
28
|
import './index-755f2cc2.js';
|
|
29
29
|
import { DiscussionEmbed } from 'disqus-react';
|
|
30
30
|
import Schema from './Schema.js';
|
|
31
|
-
import
|
|
31
|
+
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
32
32
|
import { PixelTrackingArticle } from './PixelTracking.js';
|
|
33
33
|
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
34
34
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
35
|
-
import { l as lib_3 } from './index-
|
|
35
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
36
36
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
37
37
|
import getQuery from './getQuery.js';
|
|
38
38
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
39
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
40
39
|
import './core.get-iterator-method-ea258bb1.js';
|
|
41
40
|
import './web.dom.iterable-ab4dea5c.js';
|
|
42
41
|
import './_library-528f1934.js';
|
|
@@ -74,7 +73,6 @@ import 'react-bootstrap/Popover';
|
|
|
74
73
|
import './debounce-533d9748.js';
|
|
75
74
|
import './isSymbol-a7e9aafe.js';
|
|
76
75
|
import './toNumber-5aeba6e7.js';
|
|
77
|
-
import './events-6c3a7a63.js';
|
|
78
76
|
import './index-db3bb315.js';
|
|
79
77
|
|
|
80
78
|
var getArticleSummary = function getArticleSummary(article) {
|
|
@@ -149,16 +147,30 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
149
147
|
var article = _ref.article,
|
|
150
148
|
client = _ref.client;
|
|
151
149
|
|
|
152
|
-
|
|
150
|
+
var mediaSeriesGroup = null;
|
|
151
|
+
|
|
152
|
+
if (article.documentGroup && article.documentGroup.isShow !== false && article.documentGroup.isSeries !== true) {
|
|
153
|
+
mediaSeriesGroup = article.documentGroup;
|
|
154
|
+
}
|
|
155
|
+
if (!article.documentGroup && article.documentGroupMapping) {
|
|
156
|
+
for (var i = 0; i < article.documentGroupMapping.length; i++) {
|
|
157
|
+
if (article.documentGroupMapping[i].isShow !== false && article.documentGroupMapping[i].isSeries !== true) {
|
|
158
|
+
mediaSeriesGroup = article.documentGroupMapping[i];
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (!mediaSeriesGroup) {
|
|
153
165
|
return null;
|
|
154
166
|
}
|
|
155
167
|
|
|
156
|
-
var name = getDocumentGroupName(
|
|
157
|
-
var url = getDocumentGroupUrl(
|
|
168
|
+
var name = getDocumentGroupName(mediaSeriesGroup);
|
|
169
|
+
var url = getDocumentGroupUrl(mediaSeriesGroup);
|
|
158
170
|
var thumbnailUrl = false;
|
|
159
171
|
|
|
160
|
-
if (
|
|
161
|
-
thumbnailUrl = urlFor({ client: client, source:
|
|
172
|
+
if (mediaSeriesGroup.thumbnail) {
|
|
173
|
+
thumbnailUrl = urlFor({ client: client, source: mediaSeriesGroup.thumbnail });
|
|
162
174
|
}
|
|
163
175
|
|
|
164
176
|
return React__default.createElement(
|
|
@@ -350,7 +362,7 @@ var ISI = function ISI(props) {
|
|
|
350
362
|
);
|
|
351
363
|
};
|
|
352
364
|
|
|
353
|
-
var css$1 = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
|
|
365
|
+
var css$1 = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: none;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n margin-bottom: 0.5rem;\r\n padding: 0;\r\n }\r\n .RelatedArticles-module_cardTitle__3P-Ib {\r\n font-size: 0.75rem;\r\n margin-bottom: 0;\r\n }\r\n}\r\n";
|
|
354
366
|
var styles$1 = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
355
367
|
styleInject(css$1);
|
|
356
368
|
|
|
@@ -449,7 +461,13 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
449
461
|
return showSocialShare;
|
|
450
462
|
};
|
|
451
463
|
|
|
452
|
-
var
|
|
464
|
+
var FileSaver_min = createCommonjsModule(function (module, exports) {
|
|
465
|
+
(function(a,b){b();})(commonjsGlobal,function(){function b(a,b){return "undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c);},d.onerror=function(){console.error("could not download file");},d.send();}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send();}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"));}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b);}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href);},4E4),setTimeout(function(){e(j);},0));}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else {var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i);});}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null;},k.readAsDataURL(b);}else {var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m);},4E4);}});f.saveAs=g.saveAs=g,(module.exports=g);});
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
var css = ".RecommendedArticles-module_recommendTitle__2kUji {\r\n border-bottom: 2px solid var(--secondary-blue);\r\n font-size: 1.5rem;\r\n font-weight: bold;\r\n color: #0d335a;\r\n padding: 0.5rem;\r\n}\r\n.RecommendedArticles-module_recommendContainer__sZukI {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: wrap;\r\n margin: 0 -0.5rem;\r\n}\r\n.RecommendedArticles-module_recommendTop__1_yqw {\r\n margin: 0.5rem;\r\n width: 100%;\r\n flex-basis: 100%;\r\n display: flex;\r\n\r\n}\r\n.RecommendedArticles-module_recommendTopImg__1b9gu {\r\n min-width: 55%;\r\n width: 55%;\r\n height: 100%;\r\n}\r\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\r\n width: 100%;\r\n height: 100%;\r\n object-fit: cover;\r\n}\r\n.RecommendedArticles-module_recommendTopBody__-13FI {\r\n margin-left: 1rem;\r\n line-height: 1.3;\r\n color: #121212;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 25px;\r\n font-weight: bold;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RecommendedArticles-module_topBody__2_VNi {\r\n font-size: 19px;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 19px;\r\n color: rgb(43, 43, 151);\r\n text-decoration: underline;\r\n margin-top: auto;\r\n}\r\n.RecommendedArticles-module_smContainer__4byBO {\r\n width: calc(25% - 1rem);\r\n margin: 0 0.5rem;\r\n}\r\n.RecommendedArticles-module_smImage__TYZGY img {\r\n width: 100%;\r\n}\r\n.RecommendedArticles-module_title__3q1ud {\r\n margin-top: 1rem;\r\n line-height: 1.2;\r\n color: #121212;\r\n}\r\n.RecommendedArticles-module_category__2jRto {\r\n text-transform: uppercase;\r\n font-size: 16px;\r\n letter-spacing: 2px;\r\n margin: 0.25rem 0;\r\n}\r\n\r\n/* media query */\r\n\r\n@media screen and (max-width: 1399px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 21px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi {\r\n font-size: 15px;\r\n }\r\n}\r\n@media screen and (max-width: 1191px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 23px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi,\r\n .RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 17px;\r\n }\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 18px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi,\r\n .RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 15px;\r\n }\r\n}\r\n@media screen and (max-width: 768px) {\r\n .RecommendedArticles-module_recommendTop__1_yqw {\r\n flex-direction: column;\r\n }\r\n .RecommendedArticles-module_recommendTopImg__1b9gu,\r\n .RecommendedArticles-module_recommendTopBody__-13FI {\r\n width: 100%;\r\n margin: 0;\r\n }\r\n .RecommendedArticles-module_recommendTopBody__-13FI {\r\n margin-bottom: 1rem;\r\n }\r\n .RecommendedArticles-module_smContainer__4byBO {\r\n width: calc(50% - 1rem);\r\n }\r\n}";
|
|
453
471
|
var styles = { "recommendTitle": "RecommendedArticles-module_recommendTitle__2kUji", "recommendContainer": "RecommendedArticles-module_recommendContainer__sZukI", "recommendTop": "RecommendedArticles-module_recommendTop__1_yqw", "recommendTopImg": "RecommendedArticles-module_recommendTopImg__1b9gu", "recommendTopBody": "RecommendedArticles-module_recommendTopBody__-13FI", "topTitle": "RecommendedArticles-module_topTitle__2EafN", "topBody": "RecommendedArticles-module_topBody__2_VNi", "topLink": "RecommendedArticles-module_topLink__2RnXu", "smContainer": "RecommendedArticles-module_smContainer__4byBO", "smImage": "RecommendedArticles-module_smImage__TYZGY", "title": "RecommendedArticles-module_title__3q1ud", "category": "RecommendedArticles-module_category__2jRto" };
|
|
454
472
|
styleInject(css);
|
|
455
473
|
|
|
@@ -884,16 +902,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
884
902
|
};
|
|
885
903
|
}();
|
|
886
904
|
|
|
887
|
-
var article = props.article,
|
|
888
|
-
Ads = props.Ads,
|
|
889
|
-
showRelatedArticles = props.showRelatedArticles,
|
|
890
|
-
_props$hideFBShare = props.hideFBShare,
|
|
891
|
-
hideFBShare = _props$hideFBShare === undefined ? false : _props$hideFBShare,
|
|
892
|
-
_props$hidePinterestS = props.hidePinterestShare,
|
|
893
|
-
hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS,
|
|
894
|
-
onChangeArticle = props.onChangeArticle,
|
|
895
|
-
_props$showSocialShar = props.showSocialShare,
|
|
896
|
-
showSocialShare = _props$showSocialShar === undefined ? true : _props$showSocialShar;
|
|
897
905
|
var client = props.client,
|
|
898
906
|
pageview = props.pageview,
|
|
899
907
|
videoAccountIDs = props.videoAccountIDs,
|
|
@@ -951,7 +959,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
951
959
|
useSegmentRecommendedArticles = _props$useSegmentReco === undefined ? false : _props$useSegmentReco;
|
|
952
960
|
var sliderData = props.sliderData;
|
|
953
961
|
|
|
954
|
-
|
|
955
962
|
var disableEpisodeNumber = false;
|
|
956
963
|
if (article && article.documentGroup && article.documentGroup.disableEpisodeNumber === true) {
|
|
957
964
|
disableEpisodeNumber = true;
|
|
@@ -962,6 +969,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
962
969
|
if (article && article.documentGroup && article.documentGroup.hideSeriesSlider === true) {
|
|
963
970
|
sliderData = null;
|
|
964
971
|
}
|
|
972
|
+
|
|
965
973
|
//next video url
|
|
966
974
|
if (sliderData) {
|
|
967
975
|
var nextArticle = void 0;
|
|
@@ -1068,6 +1076,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1068
1076
|
}, client.config()));
|
|
1069
1077
|
}
|
|
1070
1078
|
};
|
|
1079
|
+
var getAbstract = function getAbstract() {
|
|
1080
|
+
return article.abstract && article.abstract.map(function (block) {
|
|
1081
|
+
if (block.children) return block.children.map(function (child) {
|
|
1082
|
+
if (child._type === 'span') return child.text;
|
|
1083
|
+
});
|
|
1084
|
+
}).join(' ');
|
|
1085
|
+
};
|
|
1071
1086
|
var renderIsiContent = function renderIsiContent(article) {
|
|
1072
1087
|
var url = article.url.current;
|
|
1073
1088
|
|
|
@@ -1087,7 +1102,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1087
1102
|
}
|
|
1088
1103
|
if (authorDetails && authorDetails.length) {
|
|
1089
1104
|
authorDetails.map(function (authorDetail, index) {
|
|
1090
|
-
return fileContent += 'AU - ' + authorDetail.displayName + '\n';
|
|
1105
|
+
return fileContent += 'AU - ' + (authorDetail.firstName && authorDetail.lastName ? authorDetail.lastName + ', ' + authorDetail.firstName : '' + authorDetail.displayName) + '\n';
|
|
1091
1106
|
} //Author
|
|
1092
1107
|
);
|
|
1093
1108
|
}
|
|
@@ -1095,10 +1110,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1095
1110
|
fileContent += 'T2 - ' + issue.publication.name + '\n'; //Secondary Title - T2
|
|
1096
1111
|
fileContent += 'JF - ' + issue.publication.name + '\n'; //Journal Name - JF
|
|
1097
1112
|
}
|
|
1113
|
+
if (issue.name) {
|
|
1114
|
+
fileContent += 'T3 - ' + issue.name + '\n'; //Issue Name - T3
|
|
1115
|
+
}
|
|
1098
1116
|
if (issue.abbreviatedJournal) {
|
|
1099
1117
|
fileContent += 'JO - ' + issue.abbreviatedJournal + '\n'; //Journal Name - JO
|
|
1100
1118
|
}
|
|
1101
|
-
if (article.
|
|
1119
|
+
if (article.abstract) fileContent += 'AB - ' + getAbstract() + '\n'; //Abstract - AB
|
|
1102
1120
|
if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
|
|
1103
1121
|
fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
|
|
1104
1122
|
if (issue.year) fileContent += 'PY - ' + issue.year + '\n'; //Published Year - PY
|
|
@@ -1126,10 +1144,20 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1126
1144
|
fileContent += 'ER -\n'; //End of Record
|
|
1127
1145
|
return fileContent;
|
|
1128
1146
|
};
|
|
1147
|
+
var getAuthorList = function getAuthorList() {
|
|
1148
|
+
var authorList = '';
|
|
1149
|
+
if (authorDetails && authorDetails.length > 0) {
|
|
1150
|
+
authorDetails.map(function (author) {
|
|
1151
|
+
if (author.lastName && author.firstName) authorList += author.lastName + ',' + author.firstName + ';';else if (author.displayName) authorList += author.displayName + ';';
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
return authorList;
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1129
1157
|
var downloadRIS = function downloadRIS() {
|
|
1130
1158
|
var fileContent = generateRIS();
|
|
1131
1159
|
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
1132
|
-
|
|
1160
|
+
FileSaver_min.saveAs(file, 'citation-' + url + '.ris');
|
|
1133
1161
|
};
|
|
1134
1162
|
|
|
1135
1163
|
var RelevantTopics = function RelevantTopics() {
|
|
@@ -1279,7 +1307,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1279
1307
|
|
|
1280
1308
|
var indexes = findIndex(body);
|
|
1281
1309
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1282
|
-
var isMediaSeries =
|
|
1310
|
+
var isMediaSeries = false;
|
|
1311
|
+
if (article.documentGroup && article.documentGroup.isSeries) {
|
|
1312
|
+
isMediaSeries = true;
|
|
1313
|
+
} else if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries(article.documentGroupMapping)) {
|
|
1314
|
+
isMediaSeries = true;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1283
1317
|
if (indexes.length >= 2 && body.length > 3 && payload.contextualAD && payload.contextualVideoAD) {
|
|
1284
1318
|
payload = _extends({}, payload, {
|
|
1285
1319
|
contextualAD: _extends({}, payload.contextualAD, {
|
|
@@ -1314,7 +1348,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1314
1348
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1315
1349
|
}, client.config())),
|
|
1316
1350
|
React__default.createElement('span', { className: 'clearfix' }),
|
|
1317
|
-
|
|
1351
|
+
isMediaSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1318
1352
|
React__default.createElement(
|
|
1319
1353
|
'div',
|
|
1320
1354
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
@@ -1365,7 +1399,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1365
1399
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1366
1400
|
}, client.config())),
|
|
1367
1401
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
1368
|
-
|
|
1402
|
+
isMediaSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1369
1403
|
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
1370
1404
|
React__default.Fragment,
|
|
1371
1405
|
null,
|
|
@@ -1420,7 +1454,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1420
1454
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1421
1455
|
}, client.config())),
|
|
1422
1456
|
React__default.createElement('span', { className: 'clearfix' }),
|
|
1423
|
-
|
|
1457
|
+
isMediaSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1424
1458
|
React__default.createElement(
|
|
1425
1459
|
'div',
|
|
1426
1460
|
{ id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
|
|
@@ -1446,7 +1480,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1446
1480
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1447
1481
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1448
1482
|
}, client.config())),
|
|
1449
|
-
|
|
1483
|
+
isMediaSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1450
1484
|
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
1451
1485
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1452
1486
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
@@ -1543,10 +1577,20 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1543
1577
|
var triggerOffset = 20;
|
|
1544
1578
|
var isVideoSeries = checkIfVideoSeries(article);
|
|
1545
1579
|
var episodeNumber = fetchCurrentEpisode(sliderData, props.article);
|
|
1546
|
-
var isMediaSeries =
|
|
1580
|
+
var isMediaSeries = false;
|
|
1581
|
+
var mediaSeriesName = '';
|
|
1547
1582
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
1548
1583
|
var isFormAssembly = checkIfFormAssembly(article);
|
|
1549
1584
|
|
|
1585
|
+
if (article.documentGroup && article.documentGroup.isSeries) {
|
|
1586
|
+
isMediaSeries = true;
|
|
1587
|
+
mediaSeriesName = article.documentGroup.name;
|
|
1588
|
+
}
|
|
1589
|
+
if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries(article.documentGroupMapping)) {
|
|
1590
|
+
isMediaSeries = true;
|
|
1591
|
+
mediaSeriesName = checkDocGroupMappingForSeries(article.documentGroupMapping).name;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1550
1594
|
return React__default.createElement(
|
|
1551
1595
|
React__default.Fragment,
|
|
1552
1596
|
null,
|
|
@@ -1576,14 +1620,25 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1576
1620
|
React__default.createElement(
|
|
1577
1621
|
'div',
|
|
1578
1622
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1623
|
+
issue && React__default.createElement(
|
|
1624
|
+
Head,
|
|
1625
|
+
null,
|
|
1626
|
+
article.title && React__default.createElement('meta', { name: 'citation_title', content: article.title }),
|
|
1627
|
+
published && React__default.createElement('meta', { name: 'citation_date', content: moment(published).format('LL') }),
|
|
1628
|
+
issue.year && React__default.createElement('meta', { name: 'citation_year', content: issue.year }),
|
|
1629
|
+
issue.isbn_issn && React__default.createElement('meta', { name: 'citation_isbn', content: issue.isbn_issn }),
|
|
1630
|
+
article.abstract && React__default.createElement('meta', { name: 'citation_abstract', content: getAbstract() }),
|
|
1631
|
+
React__default.createElement('meta', { name: 'citation_author', content: getAuthorList() }),
|
|
1632
|
+
issue.pdf && React__default.createElement('meta', { name: 'citation_pdf_url', content: urlForFile({ asset: issue.pdf }) })
|
|
1633
|
+
),
|
|
1579
1634
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1580
1635
|
!isVideoSeries && React__default.createElement(
|
|
1581
1636
|
'div',
|
|
1582
1637
|
null,
|
|
1583
|
-
isMediaSeries &&
|
|
1638
|
+
isMediaSeries && React__default.createElement(
|
|
1584
1639
|
'p',
|
|
1585
1640
|
{ style: { fontSize: '14px' } },
|
|
1586
|
-
disableEpisodeNumber ? '' +
|
|
1641
|
+
disableEpisodeNumber ? '' + mediaSeriesName : mediaSeriesName + ' - Episode ' + episodeNumber
|
|
1587
1642
|
),
|
|
1588
1643
|
React__default.createElement(
|
|
1589
1644
|
'h1',
|
|
@@ -1597,7 +1652,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1597
1652
|
React__default.createElement(
|
|
1598
1653
|
'style',
|
|
1599
1654
|
{ jsx: 'true' },
|
|
1600
|
-
'\n @media screen and (max-width: 468px) {\n .video-detail .doc-group-container {\n flex-direction: column;\n align-items: flex-start !important;\n }\n .video-detail .doc-group {\n margin-top: 2rem;\n width: calc(100vw - 45px);\n align-items: center;\n }\n .video-detail .doc-group img,\n .doc-group p {\n max-width: calc(100vw - 45px) !important;\n }\n }\n .author-details-img {\n margin-right: 10px;\n max-height: 250px;\n min-height: 150px;\n max-width: 250px;\n min-width: 150px;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .author-details-img-container {\n text-align: center;\n }\n .author-details-col {\n padding-left: 25px;\n }\n '
|
|
1655
|
+
'\n .social-ris-container {\n display: flex;\n justify-content: space-between;\n }\n @media screen and (max-width: 468px) {\n .video-detail .doc-group-container {\n flex-direction: column;\n align-items: flex-start !important;\n }\n .video-detail .doc-group {\n margin-top: 2rem;\n width: calc(100vw - 45px);\n align-items: center;\n }\n .video-detail .doc-group img,\n .doc-group p {\n max-width: calc(100vw - 45px) !important;\n }\n .social-ris-container {\n flex-direction: column;\n }\n }\n .author-details-img {\n margin-right: 10px;\n max-height: 250px;\n min-height: 150px;\n max-width: 250px;\n min-width: 150px;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .author-details-img-container {\n text-align: center;\n }\n .author-details-col {\n padding-left: 25px;\n }\n .left-wrap {\n width: 100%;\n }\n '
|
|
1601
1656
|
),
|
|
1602
1657
|
React__default.createElement(
|
|
1603
1658
|
'div',
|
|
@@ -1681,23 +1736,34 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1681
1736
|
'Pages: ' + pageNumber
|
|
1682
1737
|
)
|
|
1683
1738
|
),
|
|
1684
|
-
|
|
1685
|
-
'
|
|
1686
|
-
|
|
1687
|
-
React__default.createElement(
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1739
|
+
React__default.createElement(
|
|
1740
|
+
'div',
|
|
1741
|
+
{ className: 'social-ris-container' },
|
|
1742
|
+
!isVideoSeries && showSocialShare && React__default.createElement(
|
|
1743
|
+
'p',
|
|
1744
|
+
null,
|
|
1745
|
+
React__default.createElement(SocialShare, {
|
|
1746
|
+
shareUrl: shareUrl,
|
|
1747
|
+
shareTitle: shareTitle,
|
|
1748
|
+
shareVia: shareVia,
|
|
1749
|
+
shareSummary: shareSummary,
|
|
1750
|
+
shareSubject: shareSubject,
|
|
1751
|
+
shareImage: shareImage,
|
|
1752
|
+
size: 32,
|
|
1753
|
+
siteName: siteName,
|
|
1754
|
+
twitterSiteName: twitterSiteName,
|
|
1755
|
+
disableMeta: true,
|
|
1756
|
+
hidePinterest: hidePinterestShare,
|
|
1757
|
+
hideFacebook: hideFBShare
|
|
1758
|
+
})
|
|
1759
|
+
),
|
|
1760
|
+
issue && downloadCitation && (!issue.hasOwnProperty('show_download_ris_button') || issue.show_download_ris_button !== false) && (!issue.publication || !issue.publication.hasOwnProperty('show_download_ris_button') || issue.publication.show_download_ris_button !== false) && React__default.createElement(
|
|
1761
|
+
Button,
|
|
1762
|
+
{ className: 'ris-download-button', onClick: function onClick() {
|
|
1763
|
+
return downloadRIS();
|
|
1764
|
+
} },
|
|
1765
|
+
'Download RIS'
|
|
1766
|
+
)
|
|
1701
1767
|
)
|
|
1702
1768
|
),
|
|
1703
1769
|
React__default.createElement(
|
|
@@ -1765,13 +1831,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1765
1831
|
React__default.createElement(
|
|
1766
1832
|
'div',
|
|
1767
1833
|
{ className: 'downloads-container' },
|
|
1768
|
-
issue && downloadCitation && (!issue.hasOwnProperty('show_download_ris_button') || issue.show_download_ris_button !== false) && (!issue.publication || !issue.publication.hasOwnProperty('show_download_ris_button') || issue.publication.show_download_ris_button !== false) && React__default.createElement(
|
|
1769
|
-
Button,
|
|
1770
|
-
{ className: 'ris-download-button', onClick: function onClick() {
|
|
1771
|
-
return downloadRIS();
|
|
1772
|
-
} },
|
|
1773
|
-
'Download RIS'
|
|
1774
|
-
),
|
|
1775
1834
|
issue && issue.pdf && React__default.createElement(
|
|
1776
1835
|
'a',
|
|
1777
1836
|
{ rel: 'noopener', href: urlForFile({ asset: issue.pdf }), target: '_blank', title: 'Download issue' },
|
|
@@ -2146,6 +2205,17 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2146
2205
|
);
|
|
2147
2206
|
};
|
|
2148
2207
|
|
|
2208
|
+
var checkDocGroupMappingForSeries$1 = function checkDocGroupMappingForSeries(docGroupArray) {
|
|
2209
|
+
|
|
2210
|
+
for (var i = 0; i < docGroupArray.length; i++) {
|
|
2211
|
+
if (docGroupArray[i].isSeries) {
|
|
2212
|
+
return docGroupArray[i];
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
return false;
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2149
2219
|
var _this = undefined;
|
|
2150
2220
|
|
|
2151
2221
|
var View = function View(props) {
|
|
@@ -2233,12 +2303,21 @@ var View = function View(props) {
|
|
|
2233
2303
|
return false;
|
|
2234
2304
|
};
|
|
2235
2305
|
|
|
2306
|
+
var isMediaSeries = false;
|
|
2307
|
+
|
|
2308
|
+
if (article.documentGroup && article.documentGroup.isSeries) {
|
|
2309
|
+
isMediaSeries = true;
|
|
2310
|
+
}
|
|
2311
|
+
if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries$1(article.documentGroupMapping)) {
|
|
2312
|
+
isMediaSeries = true;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2236
2315
|
var disableInfiniteScroll = checkBodyForDisableInfiniteScroll(props.article);
|
|
2237
2316
|
var commentsEnabledInTaxonomy = Array.isArray(content_placement) && content_placement.some(function (t) {
|
|
2238
2317
|
return t.showComments === true;
|
|
2239
2318
|
});
|
|
2240
2319
|
var showDisqus = commentsEnabledInTaxonomy || hideComments === false;
|
|
2241
|
-
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !disableInfiniteScroll && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi &&
|
|
2320
|
+
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !disableInfiniteScroll && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi && !isMediaSeries && !showDisqus;
|
|
2242
2321
|
|
|
2243
2322
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
2244
2323
|
title = null;
|
|
@@ -2357,7 +2436,7 @@ View.returnGetInitialProps = function () {
|
|
|
2357
2436
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(url, prevUrl, seriesVid, client, sao) {
|
|
2358
2437
|
var context = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
2359
2438
|
|
|
2360
|
-
var article, relatedArticleQuery, sliderData, statusCode, sliderArticles, _context$query$series, seriesArticle, sponsoredFlag;
|
|
2439
|
+
var article, relatedArticleQuery, sliderData, statusCode, sliderArticles, _sliderArticles, _context$query$series, seriesArticle, sponsoredFlag;
|
|
2361
2440
|
|
|
2362
2441
|
return regenerator.wrap(function _callee$(_context) {
|
|
2363
2442
|
while (1) {
|
|
@@ -2379,7 +2458,7 @@ View.returnGetInitialProps = function () {
|
|
|
2379
2458
|
}
|
|
2380
2459
|
|
|
2381
2460
|
if (!(article.documentGroup && article.documentGroup.isSeries)) {
|
|
2382
|
-
_context.next =
|
|
2461
|
+
_context.next = 15;
|
|
2383
2462
|
break;
|
|
2384
2463
|
}
|
|
2385
2464
|
|
|
@@ -2390,8 +2469,24 @@ View.returnGetInitialProps = function () {
|
|
|
2390
2469
|
sliderArticles = _context.sent;
|
|
2391
2470
|
|
|
2392
2471
|
sliderData = sliderArticles;
|
|
2472
|
+
_context.next = 20;
|
|
2473
|
+
break;
|
|
2474
|
+
|
|
2475
|
+
case 15:
|
|
2476
|
+
if (!(article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].isSeries)) {
|
|
2477
|
+
_context.next = 20;
|
|
2478
|
+
break;
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
_context.next = 18;
|
|
2482
|
+
return client.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\'' + article.documentGroupMapping[0]._id + '\')\n && is_visible == true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n title,\n thumbnail,\n url,\n published\n }');
|
|
2483
|
+
|
|
2484
|
+
case 18:
|
|
2485
|
+
_sliderArticles = _context.sent;
|
|
2486
|
+
|
|
2487
|
+
sliderData = _sliderArticles;
|
|
2393
2488
|
|
|
2394
|
-
case
|
|
2489
|
+
case 20:
|
|
2395
2490
|
_context$query$series = context.query.seriesArticle, seriesArticle = _context$query$series === undefined ? false : _context$query$series;
|
|
2396
2491
|
|
|
2397
2492
|
if ((seriesArticle || seriesVid) && article.body) {
|
|
@@ -2440,27 +2535,27 @@ View.returnGetInitialProps = function () {
|
|
|
2440
2535
|
}
|
|
2441
2536
|
|
|
2442
2537
|
if (!article.disableRelatedContent) {
|
|
2443
|
-
_context.next =
|
|
2538
|
+
_context.next = 30;
|
|
2444
2539
|
break;
|
|
2445
2540
|
}
|
|
2446
2541
|
|
|
2447
2542
|
article.relatedArticle = null;
|
|
2448
|
-
_context.next =
|
|
2543
|
+
_context.next = 34;
|
|
2449
2544
|
break;
|
|
2450
2545
|
|
|
2451
|
-
case
|
|
2546
|
+
case 30:
|
|
2452
2547
|
if (!article) {
|
|
2453
|
-
_context.next =
|
|
2548
|
+
_context.next = 34;
|
|
2454
2549
|
break;
|
|
2455
2550
|
}
|
|
2456
2551
|
|
|
2457
|
-
_context.next =
|
|
2552
|
+
_context.next = 33;
|
|
2458
2553
|
return getRelatedArticle(context, client, article, prevUrl, '0..2');
|
|
2459
2554
|
|
|
2460
|
-
case
|
|
2555
|
+
case 33:
|
|
2461
2556
|
article.relatedArticle = _context.sent;
|
|
2462
2557
|
|
|
2463
|
-
case
|
|
2558
|
+
case 34:
|
|
2464
2559
|
return _context.abrupt('return', {
|
|
2465
2560
|
url: url,
|
|
2466
2561
|
sao: sao,
|
|
@@ -2472,7 +2567,7 @@ View.returnGetInitialProps = function () {
|
|
|
2472
2567
|
sponsoredFlag: sponsoredFlag
|
|
2473
2568
|
});
|
|
2474
2569
|
|
|
2475
|
-
case
|
|
2570
|
+
case 35:
|
|
2476
2571
|
case 'end':
|
|
2477
2572
|
return _context.stop();
|
|
2478
2573
|
}
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -12,10 +12,10 @@ import 'react-dom';
|
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
import './index-3f5c03b2.js';
|
|
14
14
|
|
|
15
|
-
/*
|
|
16
|
-
GROQ query -
|
|
17
|
-
accepts an array of title, URL
|
|
18
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
15
|
+
/*
|
|
16
|
+
GROQ query -
|
|
17
|
+
accepts an array of title, URL
|
|
18
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
var YoutubeGroup = function YoutubeGroup(props) {
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -7,11 +7,11 @@ var getQuery = function getQuery(type) {
|
|
|
7
7
|
//Site level conditions should start with && (logical AND), and site level params should end with , (comma) in order to execute query
|
|
8
8
|
|
|
9
9
|
switch (type) {
|
|
10
|
-
// quiz video series and slideshow
|
|
10
|
+
// quiz video series and slideshow
|
|
11
11
|
case 'related':
|
|
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
|
|
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
|
|
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':
|