@mjhls/mjh-framework 1.0.979-ris-update-v1 → 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 +26 -14
- package/dist/esm/View.js +26 -14
- package/package.json +1 -1
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,
|
|
@@ -1086,6 +1107,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1086
1107
|
}, client.config()));
|
|
1087
1108
|
}
|
|
1088
1109
|
};
|
|
1110
|
+
|
|
1089
1111
|
var getAbstract = function getAbstract() {
|
|
1090
1112
|
return article.abstract && article.abstract.map(function (block) {
|
|
1091
1113
|
if (block.children) return block.children.map(function (child) {
|
|
@@ -1093,6 +1115,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1093
1115
|
});
|
|
1094
1116
|
}).join(' ');
|
|
1095
1117
|
};
|
|
1118
|
+
|
|
1096
1119
|
var renderIsiContent = function renderIsiContent(article) {
|
|
1097
1120
|
var url = article.url.current;
|
|
1098
1121
|
|
|
@@ -1126,7 +1149,8 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1126
1149
|
if (issue.abbreviatedJournal) {
|
|
1127
1150
|
fileContent += 'JO - ' + issue.abbreviatedJournal + '\n'; //Journal Name - JO
|
|
1128
1151
|
}
|
|
1129
|
-
if (article.abstract) fileContent += 'AB
|
|
1152
|
+
if (article.abstract) fileContent += 'AB - ' + getAbstract() + '\n'; //Abstract - AB
|
|
1153
|
+
if (article.abstract) fileContent += 'N2 - ' + getAbstract() + '\n'; //Abstract - N2
|
|
1130
1154
|
if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
|
|
1131
1155
|
fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
|
|
1132
1156
|
if (issue.year) fileContent += 'PY - ' + issue.year + '\n'; //Published Year - PY
|
|
@@ -1163,7 +1187,6 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1163
1187
|
}
|
|
1164
1188
|
return authorList;
|
|
1165
1189
|
};
|
|
1166
|
-
|
|
1167
1190
|
var downloadRIS = function downloadRIS() {
|
|
1168
1191
|
var fileContent = generateRIS();
|
|
1169
1192
|
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
@@ -2215,17 +2238,6 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2215
2238
|
);
|
|
2216
2239
|
};
|
|
2217
2240
|
|
|
2218
|
-
var checkDocGroupMappingForSeries$1 = function checkDocGroupMappingForSeries(docGroupArray) {
|
|
2219
|
-
|
|
2220
|
-
for (var i = 0; i < docGroupArray.length; i++) {
|
|
2221
|
-
if (docGroupArray[i].isSeries) {
|
|
2222
|
-
return docGroupArray[i];
|
|
2223
|
-
}
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
return false;
|
|
2227
|
-
};
|
|
2228
|
-
|
|
2229
2241
|
var _this = undefined;
|
|
2230
2242
|
|
|
2231
2243
|
var View = function View(props) {
|
|
@@ -2318,7 +2330,7 @@ var View = function View(props) {
|
|
|
2318
2330
|
if (article.documentGroup && article.documentGroup.isSeries) {
|
|
2319
2331
|
isMediaSeries = true;
|
|
2320
2332
|
}
|
|
2321
|
-
if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries
|
|
2333
|
+
if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries(article.documentGroupMapping)) {
|
|
2322
2334
|
isMediaSeries = true;
|
|
2323
2335
|
}
|
|
2324
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,
|
|
@@ -1076,6 +1097,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1076
1097
|
}, client.config()));
|
|
1077
1098
|
}
|
|
1078
1099
|
};
|
|
1100
|
+
|
|
1079
1101
|
var getAbstract = function getAbstract() {
|
|
1080
1102
|
return article.abstract && article.abstract.map(function (block) {
|
|
1081
1103
|
if (block.children) return block.children.map(function (child) {
|
|
@@ -1083,6 +1105,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1083
1105
|
});
|
|
1084
1106
|
}).join(' ');
|
|
1085
1107
|
};
|
|
1108
|
+
|
|
1086
1109
|
var renderIsiContent = function renderIsiContent(article) {
|
|
1087
1110
|
var url = article.url.current;
|
|
1088
1111
|
|
|
@@ -1116,7 +1139,8 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1116
1139
|
if (issue.abbreviatedJournal) {
|
|
1117
1140
|
fileContent += 'JO - ' + issue.abbreviatedJournal + '\n'; //Journal Name - JO
|
|
1118
1141
|
}
|
|
1119
|
-
if (article.abstract) fileContent += 'AB
|
|
1142
|
+
if (article.abstract) fileContent += 'AB - ' + getAbstract() + '\n'; //Abstract - AB
|
|
1143
|
+
if (article.abstract) fileContent += 'N2 - ' + getAbstract() + '\n'; //Abstract - N2
|
|
1120
1144
|
if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
|
|
1121
1145
|
fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
|
|
1122
1146
|
if (issue.year) fileContent += 'PY - ' + issue.year + '\n'; //Published Year - PY
|
|
@@ -1153,7 +1177,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1153
1177
|
}
|
|
1154
1178
|
return authorList;
|
|
1155
1179
|
};
|
|
1156
|
-
|
|
1157
1180
|
var downloadRIS = function downloadRIS() {
|
|
1158
1181
|
var fileContent = generateRIS();
|
|
1159
1182
|
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
@@ -2205,17 +2228,6 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2205
2228
|
);
|
|
2206
2229
|
};
|
|
2207
2230
|
|
|
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
|
-
|
|
2219
2231
|
var _this = undefined;
|
|
2220
2232
|
|
|
2221
2233
|
var View = function View(props) {
|
|
@@ -2308,7 +2320,7 @@ var View = function View(props) {
|
|
|
2308
2320
|
if (article.documentGroup && article.documentGroup.isSeries) {
|
|
2309
2321
|
isMediaSeries = true;
|
|
2310
2322
|
}
|
|
2311
|
-
if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries
|
|
2323
|
+
if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries(article.documentGroupMapping)) {
|
|
2312
2324
|
isMediaSeries = true;
|
|
2313
2325
|
}
|
|
2314
2326
|
|