- {
- setCurrentReference({
- "currentReference":
- currentView.viewKey != "watchedCases"
- ? currentView.viewKey ==
- "myRepresentations"
- ? resultsArr[key].caseRef
- : resultsArr[key].ticketnumber
- : resultsArr[key][
- "_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
- ],
+ resultsRowArr.push(
+
+
+ {
+ setCurrentReference({
+ "currentReference":
+ currentView.viewKey != "watchedCases"
+ ? currentView.viewKey ==
+ "myRepresentations"
+ ? resultsArr[key].caseRef
+ : resultsArr[key].ticketnumber
+ : resultsArr[key][
+ "_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
+ ],
- "currentType": currentView.viewKey,
- "incidentid":
- currentView.viewKey != "watchedCases"
- ? resultsArr[key].incidentid
- : resultsArr[key][
- "_pinswg_watchedcase_value"
- ],
+ "currentType": currentView.viewKey,
+ "incidentid":
+ currentView.viewKey != "watchedCases"
+ ? resultsArr[key].incidentid
+ : resultsArr[key][
+ "_pinswg_watchedcase_value"
+ ],
- "appealType":
- resultsArr[key].pinswg_appealcasetype,
- "repDetails":
- currentView.viewKey ==
- "myRepresentations" && resultsArr[key],
- });
- }}
- >
+ "appealType":
+ resultsArr[key].pinswg_appealcasetype,
+ "repDetails":
+ currentView.viewKey ==
+ "myRepresentations" &&
+ resultsArr[key],
+ });
+ }}
+ >
+
+ {t("search:searchresults-case-reference-label")}
+ :
+
+ {currentView.viewKey != "watchedCases"
+ ? currentView.viewKey == "myRepresentations"
+ ? resultsArr[key].caseRef
+ : resultsArr[key].ticketnumber
+ : resultsArr[key][
+ "_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
+ ]}
+
+
+
- {t("search:searchresults-case-reference-label")}:
+ {t("search:searchresults-site-address-label")}:
- {currentView.viewKey != "watchedCases"
- ? currentView.viewKey == "myRepresentations"
- ? resultsArr[key].caseRef
- : resultsArr[key].ticketnumber
- : resultsArr[key][
- "_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
- ]}
-
-
-
-
- {t("search:searchresults-site-address-label")}:
-
- {/* {getFormCollectionByID(appealTypeID).PrimaryIdAttribute ==
+ {/* {getFormCollectionByID(appealTypeID).PrimaryIdAttribute ==
"pinswg_dnsid"
? detailsObj.pinswg_projectlocation != null
? detailsObj.pinswg_projectlocation.indexOf(";") < 0
@@ -158,318 +177,378 @@ const ViewAllResults = (props) => {
)[0]
: ""
: ""} */}
- {currentView.viewKey == "awaitingSubmissionDetails" &&
- _.has(searchDetailsObj[key], "pinswg_siteaddressline1")
- ? searchDetailsObj[key].pinswg_siteaddressline1
- : ""}
- {_.has(detailsObj, "pinswg_siteaddressline1")
- ? detailsObj.pinswg_siteaddressline1
- : ""}
- {currentView.viewKey == "myRepresentations" &&
- _.has(searchDetailsObj[key].pinswg_siteaddressline1)
- ? searchDetailsObj[key].value[0].pinswg_siteaddressline1
- : ""}
- {_.has(detailsObj, "pinswg_siteaddressline1")
- ? detailsObj.pinswg_siteaddressline1
- : ""}
- {currentView.viewKey == "awaitingSubmissionDetails" &&
- _.has(
- searchDetailsObj[key],
- "pinswg_siteaddressline1"
- ) &&
- searchDetailsObj[key].pinswg_siteaddressline1 !=
- null &&
}
- {currentView.viewKey == "myRepresentations" &&
- _.has(searchDetailsObj[key].pinswg_siteaddressline1) &&
- searchDetailsObj[key].value[0]
- .pinswg_siteaddressline1 != null &&
}
- {_.has(detailsObj, "pinswg_siteaddressline1") &&
- detailsObj.pinswg_siteaddressline1 != null &&
}
- {currentView.viewKey == "awaitingSubmissionDetails" &&
- _.has(searchDetailsObj[key], "pinswg_siteaddressline1")
- ? searchDetailsObj[key].pinswg_siteaddressline2
- : ""}
- {currentView.viewKey == "myRepresentations" &&
- _.has(searchDetailsObj[key].pinswg_siteaddressline1)
- ? searchDetailsObj[key].pinswg_siteaddressline2
- : ""}
- {_.has(detailsObj, "pinswg_siteaddressline1")
- ? detailsObj.pinswg_siteaddressline2
- : ""}
- {currentView.viewKey == "awaitingSubmissionDetails" &&
- _.has(
- searchDetailsObj[key],
- "pinswg_siteaddressline2"
- ) &&
- searchDetailsObj[key].pinswg_siteaddressline2 !=
- null &&
}
+ {currentView.viewKey == "awaitingSubmissionDetails" &&
+ _.has(searchDetailsObj[key], "pinswg_siteaddressline1")
+ ? searchDetailsObj[key].pinswg_siteaddressline1
+ : ""}
+ {_.has(detailsObj, "pinswg_siteaddressline1")
+ ? detailsObj.pinswg_siteaddressline1
+ : ""}
+ {currentView.viewKey == "myRepresentations" &&
+ _.has(searchDetailsObj[key].pinswg_siteaddressline1)
+ ? searchDetailsObj[key].value[0]
+ .pinswg_siteaddressline1
+ : ""}
+ {_.has(detailsObj, "pinswg_siteaddressline1")
+ ? detailsObj.pinswg_siteaddressline1
+ : ""}
+ {currentView.viewKey == "awaitingSubmissionDetails" &&
+ _.has(
+ searchDetailsObj[key],
+ "pinswg_siteaddressline1"
+ ) &&
+ searchDetailsObj[key].pinswg_siteaddressline1 !=
+ null &&
}
+ {currentView.viewKey == "myRepresentations" &&
+ _.has(
+ searchDetailsObj[key].pinswg_siteaddressline1
+ ) &&
+ searchDetailsObj[key].value[0]
+ .pinswg_siteaddressline1 != null &&
}
+ {_.has(detailsObj, "pinswg_siteaddressline1") &&
+ detailsObj.pinswg_siteaddressline1 != null && (
+
+ )}
+ {currentView.viewKey == "awaitingSubmissionDetails" &&
+ _.has(searchDetailsObj[key], "pinswg_siteaddressline1")
+ ? searchDetailsObj[key].pinswg_siteaddressline2
+ : ""}
+ {currentView.viewKey == "myRepresentations" &&
+ _.has(searchDetailsObj[key].pinswg_siteaddressline1)
+ ? searchDetailsObj[key].pinswg_siteaddressline2
+ : ""}
+ {_.has(detailsObj, "pinswg_siteaddressline1")
+ ? detailsObj.pinswg_siteaddressline2
+ : ""}
+ {currentView.viewKey == "awaitingSubmissionDetails" &&
+ _.has(
+ searchDetailsObj[key],
+ "pinswg_siteaddressline2"
+ ) &&
+ searchDetailsObj[key].pinswg_siteaddressline2 !=
+ null &&
}
- {currentView.viewKey == "myRepresentations" &&
- _.has(searchDetailsObj[key].pinswg_siteaddressline2) &&
- searchDetailsObj[key].pinswg_siteaddressline1 !=
- null &&
}
+ {currentView.viewKey == "myRepresentations" &&
+ _.has(
+ searchDetailsObj[key].pinswg_siteaddressline2
+ ) &&
+ searchDetailsObj[key].pinswg_siteaddressline1 !=
+ null &&
}
- {_.has(detailsObj, "pinswg_siteaddressline2") &&
- detailsObj.pinswg_siteaddressline2 != null &&
}
- {currentView.viewKey == "awaitingSubmissionDetails" &&
- _.has(searchDetailsObj[key], "pinswg_siteaddresstown")
- ? searchDetailsObj[key].pinswg_siteaddresstown
- : ""}
- {currentView.viewKey == "myRepresentations" &&
- _.has(searchDetailsObj[key], "pinswg_siteaddresstown")
- ? searchDetailsObj[key].pinswg_siteaddresstown
- : ""}
- {_.has(detailsObj, "pinswg_siteaddresstown")
- ? detailsObj.pinswg_siteaddresstown
- : ""}
- {currentView.viewKey == "awaitingSubmissionDetails" &&
+ {_.has(detailsObj, "pinswg_siteaddressline2") &&
+ detailsObj.pinswg_siteaddressline2 != null && (
+
+ )}
+ {currentView.viewKey == "awaitingSubmissionDetails" &&
+ _.has(searchDetailsObj[key], "pinswg_siteaddresstown")
+ ? searchDetailsObj[key].pinswg_siteaddresstown
+ : ""}
+ {currentView.viewKey == "myRepresentations" &&
+ _.has(searchDetailsObj[key], "pinswg_siteaddresstown")
+ ? searchDetailsObj[key].pinswg_siteaddresstown
+ : ""}
+ {_.has(detailsObj, "pinswg_siteaddresstown")
+ ? detailsObj.pinswg_siteaddresstown
+ : ""}
+ {currentView.viewKey == "awaitingSubmissionDetails" &&
+ _.has(
+ searchDetailsObj[key],
+ "pinswg_siteaddresstown"
+ ) &&
+ searchDetailsObj[key].pinswg_siteaddresstown !=
+ null &&
}
+
+ {currentView.viewKey == "myRepresentations" &&
+ _.has(
+ searchDetailsObj[key],
+ "pinswg_siteaddresstown"
+ ) &&
+ searchDetailsObj[key].pinswg_siteaddresstown !=
+ null &&
}
+
+ {_.has(detailsObj, "pinswg_siteaddresstown") &&
+ detailsObj.pinswg_siteaddresstown != null &&
}
+ {currentView.viewKey == "awaitingSubmissionDetails" &&
+ _.has(searchDetailsObj[key], "pinswg_siteaddresscounty")
+ ? searchDetailsObj[key].pinswg_siteaddresscounty
+ : ""}
+ {currentView.viewKey == "myRepresentations" &&
+ _.has(searchDetailsObj[key], "pinswg_siteaddresscounty")
+ ? searchDetailsObj[key].pinswg_siteaddresscounty
+ : ""}
+ {_.has(detailsObj, "pinswg_siteaddresscounty")
+ ? detailsObj.pinswg_siteaddresscounty
+ : ""}
+ {currentView.viewKey == "awaitingSubmissionDetails" &&
+ _.has(
+ searchDetailsObj[key],
+ "pinswg_siteaddresscounty"
+ ) &&
+ searchDetailsObj[key].pinswg_siteaddresscounty !=
+ null &&
}
+ {_.has(detailsObj, "pinswg_siteaddresscounty") &&
+ detailsObj.pinswg_siteaddresscounty != null && (
+
+ )}
+ {currentView.viewKey == "awaitingSubmissionDetails" &&
_.has(
searchDetailsObj[key],
- "pinswg_siteaddresstown"
- ) &&
- searchDetailsObj[key].pinswg_siteaddresstown !=
- null &&
}
-
- {currentView.viewKey == "myRepresentations" &&
- _.has(
- searchDetailsObj[key],
- "pinswg_siteaddresstown"
- ) &&
- searchDetailsObj[key].pinswg_siteaddresstown !=
- null &&
}
-
- {_.has(detailsObj, "pinswg_siteaddresstown") &&
- detailsObj.pinswg_siteaddresstown != null &&
}
- {currentView.viewKey == "awaitingSubmissionDetails" &&
- _.has(searchDetailsObj[key], "pinswg_siteaddresscounty")
- ? searchDetailsObj[key].pinswg_siteaddresscounty
- : ""}
- {currentView.viewKey == "myRepresentations" &&
- _.has(searchDetailsObj[key], "pinswg_siteaddresscounty")
- ? searchDetailsObj[key].pinswg_siteaddresscounty
- : ""}
- {_.has(detailsObj, "pinswg_siteaddresscounty")
- ? detailsObj.pinswg_siteaddresscounty
- : ""}
- {currentView.viewKey == "awaitingSubmissionDetails" &&
- _.has(
- searchDetailsObj[key],
- "pinswg_siteaddresscounty"
- ) &&
- searchDetailsObj[key].pinswg_siteaddresscounty !=
- null &&
}
- {_.has(detailsObj, "pinswg_siteaddresscounty") &&
- detailsObj.pinswg_siteaddresscounty != null &&
}
- {currentView.viewKey == "awaitingSubmissionDetails" &&
- _.has(searchDetailsObj[key], "pinswg_siteaddresspostcode")
- ? searchDetailsObj[key].pinswg_siteaddresspostcode
- : ""}
- {_.has(detailsObj, "pinswg_siteaddresspostcode")
- ? detailsObj.pinswg_siteaddresspostcode
- : ""}
-
-
-
+ "pinswg_siteaddresspostcode"
+ )
+ ? searchDetailsObj[key].pinswg_siteaddresspostcode
+ : ""}
+ {_.has(detailsObj, "pinswg_siteaddresspostcode")
+ ? detailsObj.pinswg_siteaddresspostcode
+ : ""}
+
+
+
+ {currentView.viewKey == "awaitingSubmissionDetails"
+ ? t("search:searchresults-created-on-label")
+ : t("search:searchresults-applicant-label")}
+
{currentView.viewKey == "awaitingSubmissionDetails"
- ? t("search:searchresults-created-on-label")
- : t("search:searchresults-applicant-label")}
-
- {currentView.viewKey == "awaitingSubmissionDetails"
- ? formatDates(item.createdon)
- : _.has(detailsObj, [
- "_pinswg_appellant_value@OData.Community.Display.V1.FormattedValue",
- ])
- ? detailsObj[
- "_pinswg_appellant_value@OData.Community.Display.V1.FormattedValue"
- ]
- : currentView.viewKey == "myRepresentations"
- ? searchDetailsObj[key][
- "_pinswg_appellant_value@OData.Community.Display.V1.FormattedValue"
- ]
- : resultsArr[key][
- "_customerid_value@OData.Community.Display.V1.FormattedValue"
- ]}
-
-
-
- {t("search:searchresults-authority-label")}:
-
- {currentView.viewKey == "awaitingSubmissionDetails" &&
- _.has(resultsArr[key], "pinswg_lpaname")
- ? router.locale == "cy"
- ? jsonpath(
- '$..[?(@.value=="' +
- resultsArr[key].pinswg_lpaname +
- '")].value_cy',
- transLookup
- )
- : resultsArr[key].pinswg_lpaname || "N/A"
- : ""}
- {_.has(resultsArr[key], [
- "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue",
- ])
- ? router.locale == "cy"
- ? jsonpath(
- '$..[?(@.value=="' +
- resultsArr[key][
- "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
- ] +
- '")].value_cy',
- transLookup
- )
- : resultsArr[key][
- "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
- ] || "N/A"
- : ""}
- {_.has(searchDetailsObj[key], [
- "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue",
- ])
- ? router.locale == "cy"
- ? jsonpath(
- '$..[?(@.value=="' +
- searchDetailsObj[key].value[0][
- "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValuee"
- ] +
- '")].value_cy',
- transLookup
- )
+ ? formatDates(item.createdon)
+ : _.has(detailsObj, [
+ "_pinswg_appellant_value@OData.Community.Display.V1.FormattedValue",
+ ])
+ ? detailsObj[
+ "_pinswg_appellant_value@OData.Community.Display.V1.FormattedValue"
+ ]
: currentView.viewKey == "myRepresentations"
- ? searchDetailsObj[key].value
- : searchDetailsObj[key].value[0][
- "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
- ] || "N/A"
- : ""}
- {_.has(resultsArr[key], [
- "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue",
- ])
- ? router.locale == "cy"
+ ? searchDetailsObj[key][
+ "_pinswg_appellant_value@OData.Community.Display.V1.FormattedValue"
+ ]
+ : resultsArr[key][
+ "_customerid_value@OData.Community.Display.V1.FormattedValue"
+ ]}
+
+
+
+ {t("search:searchresults-authority-label")}:
+
+ {currentView.viewKey == "awaitingSubmissionDetails" &&
+ _.has(resultsArr[key], "pinswg_lpaname")
+ ? router.locale == "cy"
+ ? jsonpath(
+ '$..[?(@.value=="' +
+ resultsArr[key].pinswg_lpaname +
+ '")].value_cy',
+ transLookup
+ )
+ : resultsArr[key].pinswg_lpaname || "N/A"
+ : ""}
+ {_.has(resultsArr[key], [
+ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue",
+ ])
+ ? router.locale == "cy"
+ ? jsonpath(
+ '$..[?(@.value=="' +
+ resultsArr[key][
+ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
+ ] +
+ '")].value_cy',
+ transLookup
+ )
+ : resultsArr[key][
+ "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
+ ] || "N/A"
+ : ""}
+ {_.has(searchDetailsObj[key], [
+ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue",
+ ])
+ ? router.locale == "cy"
+ ? jsonpath(
+ '$..[?(@.value=="' +
+ searchDetailsObj[key].value[0][
+ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValuee"
+ ] +
+ '")].value_cy',
+ transLookup
+ )
+ : currentView.viewKey == "myRepresentations"
+ ? searchDetailsObj[key].value
+ : searchDetailsObj[key].value[0][
+ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
+ ] || "N/A"
+ : ""}
+ {_.has(resultsArr[key], [
+ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue",
+ ])
+ ? router.locale == "cy"
+ ? jsonpath(
+ '$..[?(@.value=="' +
+ resultsArr[key][
+ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValuee"
+ ] +
+ '")].value_cy',
+ transLookup
+ )
+ : resultsArr[key][
+ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
+ ] ||
+ (currentView.viewKey == "myRepresentations"
+ ? ""
+ : "N/A")
+ : currentView.viewKey == "myRepresentations" &&
+ router.locale == "cy" &&
+ jsonpath(
+ '$..[?(@.value=="' +
+ searchDetailsObj[key][
+ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
+ ] +
+ '")].value_cy',
+ transLookup
+ )}
+
+
+
+ {t("search:searchresults-case-type-label")}:
+
+
+ {currentView.viewKey == "awaitingSubmissionDetails"
+ ? router.locale == "cy"
+ ? jsonpath(
+ '$..[?(@.value=="' +
+ getFormCollectionByID(
+ item.pinswg_appealcasetype
+ ).value +
+ '")].value_cy',
+ transLookup
+ )
+ : getFormCollectionByID(
+ item.pinswg_appealcasetype
+ ).value || "N/A"
+ : router.locale == "cy"
? jsonpath(
'$..[?(@.value=="' +
- resultsArr[key][
- "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValuee"
+ item[
+ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] +
'")].value_cy',
transLookup
)
- : resultsArr[key][
- "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
+ : item[
+ "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] ||
(currentView.viewKey == "myRepresentations"
? ""
- : "N/A")
- : currentView.viewKey == "myRepresentations" &&
- router.locale == "cy" &&
- jsonpath(
- '$..[?(@.value=="' +
- searchDetailsObj[key][
- "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
- ] +
- '")].value_cy',
- transLookup
- )}
-
-
-
- {t("search:searchresults-case-type-label")}:
-
+ : "N/A")}
- {currentView.viewKey == "awaitingSubmissionDetails"
- ? router.locale == "cy"
- ? jsonpath(
- '$..[?(@.value=="' +
- getFormCollectionByID(
- item.pinswg_appealcasetype
- ).value +
- '")].value_cy',
- transLookup
- )
- : getFormCollectionByID(item.pinswg_appealcasetype)
- .value || "N/A"
- : router.locale == "cy"
- ? jsonpath(
- '$..[?(@.value=="' +
- item[
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
- ] +
- '")].value_cy',
- transLookup
- )
- : item[
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
- ] ||
- (currentView.viewKey == "myRepresentations"
- ? ""
- : "N/A")}
+ {currentView.viewKey == "myRepresentations" &&
+ (router.locale == "cy"
+ ? jsonpath(
+ '$..[?(@.value=="' +
+ getFormCollectionByID(
+ searchDetailsObj[key].appealType
+ ).value +
+ '")].value_cy',
+ transLookup
+ )[0]
+ : getFormCollectionByID(
+ searchDetailsObj[key].appealType
+ ).value)}
+ {_.has(
+ searchDetailsObj[key],
+ "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
+ )}
+
+
+
+ {currentView.viewKey == "myRepresentations"
+ ? "Created"
+ : t("search:searchresults-status-label")}
+ :
+
- {currentView.viewKey == "myRepresentations" &&
- (router.locale == "cy"
- ? jsonpath(
- '$..[?(@.value=="' +
- getFormCollectionByID(
- searchDetailsObj[key].appealType
- ).value +
- '")].value_cy',
- transLookup
- )[0]
- : getFormCollectionByID(
- searchDetailsObj[key].appealType
- ).value)}
- {_.has(
- searchDetailsObj[key],
- "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
- )}
-
-
-
- {currentView.viewKey == "myRepresentations"
- ? "Created"
- : t("search:searchresults-status-label")}
- :
-
+ {currentView.viewKey == "awaitingSubmissionDetails"
+ ? router.locale == "cy"
+ ? jsonpath(
+ '$..[?(@.statuscode=="' +
+ item.statuscode +
+ '")].value_cy',
+ transLookup
+ )
+ : jsonpath(
+ '$..[?(@.statuscode=="' +
+ item.statuscode +
+ '")].value',
+ transLookup
+ ) || "N/A"
+ : currentView.viewKey == "myRepresentations"
+ ? repRaisedDate(item.createdDate) // ? router.locale == "cy"
+ : // ? jsonpath(
+ //
+ // '$..[?(@.value=="' +
+ // searchDetailsObj[key].value[0][
+ // "statuscode@OData.Community.Display.V1.FormattedValue"
+ // ] +
+ // '")].value_cy',transLookup,
+ // )
+ // : searchDetailsObj[key].value[0][
+ // "statuscode@OData.Community.Display.V1.FormattedValue"
+ // ] || "N/A"
+ // : router.locale == "cy"
+ // ? jsonpath(
+ //
+ // '$..[?(@.value=="' +
+ // item[
+ // "statuscode@OData.Community.Display.V1.FormattedValue"
+ // ] +
+ // '")].value_cy',transLookup,
+ // )
+ item[
+ "statuscode@OData.Community.Display.V1.FormattedValue"
+ ] || "N/A"}
+
+
+ );
+ });
+ };
+ buildResultsRowArr();
- {currentView.viewKey == "awaitingSubmissionDetails"
- ? router.locale == "cy"
- ? jsonpath(
- '$..[?(@.statuscode=="' +
- item.statuscode +
- '")].value_cy',
- transLookup
- )
- : jsonpath(
- '$..[?(@.statuscode=="' +
- item.statuscode +
- '")].value',
- transLookup
- ) || "N/A"
- : currentView.viewKey == "myRepresentations"
- ? repRaisedDate(item.createdDate) // ? router.locale == "cy"
- : // ? jsonpath(
- //
- // '$..[?(@.value=="' +
- // searchDetailsObj[key].value[0][
- // "statuscode@OData.Community.Display.V1.FormattedValue"
- // ] +
- // '")].value_cy',transLookup,
- // )
- // : searchDetailsObj[key].value[0][
- // "statuscode@OData.Community.Display.V1.FormattedValue"
- // ] || "N/A"
- // : router.locale == "cy"
- // ? jsonpath(
- //
- // '$..[?(@.value=="' +
- // item[
- // "statuscode@OData.Community.Display.V1.FormattedValue"
- // ] +
- // '")].value_cy',transLookup,
- // )
- item[
- "statuscode@OData.Community.Display.V1.FormattedValue"
- ] || "N/A"}
-