@mjhls/mjh-framework 1.0.109-8.1 → 1.0.109-8.2
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 +7 -2
- package/dist/esm/View.js +7 -2
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -1281,6 +1281,8 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1281
1281
|
|
|
1282
1282
|
var RelevantTopics = function RelevantTopics() {
|
|
1283
1283
|
if (content_placement && content_placement.length > 0 || documentGroupMapping && documentGroupMapping.length > 0) {
|
|
1284
|
+
console.log("content_placement 1", content_placement);
|
|
1285
|
+
console.log("documentGroupMapping 1", documentGroupMapping);
|
|
1284
1286
|
var relatedLinks = [];
|
|
1285
1287
|
if (documentGroupMapping && documentGroupMapping.length > 0) {
|
|
1286
1288
|
documentGroupMapping.forEach(function (documentGroup) {
|
|
@@ -1322,6 +1324,7 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1322
1324
|
|
|
1323
1325
|
var href = '' + docUrl;
|
|
1324
1326
|
relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: href }]);
|
|
1327
|
+
console.log("DOC RELATED", relatedLinks);
|
|
1325
1328
|
// if (documentGroup.parent) {
|
|
1326
1329
|
// relatedLinks = [
|
|
1327
1330
|
// ...relatedLinks,
|
|
@@ -1339,16 +1342,18 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1339
1342
|
}
|
|
1340
1343
|
console.log("HELLO");
|
|
1341
1344
|
if (content_placement && content_placement.length > 0) {
|
|
1342
|
-
console.log("
|
|
1343
|
-
console.log("cpmodificationrequired", cpModificationRequired);
|
|
1345
|
+
console.log("cpmodificationrequired", cpModificationRequired, content_placement);
|
|
1344
1346
|
content_placement.filter(function (item) {
|
|
1345
1347
|
return item.path !== 'news';
|
|
1346
1348
|
}).forEach(function (cp) {
|
|
1349
|
+
console.log("FOR EACH CP", cp);
|
|
1347
1350
|
if (cp.excludeRelatedContents) {
|
|
1348
1351
|
return null;
|
|
1349
1352
|
}
|
|
1350
1353
|
var cp_url = '' + cp.path;
|
|
1351
1354
|
try {
|
|
1355
|
+
console.log("cp", cp, "CALLED ME");
|
|
1356
|
+
ConsoleView.LOG("MODIFICATION REQUIRED", cpModificationRequired);
|
|
1352
1357
|
cp_url = cpModificationRequired ? getTargeting.getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && cp.path.indexOf('/') < 0 ? cp.ancestor + '/' + cp.parent + '/' + cp.path : !cp.path.indexOf(cp.ancestor) < 0 ? cp.ancestor + '/' + cp.path : '' + cp.path : cp.parent ? !cp.path.indexOf('/') < 0 ? cp.parent + '/' + cp.path : '' + cp.path : '' + cp.path;
|
|
1353
1358
|
} catch (e) {
|
|
1354
1359
|
console.log(e.message);
|
package/dist/esm/View.js
CHANGED
|
@@ -1271,6 +1271,8 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1271
1271
|
|
|
1272
1272
|
var RelevantTopics = function RelevantTopics() {
|
|
1273
1273
|
if (content_placement && content_placement.length > 0 || documentGroupMapping && documentGroupMapping.length > 0) {
|
|
1274
|
+
console.log("content_placement 1", content_placement);
|
|
1275
|
+
console.log("documentGroupMapping 1", documentGroupMapping);
|
|
1274
1276
|
var relatedLinks = [];
|
|
1275
1277
|
if (documentGroupMapping && documentGroupMapping.length > 0) {
|
|
1276
1278
|
documentGroupMapping.forEach(function (documentGroup) {
|
|
@@ -1312,6 +1314,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1312
1314
|
|
|
1313
1315
|
var href = '' + docUrl;
|
|
1314
1316
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: href }]);
|
|
1317
|
+
console.log("DOC RELATED", relatedLinks);
|
|
1315
1318
|
// if (documentGroup.parent) {
|
|
1316
1319
|
// relatedLinks = [
|
|
1317
1320
|
// ...relatedLinks,
|
|
@@ -1329,16 +1332,18 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1329
1332
|
}
|
|
1330
1333
|
console.log("HELLO");
|
|
1331
1334
|
if (content_placement && content_placement.length > 0) {
|
|
1332
|
-
console.log("
|
|
1333
|
-
console.log("cpmodificationrequired", cpModificationRequired);
|
|
1335
|
+
console.log("cpmodificationrequired", cpModificationRequired, content_placement);
|
|
1334
1336
|
content_placement.filter(function (item) {
|
|
1335
1337
|
return item.path !== 'news';
|
|
1336
1338
|
}).forEach(function (cp) {
|
|
1339
|
+
console.log("FOR EACH CP", cp);
|
|
1337
1340
|
if (cp.excludeRelatedContents) {
|
|
1338
1341
|
return null;
|
|
1339
1342
|
}
|
|
1340
1343
|
var cp_url = '' + cp.path;
|
|
1341
1344
|
try {
|
|
1345
|
+
console.log("cp", cp, "CALLED ME");
|
|
1346
|
+
ConsoleView.LOG("MODIFICATION REQUIRED", cpModificationRequired);
|
|
1342
1347
|
cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && cp.path.indexOf('/') < 0 ? cp.ancestor + '/' + cp.parent + '/' + cp.path : !cp.path.indexOf(cp.ancestor) < 0 ? cp.ancestor + '/' + cp.path : '' + cp.path : cp.parent ? !cp.path.indexOf('/') < 0 ? cp.parent + '/' + cp.path : '' + cp.path : '' + cp.path;
|
|
1343
1348
|
} catch (e) {
|
|
1344
1349
|
console.log(e.message);
|