@mjhls/mjh-framework 1.0.979-ris-update-v2 → 1.0.979-ris-update-v3

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/dist/cjs/View.js CHANGED
@@ -861,6 +861,17 @@ var RelevantTopics = function RelevantTopics(props) {
861
861
  return null;
862
862
  };
863
863
 
864
+ var checkDocGroupMappingForSeries = function checkDocGroupMappingForSeries(docGroupArray) {
865
+
866
+ for (var i = 0; i < docGroupArray.length; i++) {
867
+ if (docGroupArray[i].isSeries) {
868
+ return docGroupArray[i];
869
+ }
870
+ }
871
+
872
+ return false;
873
+ };
874
+
864
875
  var Article = React__default['default'].memo(React.forwardRef(function (props, ref) {
865
876
  var onVote = function () {
866
877
  var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(nodeKey, selectedChoice) {
@@ -912,6 +923,16 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
912
923
  };
913
924
  }();
914
925
 
926
+ var article = props.article,
927
+ Ads = props.Ads,
928
+ showRelatedArticles = props.showRelatedArticles,
929
+ _props$hideFBShare = props.hideFBShare,
930
+ hideFBShare = _props$hideFBShare === undefined ? false : _props$hideFBShare,
931
+ _props$hidePinterestS = props.hidePinterestShare,
932
+ hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS,
933
+ onChangeArticle = props.onChangeArticle,
934
+ _props$showSocialShar = props.showSocialShare,
935
+ showSocialShare = _props$showSocialShar === undefined ? true : _props$showSocialShar;
915
936
  var client = props.client,
916
937
  pageview = props.pageview,
917
938
  videoAccountIDs = props.videoAccountIDs,
@@ -920,7 +941,6 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
920
941
  _props$showAuthorDeta = props.showAuthorDetails,
921
942
  showAuthorDetails = _props$showAuthorDeta === undefined ? false : _props$showAuthorDeta,
922
943
  audioAutoplay = props.audioAutoplay,
923
- article = props.article,
924
944
  _props$article = props.article,
925
945
  title = _props$article.title,
926
946
  _props$article$passwo = _props$article.passwordLock,
@@ -1087,6 +1107,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1087
1107
  }, client.config()));
1088
1108
  }
1089
1109
  };
1110
+
1090
1111
  var getAbstract = function getAbstract() {
1091
1112
  return article.abstract && article.abstract.map(function (block) {
1092
1113
  if (block.children) return block.children.map(function (child) {
@@ -1094,6 +1115,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1094
1115
  });
1095
1116
  }).join(' ');
1096
1117
  };
1118
+
1097
1119
  var renderIsiContent = function renderIsiContent(article) {
1098
1120
  var url = article.url.current;
1099
1121
 
@@ -1127,7 +1149,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1127
1149
  if (issue.abbreviatedJournal) {
1128
1150
  fileContent += 'JO - ' + issue.abbreviatedJournal + '\n'; //Journal Name - JO
1129
1151
  }
1130
- if (article.abstract) fileContent += 'AB - ' + getAbstract() + '\n'; //Abstract - AB
1152
+ if (article.abstract) fileContent += 'AB - ' + getAbstract() + '\n'; //Abstract - AB
1131
1153
  if (article.abstract) fileContent += 'N2 - ' + getAbstract() + '\n'; //Abstract - N2
1132
1154
  if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
1133
1155
  fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
@@ -1165,7 +1187,6 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1165
1187
  }
1166
1188
  return authorList;
1167
1189
  };
1168
-
1169
1190
  var downloadRIS = function downloadRIS() {
1170
1191
  var fileContent = generateRIS();
1171
1192
  var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
@@ -2217,17 +2238,6 @@ var ArticleQueue = function ArticleQueue(props) {
2217
2238
  );
2218
2239
  };
2219
2240
 
2220
- var checkDocGroupMappingForSeries$1 = function checkDocGroupMappingForSeries(docGroupArray) {
2221
-
2222
- for (var i = 0; i < docGroupArray.length; i++) {
2223
- if (docGroupArray[i].isSeries) {
2224
- return docGroupArray[i];
2225
- }
2226
- }
2227
-
2228
- return false;
2229
- };
2230
-
2231
2241
  var _this = undefined;
2232
2242
 
2233
2243
  var View = function View(props) {
@@ -2320,7 +2330,7 @@ var View = function View(props) {
2320
2330
  if (article.documentGroup && article.documentGroup.isSeries) {
2321
2331
  isMediaSeries = true;
2322
2332
  }
2323
- if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries$1(article.documentGroupMapping)) {
2333
+ if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries(article.documentGroupMapping)) {
2324
2334
  isMediaSeries = true;
2325
2335
  }
2326
2336
 
package/dist/esm/View.js CHANGED
@@ -851,6 +851,17 @@ var RelevantTopics = function RelevantTopics(props) {
851
851
  return null;
852
852
  };
853
853
 
854
+ var checkDocGroupMappingForSeries = function checkDocGroupMappingForSeries(docGroupArray) {
855
+
856
+ for (var i = 0; i < docGroupArray.length; i++) {
857
+ if (docGroupArray[i].isSeries) {
858
+ return docGroupArray[i];
859
+ }
860
+ }
861
+
862
+ return false;
863
+ };
864
+
854
865
  var Article = React__default.memo(forwardRef(function (props, ref) {
855
866
  var onVote = function () {
856
867
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
@@ -902,6 +913,16 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
902
913
  };
903
914
  }();
904
915
 
916
+ var article = props.article,
917
+ Ads = props.Ads,
918
+ showRelatedArticles = props.showRelatedArticles,
919
+ _props$hideFBShare = props.hideFBShare,
920
+ hideFBShare = _props$hideFBShare === undefined ? false : _props$hideFBShare,
921
+ _props$hidePinterestS = props.hidePinterestShare,
922
+ hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS,
923
+ onChangeArticle = props.onChangeArticle,
924
+ _props$showSocialShar = props.showSocialShare,
925
+ showSocialShare = _props$showSocialShar === undefined ? true : _props$showSocialShar;
905
926
  var client = props.client,
906
927
  pageview = props.pageview,
907
928
  videoAccountIDs = props.videoAccountIDs,
@@ -910,7 +931,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
910
931
  _props$showAuthorDeta = props.showAuthorDetails,
911
932
  showAuthorDetails = _props$showAuthorDeta === undefined ? false : _props$showAuthorDeta,
912
933
  audioAutoplay = props.audioAutoplay,
913
- article = props.article,
914
934
  _props$article = props.article,
915
935
  title = _props$article.title,
916
936
  _props$article$passwo = _props$article.passwordLock,
@@ -1077,6 +1097,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1077
1097
  }, client.config()));
1078
1098
  }
1079
1099
  };
1100
+
1080
1101
  var getAbstract = function getAbstract() {
1081
1102
  return article.abstract && article.abstract.map(function (block) {
1082
1103
  if (block.children) return block.children.map(function (child) {
@@ -1084,6 +1105,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1084
1105
  });
1085
1106
  }).join(' ');
1086
1107
  };
1108
+
1087
1109
  var renderIsiContent = function renderIsiContent(article) {
1088
1110
  var url = article.url.current;
1089
1111
 
@@ -1117,7 +1139,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1117
1139
  if (issue.abbreviatedJournal) {
1118
1140
  fileContent += 'JO - ' + issue.abbreviatedJournal + '\n'; //Journal Name - JO
1119
1141
  }
1120
- if (article.abstract) fileContent += 'AB - ' + getAbstract() + '\n'; //Abstract - AB
1142
+ if (article.abstract) fileContent += 'AB - ' + getAbstract() + '\n'; //Abstract - AB
1121
1143
  if (article.abstract) fileContent += 'N2 - ' + getAbstract() + '\n'; //Abstract - N2
1122
1144
  if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
1123
1145
  fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
@@ -1155,7 +1177,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1155
1177
  }
1156
1178
  return authorList;
1157
1179
  };
1158
-
1159
1180
  var downloadRIS = function downloadRIS() {
1160
1181
  var fileContent = generateRIS();
1161
1182
  var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
@@ -2207,17 +2228,6 @@ var ArticleQueue = function ArticleQueue(props) {
2207
2228
  );
2208
2229
  };
2209
2230
 
2210
- var checkDocGroupMappingForSeries$1 = function checkDocGroupMappingForSeries(docGroupArray) {
2211
-
2212
- for (var i = 0; i < docGroupArray.length; i++) {
2213
- if (docGroupArray[i].isSeries) {
2214
- return docGroupArray[i];
2215
- }
2216
- }
2217
-
2218
- return false;
2219
- };
2220
-
2221
2231
  var _this = undefined;
2222
2232
 
2223
2233
  var View = function View(props) {
@@ -2310,7 +2320,7 @@ var View = function View(props) {
2310
2320
  if (article.documentGroup && article.documentGroup.isSeries) {
2311
2321
  isMediaSeries = true;
2312
2322
  }
2313
- if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries$1(article.documentGroupMapping)) {
2323
+ if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries(article.documentGroupMapping)) {
2314
2324
  isMediaSeries = true;
2315
2325
  }
2316
2326
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.979-ris-update-v2",
3
+ "version": "1.0.979-ris-update-v3",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",