uodated queries to sort deep recursion

This commit is contained in:
2025-04-16 08:44:45 +01:00
parent 420501dbf1
commit d882e65071
54 changed files with 270 additions and 267 deletions
+7 -7
View File
@@ -158,7 +158,7 @@ const DocumentDetails = (props) => {
<option value="all" key="00"> <option value="all" key="00">
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: '$..[?(@.value=="All")].value_cy', path: '$..[?(@ && @.value=="All")].value_cy',
json: transLookup, json: transLookup,
eval: true, eval: true,
}) })
@@ -175,7 +175,7 @@ const DocumentDetails = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item.pinswg_isharedocumentlocationsLabel + item.pinswg_isharedocumentlocationsLabel +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -322,7 +322,7 @@ const DocumentDetails = (props) => {
documentDetailsArr.map((item, key) => { documentDetailsArr.map((item, key) => {
let detailsObj = jsonpath({ let detailsObj = jsonpath({
path: path:
"$..[?(@._pinswg_documentids_value=='" + "$..[?(@ && @._pinswg_documentids_value=='" +
incidentid + incidentid +
"')]", "')]",
json: item, json: item,
@@ -410,7 +410,7 @@ const DocumentDetails = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue" "pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -575,7 +575,7 @@ const DocumentDetails = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item.pinswg_isharedocumentlocationsLabel + item.pinswg_isharedocumentlocationsLabel +
'")].value_cy', '")].value_cy',
jsonL: transLookup, jsonL: transLookup,
@@ -731,7 +731,7 @@ const DocumentDetails = (props) => {
documentDetailsArr.map((item, key) => { documentDetailsArr.map((item, key) => {
let detailsObj = jsonpath({ let detailsObj = jsonpath({
path: path:
"$..[?(@._pinswg_documentids_value=='" + "$..[?(@ && @._pinswg_documentids_value=='" +
incidentid + incidentid +
"')]", "')]",
json: item, json: item,
@@ -824,7 +824,7 @@ const DocumentDetails = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue" "pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue"
] + ] +
+10 -8
View File
@@ -210,18 +210,18 @@ let MakeRepresentation = (props) => {
currentType == "searchResultsObj" currentType == "searchResultsObj"
? (casesObj = jsonpath({ ? (casesObj = jsonpath({
path: '$..[?(@.title=="' + caseReference + '")]', path: '$..[?(@ && @.title=="' + caseReference + '")]',
json: setCaseQueryObj, json: setCaseQueryObj,
eval: true, eval: true,
})) }))
: currentType == "watchedCases" : currentType == "watchedCases"
? (casesObj = jsonpath({ ? (casesObj = jsonpath({
path: '$..[?(@.ticketnumber=="' + caseReference + '")]', path: '$..[?(@ && @.ticketnumber=="' + caseReference + '")]',
json: watchedCases, json: watchedCases,
eval: true, eval: true,
})) }))
: (casesObj = jsonpath({ : (casesObj = jsonpath({
path: '$..[?(@.reference=="' + caseReference + '")]', path: '$..[?(@ && @.reference=="' + caseReference + '")]',
json: setCaseQueryObj, json: setCaseQueryObj,
eval: true, eval: true,
})); }));
@@ -267,7 +267,7 @@ let MakeRepresentation = (props) => {
resultsObj = jsonpath({ resultsObj = jsonpath({
path: path:
'$..[?(@.ticketnumber=="' + '$..[?(@ && @.ticketnumber=="' +
currentView.caseReference.currentReference + currentView.caseReference.currentReference +
'")]', '")]',
json: setCaseResultsObj, json: setCaseResultsObj,
@@ -280,13 +280,15 @@ let MakeRepresentation = (props) => {
? router.query.state == "edit" ? router.query.state == "edit"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.repfile_name =="' + router.query.created + '")]', '$..[?(@ && @.repfile_name =="' +
router.query.created +
'")]',
json: setCaseDetailsObj, json: setCaseDetailsObj,
eval: true, eval: true,
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.pinswg_name =="' + '$..[?(@ && @.pinswg_name =="' +
currentView.caseReference.currentReference + currentView.caseReference.currentReference +
'")]', '")]',
json: setCaseDetailsObj, json: setCaseDetailsObj,
@@ -294,7 +296,7 @@ let MakeRepresentation = (props) => {
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.pinswg_name =="' + '$..[?(@ && @.pinswg_name =="' +
currentView.caseReference.currentReference + currentView.caseReference.currentReference +
'")]', '")]',
json: setCaseDetailsObj, json: setCaseDetailsObj,
@@ -943,7 +945,7 @@ let MakeRepresentation = (props) => {
var detailsObj = {}; var detailsObj = {};
detailsObj = jsonpath({ detailsObj = jsonpath({
path: '$..[?(@.pinswg_name=="' + caseReference + '")]', path: '$..[?(@ && @.pinswg_name=="' + caseReference + '")]',
json: setCaseDetailsObj, json: setCaseDetailsObj,
eval: true, eval: true,
}); });
@@ -29,7 +29,7 @@ const RepDetails = (props) => {
: caseReference; : caseReference;
detailsObj = jsonpath({ detailsObj = jsonpath({
path: '$..[?(@.pinswg_name=="' + caseReference + '")]', path: '$..[?(@ && @.pinswg_name=="' + caseReference + '")]',
json: setCaseDetailsObj, json: setCaseDetailsObj,
eval: true, eval: true,
}); });
@@ -178,7 +178,7 @@ let RepLPA = (props) => {
detailsObj = jsonpath({ detailsObj = jsonpath({
path: path:
'$..[?(@.pinswg_name=="' + '$..[?(@ && @.pinswg_name=="' +
currentView.caseReference.currentReference + currentView.caseReference.currentReference +
'")]', '")]',
json: setCaseDetailsObj, json: setCaseDetailsObj,
@@ -197,7 +197,7 @@ let RepLPA = (props) => {
resultsObj = jsonpath({ resultsObj = jsonpath({
path: path:
'$..[?(@.pinswg_name=="' + '$..[?@ && @.pinswg_name=="' +
currentView.caseReference.currentReference + currentView.caseReference.currentReference +
'")]', '")]',
json: setCaseResultssObj, json: setCaseResultssObj,
@@ -21,7 +21,7 @@ const RepLPADetails = (props) => {
var detailsObj = {}; var detailsObj = {};
detailsObj = jsonpath({ detailsObj = jsonpath({
path: '$..[?(@.pinswg_name=="' + caseReference + '")]', path: '$..[?(@ && @.pinswg_name=="' + caseReference + '")]',
json: setCaseDetailsObj, json: setCaseDetailsObj,
eval: true, eval: true,
}); });
@@ -60,7 +60,7 @@ let Enforcement_Questionnaire = (props) => {
detailsObj = jsonpath({ detailsObj = jsonpath({
path: path:
'$..[?(@.pinswg_name=="' + '$..[?(@ && @.pinswg_name=="' +
currentView.caseReference.currentReference + currentView.caseReference.currentReference +
'")]', '")]',
json: setCaseDetailsObj, json: setCaseDetailsObj,
@@ -83,7 +83,7 @@ let Enforcement_Questionnaire = (props) => {
resultsObj = jsonpath({ resultsObj = jsonpath({
path: path:
'$..[?(@.ticketnumber=="' + '$..[?(@ && @.ticketnumber=="' +
currentView.caseReference.currentReference + currentView.caseReference.currentReference +
'")]', '")]',
json: setCaseResultssObj, json: setCaseResultssObj,
@@ -62,7 +62,7 @@ let S78_Questionnaire = (props) => {
detailsObj = jsonpath({ detailsObj = jsonpath({
path: path:
'$..[?(@.pinswg_name=="' + '$..[?(@ && @.pinswg_name=="' +
currentView.caseReference.currentReference + currentView.caseReference.currentReference +
'")]', '")]',
json: setCaseResultssObj, json: setCaseResultssObj,
@@ -85,7 +85,7 @@ let S78_Questionnaire = (props) => {
resultsObj = jsonpath({ resultsObj = jsonpath({
path: path:
"$..[?(@." + "$..[?(@ && @." +
(router.query.hasOwnProperty("state") (router.query.hasOwnProperty("state")
? router.query.state == "edit" ? router.query.state == "edit"
? "caseRef" ? "caseRef"
+2 -2
View File
@@ -59,7 +59,7 @@ const RepresentationList = (props) => {
{representationsArr.map((item, key) => { {representationsArr.map((item, key) => {
let detailsObj = jsonpath({ let detailsObj = jsonpath({
path: path:
"$..[?(@.pinswg_representationsid=='" + "$..[?(@ && @.pinswg_representationsid=='" +
incidentid + incidentid +
"')]", "')]",
json: item, json: item,
@@ -91,7 +91,7 @@ const RepresentationList = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue" "pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue"
] + ] +
+9 -9
View File
@@ -134,7 +134,7 @@ const CaseSummary = (props) => {
const isWatchedCase = (whichIncident) => { const isWatchedCase = (whichIncident) => {
let isWatched = jsonpath({ let isWatched = jsonpath({
path: path:
"$..value[?(@._pinswg_watchedcase_value=='" + "$..value[?(@ && @._pinswg_watchedcase_value=='" +
whichIncident + whichIncident +
"')]", "')]",
json: watchedCases, json: watchedCases,
@@ -176,30 +176,30 @@ const CaseSummary = (props) => {
currentType == "searchResultsObj" currentType == "searchResultsObj"
? (casesObj = jsonpath({ ? (casesObj = jsonpath({
path: '$..[?(@.title=="' + caseReference + '")]', path: '$..[?(@ && @.title=="' + caseReference + '")]',
json: searchResultsObj, json: searchResultsObj,
eval: true, eval: true,
})) }))
: currentType == "watchedCases" : currentType == "watchedCases"
? (casesObj = jsonpath({ ? (casesObj = jsonpath({
path: '$..[?(@.pinswg_title=="' + caseReference + '")]', path: '$..[?(@ && @.pinswg_title=="' + caseReference + '")]',
json: setCaseQueryObj, json: setCaseQueryObj,
eval: true, eval: true,
})) }))
: currentType == "myCases" : currentType == "myCases"
? (casesObj = jsonpath({ ? (casesObj = jsonpath({
path: '$..[?(@.pinswg_title=="' + caseReference + '")]', path: '$..[?(@ && @.pinswg_title=="' + caseReference + '")]',
json: setCaseQueryObj, json: setCaseQueryObj,
eval: true, eval: true,
})) }))
: currentType == "directResultsObj" : currentType == "directResultsObj"
? (casesObj = jsonpath({ ? (casesObj = jsonpath({
path: '$..[?(@.ticketnumber=="' + caseReference + '")]', path: '$..[?(@ && @.ticketnumber=="' + caseReference + '")]',
json: setCaseQueryObj, json: setCaseQueryObj,
eval: true, eval: true,
})) }))
: (casesObj = jsonpath({ : (casesObj = jsonpath({
path: '$..[?(@.reference=="' + caseReference + '")]', path: '$..[?(@ && @.reference=="' + caseReference + '")]',
json: setCaseQueryObj, json: setCaseQueryObj,
eval: true, eval: true,
})); }));
@@ -210,14 +210,14 @@ const CaseSummary = (props) => {
currentType == "searchResultsObj" currentType == "searchResultsObj"
? (detailsObj = jsonpath({ ? (detailsObj = jsonpath({
path: '$..[?(@.pinswg_name=="' + caseReference + '")]', path: '$..[?(@ && @.pinswg_name=="' + caseReference + '")]',
json: searchDetailsObj, json: searchDetailsObj,
eval: true, eval: true,
})) }))
: currentType == "directResultsObj" : currentType == "directResultsObj"
? (detailsObj = setCaseDetailsObj[0].value[0]) ? (detailsObj = setCaseDetailsObj[0].value[0])
: (detailsObj = jsonpath({ : (detailsObj = jsonpath({
path: '$..[?(@.pinswg_name=="' + caseReference + '")]', path: '$..[?(@ && @.pinswg_name=="' + caseReference + '")]',
jsopn: setCaseDetailsObj, jsopn: setCaseDetailsObj,
eval: true, eval: true,
})); }));
@@ -399,7 +399,7 @@ const CaseSummary = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_casestage@OData.Community.Display.V1.FormattedValue" "pinswg_casestage@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_advertsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -54,7 +54,7 @@ const Pinswg_advertsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_speacialistcaseprocess@OData.Community.Display.V1.FormattedValue" "pinswg_speacialistcaseprocess@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -76,7 +76,7 @@ const Pinswg_advertsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -112,7 +112,7 @@ const Pinswg_advertsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -133,7 +133,7 @@ const Pinswg_advertsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -154,7 +154,7 @@ const Pinswg_advertsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -179,7 +179,7 @@ const Pinswg_advertsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_callinss77id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_callinss77id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_callinss77id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_callinss77id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_callinss77id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_callinss77id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_commonlandid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_commonlandid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_commonlandid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_commonlandid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_commonlandid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_commonlandid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -231,7 +231,7 @@ const Pinswg_commonlandid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -239,7 +239,7 @@ const Pinswg_commonlandid = (props) => {
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value', '")].value',
json: transLookup, json: transLookup,
@@ -29,7 +29,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_communityinfrastructurelevyid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -69,7 +69,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -90,7 +90,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -111,7 +111,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -135,7 +135,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -211,7 +211,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -219,7 +219,7 @@ const Pinswg_compulsorypurchaseordersid = (props) => {
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value', '")].value',
json: transLookup, json: transLookup,
+8 -8
View File
@@ -124,7 +124,7 @@ const Pinswg_dnsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -153,7 +153,7 @@ const Pinswg_dnsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj.pinswg_webaddress + detailsObj.pinswg_webaddress +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -191,7 +191,7 @@ const Pinswg_dnsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -212,7 +212,7 @@ const Pinswg_dnsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_choiceofprocedure@OData.Community.Display.V1.FormattedValue" "pinswg_choiceofprocedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -236,7 +236,7 @@ const Pinswg_dnsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({path: ? jsonpath({path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -275,7 +275,7 @@ const Pinswg_dnsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -344,7 +344,7 @@ const Pinswg_dnsid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -444,7 +444,7 @@ const Pinswg_dnsid = (props) => {
<dd className="govuk-summary-list__value"> <dd className="govuk-summary-list__value">
{router.locale == "cy" {router.locale == "cy"
? jsonpath({path: ? jsonpath({path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj.pinswg_recommendation + detailsObj.pinswg_recommendation +
'")].value_cy', '")].value_cy',
transLookup, transLookup,
@@ -67,7 +67,7 @@ const Pinswg_electricityactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -91,7 +91,7 @@ const Pinswg_electricityactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -129,7 +129,7 @@ const Pinswg_electricityactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -152,7 +152,7 @@ const Pinswg_electricityactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -173,7 +173,7 @@ const Pinswg_electricityactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -197,7 +197,7 @@ const Pinswg_electricityactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -273,7 +273,7 @@ const Pinswg_electricityactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj.pinswg_recommendation + detailsObj.pinswg_recommendation +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -296,7 +296,7 @@ const Pinswg_electricityactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj.pinswg_webaddress + detailsObj.pinswg_webaddress +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -29,7 +29,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_enforcementlistedbuildingconseid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_enforcementnoticeappeals174id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_environmentalpermittingid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_environmentalpermittingid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_environmentalpermittingid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_environmentalpermittingid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_environmentalpermittingid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_environmentalpermittingid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -231,7 +231,7 @@ const Pinswg_environmentalpermittingid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -239,7 +239,7 @@ const Pinswg_environmentalpermittingid = (props) => {
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value', '")].value',
json: transLookup, json: transLookup,
@@ -67,7 +67,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -91,7 +91,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -129,7 +129,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -150,7 +150,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -174,7 +174,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -250,7 +250,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj.pinswg_recommendation + detailsObj.pinswg_recommendation +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -273,7 +273,7 @@ const Pinswg_harbourrevisionorderid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj.pinswg_webaddress + detailsObj.pinswg_webaddress +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -29,7 +29,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -54,7 +54,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_specialistcaseprocess@OData.Community.Display.V1.FormattedValue" "pinswg_specialistcaseprocess@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -76,7 +76,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -112,7 +112,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -133,7 +133,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -154,7 +154,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -178,7 +178,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -254,7 +254,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -262,7 +262,7 @@ const Pinswg_hedgeshedgerowstreepreservatioid = (props) => {
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value', '")].value',
json: transLookup, json: transLookup,
@@ -29,7 +29,7 @@ const Pinswg_householderappealhasid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_householderappealhasid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_householderappealhasid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_householderappealhasid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -134,7 +134,7 @@ const Pinswg_householderappealhasid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_lawfuldevelopmentcertificatappid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
+6 -6
View File
@@ -29,7 +29,7 @@ const Pinswg_ldpid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_ldpid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_ldpid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_ldpid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_ldpid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_ldpid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_listedbuildingandconservationrid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_maintenanceoflands217id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -231,7 +231,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -239,7 +239,7 @@ const Pinswg_miscellaneouscasewordid = (props) => {
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value', '")].value',
json: transLookup, json: transLookup,
@@ -29,7 +29,7 @@ const Pinswg_nonvalidationid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_nonvalidationid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -88,7 +88,7 @@ const Pinswg_nonvalidationid = (props) => {
<dd className="govuk-summary-list__value"> <dd className="govuk-summary-list__value">
{router.locale == "cy" {router.locale == "cy"
? jsonpath({path: ? jsonpath({path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -109,7 +109,7 @@ const Pinswg_nonvalidationid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -133,7 +133,7 @@ const Pinswg_nonvalidationid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decisionissued@OData.Community.Display.V1.FormattedValue" "pinswg_decisionissued@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_planningappeals78id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_planningappeals78id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_planningappeals78id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_planningappeals78id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -134,7 +134,7 @@ const Pinswg_planningappeals78id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -158,7 +158,7 @@ const Pinswg_planningappeals78id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_dicision@OData.Community.Display.V1.FormattedValue" "pinswg_dicision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_planningconditionss73s79id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -29,7 +29,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_planningobligationappeals106id = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
+9 -9
View File
@@ -29,7 +29,7 @@ const Pinswg_rowid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -54,7 +54,7 @@ const Pinswg_rowid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_specialistcaseprocess@OData.Community.Display.V1.FormattedValue" "pinswg_specialistcaseprocess@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -76,7 +76,7 @@ const Pinswg_rowid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -112,7 +112,7 @@ const Pinswg_rowid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -133,7 +133,7 @@ const Pinswg_rowid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -154,7 +154,7 @@ const Pinswg_rowid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -178,7 +178,7 @@ const Pinswg_rowid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -254,7 +254,7 @@ const Pinswg_rowid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -262,7 +262,7 @@ const Pinswg_rowid = (props) => {
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value', '")].value',
json: transLookup, json: transLookup,
@@ -67,7 +67,7 @@ const Pinswg_transportandworkactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -94,7 +94,7 @@ const Pinswg_transportandworkactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj.pinswg_recommendation + detailsObj.pinswg_recommendation +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -117,7 +117,7 @@ const Pinswg_transportandworkactid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj.pinswg_webaddress + detailsObj.pinswg_webaddress +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -29,7 +29,7 @@ const Pinswg_wayleaveid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -53,7 +53,7 @@ const Pinswg_wayleaveid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -89,7 +89,7 @@ const Pinswg_wayleaveid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_procedure@OData.Community.Display.V1.FormattedValue" "pinswg_procedure@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -110,7 +110,7 @@ const Pinswg_wayleaveid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_typeofevent@OData.Community.Display.V1.FormattedValue" "pinswg_typeofevent@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -131,7 +131,7 @@ const Pinswg_wayleaveid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
casesObj[ casesObj[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -155,7 +155,7 @@ const Pinswg_wayleaveid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"pinswg_decision@OData.Community.Display.V1.FormattedValue" "pinswg_decision@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -231,7 +231,7 @@ const Pinswg_wayleaveid = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -239,7 +239,7 @@ const Pinswg_wayleaveid = (props) => {
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.pinswg_lpa=="' + '$..[?(@ && @.pinswg_lpa=="' +
detailsObj.pinswg_relevantauthorityname + detailsObj.pinswg_relevantauthorityname +
'")].value', '")].value',
json: transLookup, json: transLookup,
+5 -4
View File
@@ -1340,7 +1340,8 @@ const RenderPickList = ({
let { t } = useTranslation(); let { t } = useTranslation();
var dropdownObj = jsonpath({ var dropdownObj = jsonpath({
path: "$..value[?(@.LogicalName=='" + datafieldname + "')]..Options", path:
"$..value[?(@ && @.LogicalName=='" + datafieldname + "')]..Options",
json: picklistData, json: picklistData,
eval: true, eval: true,
}); });
@@ -1726,7 +1727,7 @@ export const FieldsTranslations = (label) => {
let labelTrans = let labelTrans =
router.locale == "cy" router.locale == "cy"
? jsonpath({ ? jsonpath({
path: '$..[?(@.value=="' + label + '")].value_cy', path: '$..[?(@ && @.value=="' + label + '")].value_cy',
json: formObj, json: formObj,
eval: true, eval: true,
})[0] })[0]
@@ -1745,7 +1746,7 @@ const PickListTranslations = (optionValue) => {
let optionTrans = let optionTrans =
router.locale == "cy" router.locale == "cy"
? jsonpath({ ? jsonpath({
path: '$..[?(@.value=="' + optionValue + '")].value_cy', path: '$..[?(@ && @.value=="' + optionValue + '")].value_cy',
json: pickListLookup, json: pickListLookup,
eval: true, eval: true,
}) })
@@ -1945,7 +1946,7 @@ const RenderFileUpload = (field) => {
const filelistObj = field.fileList || {}; const filelistObj = field.fileList || {};
const blobList = jsonpath({ const blobList = jsonpath({
path: "$..[?(@.documentType=='" + field.documentTypeCode + "')]", path: "$..[?(@ && @.documentType=='" + field.documentTypeCode + "')]",
json: filelistObj, json: filelistObj,
eval: true, eval: true,
}); });
+1 -1
View File
@@ -108,7 +108,7 @@ const MyPortal = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
props.accountDetails.accountDetails[ props.accountDetails.accountDetails[
"pinswg_contact_associatedlpa@OData.Community.Display.V1.FormattedValue" "pinswg_contact_associatedlpa@OData.Community.Display.V1.FormattedValue"
] + ] +
+2 -2
View File
@@ -148,7 +148,7 @@ let AdvancedSearch = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
optionsObj[key] optionsObj[key]
.name + .name +
'")].value_cy', '")].value_cy',
@@ -253,7 +253,7 @@ let AdvancedSearch = (props) => {
: router.locale == "cy" : router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
optionsObj[key] optionsObj[key]
.value + .value +
'")].value_cy', '")].value_cy',
@@ -204,7 +204,7 @@ const AwaitingSubmissionFromBlob = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
getFormCollectionByID( getFormCollectionByID(
showTopThreeArr[key] showTopThreeArr[key]
.pinswg_appealcasetype .pinswg_appealcasetype
@@ -297,7 +297,7 @@ const AwaitingSubmissionFromBlob = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
showTopThreeArr[key][ showTopThreeArr[key][
"pinswg_lpaname" "pinswg_lpaname"
] + ] +
+2 -2
View File
@@ -328,7 +328,7 @@ const TopThree = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
showTopThreeArr[key][ showTopThreeArr[key][
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -400,7 +400,7 @@ const TopThree = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
showTopThreeArr[key][ showTopThreeArr[key][
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
+5 -5
View File
@@ -271,7 +271,7 @@ const TopThree = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
showTopThreeArr[key].representationType + showTopThreeArr[key].representationType +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -285,7 +285,7 @@ const TopThree = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
showTopThreeArr[key] showTopThreeArr[key]
.representationCapacity + .representationCapacity +
'" ||@.value_cy=="' + '" ||@.value_cy=="' +
@@ -297,7 +297,7 @@ const TopThree = (props) => {
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.value_cy=="' + '$..[?(@ && @.value_cy=="' +
showTopThreeArr[key] showTopThreeArr[key]
.representationCapacity + .representationCapacity +
'")].value', '")].value',
@@ -306,7 +306,7 @@ const TopThree = (props) => {
}).length > 0 }).length > 0
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value_cy=="' + '$..[?(@ && @.value_cy=="' +
showTopThreeArr[key] showTopThreeArr[key]
.representationCapacity + .representationCapacity +
'")].value', '")].value',
@@ -327,7 +327,7 @@ const TopThree = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
showTopThreeArr[key][ showTopThreeArr[key][
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue" "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
] + ] +
+14 -14
View File
@@ -118,7 +118,7 @@ const ViewAllResults = (props) => {
(currentView.viewKey == "myRepresentations" (currentView.viewKey == "myRepresentations"
? "" ? ""
: "..value") + : "..value") +
'[?(@.pinswg_name=="' + '[?(@ && @.pinswg_name=="' +
(currentView.viewKey == "awaitingSubmissionDetails" (currentView.viewKey == "awaitingSubmissionDetails"
? item.title ? item.title
: currentView.viewKey == "watchedCases" : currentView.viewKey == "watchedCases"
@@ -480,7 +480,7 @@ const ViewAllResults = (props) => {
? router.locale == "cy" ? router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
resultsArr[key].pinswg_lpaname + resultsArr[key].pinswg_lpaname +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -494,7 +494,7 @@ const ViewAllResults = (props) => {
? router.locale == "cy" ? router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
resultsArr[key][ resultsArr[key][
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -512,7 +512,7 @@ const ViewAllResults = (props) => {
? router.locale == "cy" ? router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
searchDetailsObj[key].value[0][ searchDetailsObj[key].value[0][
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValuee" "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValuee"
] + ] +
@@ -532,7 +532,7 @@ const ViewAllResults = (props) => {
? router.locale == "cy" ? router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
resultsArr[key][ resultsArr[key][
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValuee" "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValuee"
] + ] +
@@ -550,7 +550,7 @@ const ViewAllResults = (props) => {
router.locale == "cy" && router.locale == "cy" &&
jsonpath({ jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
searchDetailsObj[key][ searchDetailsObj[key][
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue" "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -568,7 +568,7 @@ const ViewAllResults = (props) => {
? router.locale == "cy" ? router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
getFormCollectionByID( getFormCollectionByID(
item.pinswg_appealcasetype item.pinswg_appealcasetype
).value + ).value +
@@ -582,7 +582,7 @@ const ViewAllResults = (props) => {
: router.locale == "cy" : router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item[ item[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -601,7 +601,7 @@ const ViewAllResults = (props) => {
(router.locale == "cy" (router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
getFormCollectionByID( getFormCollectionByID(
searchDetailsObj[key].appealType searchDetailsObj[key].appealType
).value + ).value +
@@ -629,7 +629,7 @@ const ViewAllResults = (props) => {
? router.locale == "cy" ? router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.statuscode=="' + '$..[?(@ && @.statuscode=="' +
item.statuscode + item.statuscode +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -637,7 +637,7 @@ const ViewAllResults = (props) => {
}) })
: jsonpath({ : jsonpath({
path: path:
'$..[?(@.statuscode=="' + '$..[?(@ && @.statuscode=="' +
item.statuscode + item.statuscode +
'")].value', '")].value',
json: transLookup, json: transLookup,
@@ -647,7 +647,7 @@ const ViewAllResults = (props) => {
? repRaisedDate(item.repfile_name) // ? router.locale == "cy" ? repRaisedDate(item.repfile_name) // ? router.locale == "cy"
: // ? jsonpath({path: : // ? jsonpath({path:
// //
// '$..[?(@.value=="' + // '$..[?(@ && @.value=="' +
// searchDetailsObj[key].value[0][ // searchDetailsObj[key].value[0][
// "statuscode@OData.Community.Display.V1.FormattedValue" // "statuscode@OData.Community.Display.V1.FormattedValue"
// ] + // ] +
@@ -659,7 +659,7 @@ const ViewAllResults = (props) => {
// : router.locale == "cy" // : router.locale == "cy"
// ? jsonpath({path: // ? jsonpath({path:
// //
// '$..[?(@.value=="' + // '$..[?(@ && @.value=="' +
// item[ // item[
// "statuscode@OData.Community.Display.V1.FormattedValue" // "statuscode@OData.Community.Display.V1.FormattedValue"
// ] + // ] +
@@ -669,7 +669,7 @@ const ViewAllResults = (props) => {
router.locale == "cy" router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item[ item[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
+2 -2
View File
@@ -72,7 +72,7 @@ let BuildCheckRow = (props) => {
let labelTrans = let labelTrans =
router.locale == "cy" router.locale == "cy"
? jsonpath({ ? jsonpath({
path: '$..[?(@.value=="' + label + '")].value_cy', path: '$..[?(@ && @.value=="' + label + '")].value_cy',
json: formObj, json: formObj,
eval: true, eval: true,
}) })
@@ -103,7 +103,7 @@ let BuildCheckRow = (props) => {
var datafieldname = xpath.select("//@datafieldname", doc); var datafieldname = xpath.select("//@datafieldname", doc);
const isRequiredField = jsonpath({ const isRequiredField = jsonpath({
path: path:
"$..value[?(@.LogicalName=='" + "$..value[?(@ && @.LogicalName=='" +
datafieldname[0].value + datafieldname[0].value +
"')]", "')]",
json: mandatoryFieldsData, json: mandatoryFieldsData,
+1 -1
View File
@@ -136,7 +136,7 @@ let BuildCheckSection = (props) => {
let labelTrans = let labelTrans =
router.locale == "cy" router.locale == "cy"
? jsonpath({ ? jsonpath({
path: '$..[?(@.value=="' + label + '")].value_cy', path: '$..[?(@ && @.value=="' + label + '")].value_cy',
json: formObj, json: formObj,
eval: true, eval: true,
}) })
+1 -1
View File
@@ -111,7 +111,7 @@ export default function BuildRow(props) {
dateEnd = !_.isEmpty(dateEnd) && dateEnd[0].value; dateEnd = !_.isEmpty(dateEnd) && dateEnd[0].value;
//const isRequiredField = jsonpath({path: //const isRequiredField = jsonpath({path:
// "$..value[?(@.LogicalName=='" + // "$..value[?(@ && @.LogicalName=='" +
// datafieldname[0].value + // datafieldname[0].value +
// "')]", // "')]",
// mandatoryFieldsData // mandatoryFieldsData
+2 -2
View File
@@ -67,7 +67,7 @@ const RenderLPAList = ({
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
optionsObj[key].name + optionsObj[key].name +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
@@ -151,7 +151,7 @@ const RenderAppealTypeList = ({
: router.locale == "cy" : router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
optionsObj[key].value + optionsObj[key].value +
'")].value_cy', '")].value_cy',
json: transLookup, json: transLookup,
+1 -1
View File
@@ -395,7 +395,7 @@ export const AppealRow_pdf = (props) => {
break; break;
case "{16D63FD6-119B-4353-BDCA-18358721C3FE}": case "{16D63FD6-119B-4353-BDCA-18358721C3FE}":
// const blobList = jsonpath({path: // const blobList = jsonpath({path:
// "$..[?(@.documentType=='" + // "$..[?(@ && @.documentType=='" +
// documentTypeCode[0].value + // documentTypeCode[0].value +
// "')]", // "')]",
// props.filesList // props.filesList
+6 -6
View File
@@ -97,7 +97,7 @@ const SearchResults = (props) => {
const isWatchedCase = (whichIncident) => { const isWatchedCase = (whichIncident) => {
let isWatched = jsonpath({ let isWatched = jsonpath({
path: path:
"$..value[?(@._pinswg_watchedcase_value=='" + "$..value[?(@ && @._pinswg_watchedcase_value=='" +
whichIncident + whichIncident +
"')]", "')]",
json: watchedCases, json: watchedCases,
@@ -247,7 +247,7 @@ const SearchResults = (props) => {
resultsArrPaged.map((item, key) => { resultsArrPaged.map((item, key) => {
let detailsObj = jsonpath({ let detailsObj = jsonpath({
path: path:
'$..value[?(@.pinswg_name=="' + '$..value[?(@ && @.pinswg_name=="' +
item.pinswg_name + item.pinswg_name +
'")]', '")]',
@@ -462,7 +462,7 @@ const SearchResults = (props) => {
? router.locale == "cy" ? router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item[ item[
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue" "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -480,7 +480,7 @@ const SearchResults = (props) => {
? router.locale == "cy" ? router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item[ item[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -503,7 +503,7 @@ const SearchResults = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item[ item[
"pinswg_appealType" "pinswg_appealType"
] + ] +
@@ -525,7 +525,7 @@ const SearchResults = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item[ item[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
+3 -3
View File
@@ -128,7 +128,7 @@ const RenderCaseStatusList = ({
: router.locale == "cy" : router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.statuscode=="' + '$..[?(@ && @.statuscode=="' +
optionsObj[key] optionsObj[key]
.statuscode + .statuscode +
'")].value_cy', '")].value_cy',
@@ -243,7 +243,7 @@ let AdvancedSearch = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
optionsObj[key] optionsObj[key]
.name + .name +
'")].value_cy', '")].value_cy',
@@ -348,7 +348,7 @@ let AdvancedSearch = (props) => {
: router.locale == "cy" : router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
optionsObj[key] optionsObj[key]
.value + .value +
'")].value_cy', '")].value_cy',
+4 -4
View File
@@ -170,7 +170,7 @@ const DNSSearchResults = (props) => {
const isWatchedCase = (whichIncident) => { const isWatchedCase = (whichIncident) => {
let isWatched = jsonpath({ let isWatched = jsonpath({
path: path:
"$..value[?(@._pinswg_watchedcase_value=='" + "$..value[?(@ && @._pinswg_watchedcase_value=='" +
whichIncident + whichIncident +
"')]", "')]",
json: watchedCases, json: watchedCases,
@@ -299,7 +299,7 @@ const DNSSearchResults = (props) => {
resultsArr.map((item, key) => { resultsArr.map((item, key) => {
let detailsObj = jsonpath({ let detailsObj = jsonpath({
path: path:
'$..value[?(@.pinswg_name=="' + '$..value[?(@ && @.pinswg_name=="' +
item.title + item.title +
'")]', '")]',
json: searchDetailsObj, json: searchDetailsObj,
@@ -460,7 +460,7 @@ const DNSSearchResults = (props) => {
? router.locale == "cy" ? router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
detailsObj[ detailsObj[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -484,7 +484,7 @@ const DNSSearchResults = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item[ item[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
+5 -5
View File
@@ -103,7 +103,7 @@ const SearchResults = (props) => {
const isWatchedCase = (whichIncident) => { const isWatchedCase = (whichIncident) => {
let isWatched = jsonpath({ let isWatched = jsonpath({
path: path:
"$..value[?(@._pinswg_watchedcase_value=='" + "$..value[?(@ && @._pinswg_watchedcase_value=='" +
whichIncident + whichIncident +
"')]", "')]",
@@ -244,7 +244,7 @@ const SearchResults = (props) => {
resultsArr.map((item, key) => { resultsArr.map((item, key) => {
let detailsObj = jsonpath({ let detailsObj = jsonpath({
path: path:
'$..value[?(@.pinswg_name=="' + '$..value[?(@ && @.pinswg_name=="' +
item.title + item.title +
'")]', '")]',
json: searchDetailsObj, json: searchDetailsObj,
@@ -439,7 +439,7 @@ const SearchResults = (props) => {
? router.locale == "cy" ? router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item[ item[
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue" "_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -462,7 +462,7 @@ const SearchResults = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item[ item[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue" "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
] + ] +
@@ -485,7 +485,7 @@ const SearchResults = (props) => {
{router.locale == "cy" {router.locale == "cy"
? jsonpath({ ? jsonpath({
path: path:
'$..[?(@.value=="' + '$..[?(@ && @.value=="' +
item[ item[
"statuscode@OData.Community.Display.V1.FormattedValue" "statuscode@OData.Community.Display.V1.FormattedValue"
] + ] +
+8 -8
View File
@@ -18,7 +18,7 @@ import xpath from "xpath";
*/ */
export const getFormCollection = (formtype) => { export const getFormCollection = (formtype) => {
const collectionName = jsonpath({ const collectionName = jsonpath({
path: "$..[?(@.LogicalName=='" + formtype + "')]", path: "$..[?(@ && @.LogicalName=='" + formtype + "')]",
json: data, json: data,
eval: true, eval: true,
}); });
@@ -27,7 +27,7 @@ export const getFormCollection = (formtype) => {
export const getFormCollectionByID = (appealTypeID) => { export const getFormCollectionByID = (appealTypeID) => {
const collectionName = jsonpath({ const collectionName = jsonpath({
path: "$..[?(@.appealTypeID =='" + appealTypeID + "')]", path: "$..[?(@ && @.appealTypeID =='" + appealTypeID + "')]",
json: data, json: data,
eval: true, eval: true,
}); });
@@ -36,7 +36,7 @@ export const getFormCollectionByID = (appealTypeID) => {
export const getFormIDByLogicalName = (appealTypeLogicalName) => { export const getFormIDByLogicalName = (appealTypeLogicalName) => {
const collectionName = jsonpath({ const collectionName = jsonpath({
path: "$..[?(@.LogicalName =='" + appealTypeLogicalName + "')]", path: "$..[?(@ && @.LogicalName =='" + appealTypeLogicalName + "')]",
json: data, json: data,
eval: true, eval: true,
}); });
@@ -45,14 +45,14 @@ export const getFormIDByLogicalName = (appealTypeLogicalName) => {
export const getPickListLabel = (data, picklistType, picklistID) => { export const getPickListLabel = (data, picklistType, picklistID) => {
const pickListData = jsonpath({ const pickListData = jsonpath({
path: "$..[?(@.LogicalName=='" + picklistType + "')]", path: "$..[?(@ && @.LogicalName=='" + picklistType + "')]",
json: data, json: data,
eval: true, eval: true,
}); });
const pickListLabel = jsonpath({ const pickListLabel = jsonpath({
path: path:
"$..[?(@.Value=='" + "$..[?(@ && @.Value=='" +
picklistID + picklistID +
"')].Label.LocalizedLabels..Label", "')].Label.LocalizedLabels..Label",
@@ -64,14 +64,14 @@ export const getPickListLabel = (data, picklistType, picklistID) => {
export const getRadioLabel = (data, radiotListName, radioListID) => { export const getRadioLabel = (data, radiotListName, radioListID) => {
const radioListData = jsonpath({ const radioListData = jsonpath({
path: "$..[?(@.LogicalName=='" + radiotListName + "')]", path: "$..[?(@ && @.LogicalName=='" + radiotListName + "')]",
json: data, json: data,
eval: true, eval: true,
}); });
const pickListLabel = jsonpath({ const pickListLabel = jsonpath({
path: path:
"$..[?(@.Value=='" + "$..[?(@ && @.Value=='" +
radioListID + radioListID +
"')].Label.LocalizedLabels..Label", "')].Label.LocalizedLabels..Label",
@@ -336,7 +336,7 @@ export const getProgressObj = (
const isRequiredField = jsonpath({ const isRequiredField = jsonpath({
path: path:
"$..value[?(@.LogicalName=='" + "$..value[?(@ && @.LogicalName=='" +
datafieldname[0].value + datafieldname[0].value +
"')]", "')]",
json: mandatoryFieldsData, json: mandatoryFieldsData,
+2 -2
View File
@@ -49,13 +49,13 @@ export default async function ApiProxy(req, res) {
const lpaList = await getLPA(); const lpaList = await getLPA();
const lpaGUID = jsonpath({ const lpaGUID = jsonpath({
path: '$..[?(@.name=="' + lpaid + '")]', path: '$..[?(@ && @.name=="' + lpaid + '")]',
json: lpaList, json: lpaList,
eval: true, eval: true,
}); });
//console.log( //console.log(
// '$..[?(@.name="' + lpaid + '")]', // '$..[?(@ && @.name="' + lpaid + '")]',
// lpaList, // lpaList,
// lpaid, // lpaid,
// "LPAGUID=", // "LPAGUID=",
+1 -1
View File
@@ -77,7 +77,7 @@ let Home = (props) => {
let optionsStr = props.appealType.appealTypeOptions.value || {}; let optionsStr = props.appealType.appealTypeOptions.value || {};
let selectedObj = jsonpath({ let selectedObj = jsonpath({
path: "$..[?(@.attributevalue=='" + router.query.apt + "')]", path: "$..[?(@ && @.attributevalue=='" + router.query.apt + "')]",
json: optionsStr, json: optionsStr,
eval: true, eval: true,
}); });
+1 -1
View File
@@ -69,7 +69,7 @@ let Home = (props) => {
let optionsStr = props.appealType.appealTypeOptions.value; let optionsStr = props.appealType.appealTypeOptions.value;
let selectedObj = jsonpath({ let selectedObj = jsonpath({
path: "$..[?(@.attributevalue=='" + router.query.apt + "')]", path: "$..[?(@ && @.attributevalue=='" + router.query.apt + "')]",
json: optionsStr, json: optionsStr,
eval: true, eval: true,
}); });