Merged PR 453: Added translations lookups for case details and search results
Related work items: #6211
This commit is contained in:
+116
-19
@@ -45,8 +45,10 @@ const Breadcrumbs = (props) => {
|
||||
<div className="govuk-breadcrumbs ">
|
||||
<ol className="govuk-breadcrumbs__list">
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="http://www.gov.wales">
|
||||
<a className="govuk-breadcrumbs__link">GOV.WALES</a>
|
||||
<Link href={t("common:gov-wales-link")}>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("common:gov-wales-label")}
|
||||
</a>
|
||||
</Link>
|
||||
</li>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
@@ -72,7 +74,13 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/myportal/searchresults" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("common:breadcrumb-my-portal")}
|
||||
</a>
|
||||
@@ -97,7 +105,13 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/newappeal" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("newappeal:parent-page-title")}
|
||||
</a>
|
||||
@@ -113,14 +127,26 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/newappeal/selectappeal" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("newappeal:parent-page-title")}
|
||||
</a>
|
||||
</Link>
|
||||
</li>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("newappeal:page-title")}
|
||||
</a>
|
||||
@@ -136,7 +162,13 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/viewall" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("common:breadcrumb-my-portal")}
|
||||
</a>
|
||||
@@ -152,7 +184,13 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/myportal/viewall" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("common:breadcrumb-my-portal")}
|
||||
</a>
|
||||
@@ -168,14 +206,26 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/myportal/case" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("common:breadcrumb-my-portal")}
|
||||
</a>
|
||||
</Link>
|
||||
</li>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/viewall">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/viewall"
|
||||
: "/viewall"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
Your cases{" "}
|
||||
</a>
|
||||
@@ -197,8 +247,12 @@ const Breadcrumbs = (props) => {
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link
|
||||
href={
|
||||
"/searchresults?q=" +
|
||||
props.props.search.searchString
|
||||
router.locale != "en"
|
||||
? router.locale +
|
||||
"/searchresults?q=" +
|
||||
props.props.search.searchString
|
||||
: "/searchresults?q=" +
|
||||
props.props.search.searchString
|
||||
}
|
||||
>
|
||||
<a
|
||||
@@ -223,7 +277,13 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/myportal/representation" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("common:breadcrumb-my-portal")}
|
||||
</a>
|
||||
@@ -243,7 +303,13 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/account/personaldetails" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("common:breadcrumb-my-portal")}
|
||||
</a>
|
||||
@@ -268,7 +334,13 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/account/changepassword" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("common:breadcrumb-my-portal")}
|
||||
</a>
|
||||
@@ -284,7 +356,13 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/dns" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/dns">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/dns"
|
||||
: "/dns"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("dnsCommon:service-name")}
|
||||
</a>
|
||||
@@ -333,7 +411,14 @@ const Breadcrumbs = (props) => {
|
||||
{router.pathname == "/dns/application-view" ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/dns/applications">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale +
|
||||
"/dns/applications"
|
||||
: "/dns/applications"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t(
|
||||
"dnsApplicationView:page-parent-title"
|
||||
@@ -351,14 +436,26 @@ const Breadcrumbs = (props) => {
|
||||
{!_.isEmpty(slug) ? (
|
||||
<>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/myportal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/myportal"
|
||||
: "/myportal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
{t("common:breadcrumb-my-portal")}
|
||||
</a>
|
||||
</Link>
|
||||
</li>
|
||||
<li className="govuk-breadcrumbs__list-item">
|
||||
<Link href="/newappeal">
|
||||
<Link
|
||||
href={
|
||||
router.locale != "en"
|
||||
? router.locale + "/newappeal"
|
||||
: "/newappeal"
|
||||
}
|
||||
>
|
||||
<a className="govuk-breadcrumbs__link">
|
||||
New Appeal
|
||||
</a>
|
||||
|
||||
+117
-49
@@ -3,6 +3,7 @@ import { useRouter } from "next/router";
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
import jsonpath from "jsonpath";
|
||||
import _ from "lodash";
|
||||
import transLookup from "../../data/lookuptranslations.json";
|
||||
|
||||
const CaseSummary = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -72,16 +73,23 @@ const CaseSummary = (props) => {
|
||||
] || "not entered"}
|
||||
</dd>
|
||||
</div>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
{t("case:summary-agent-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(detailsObj, "pinswg_agentcontactname")
|
||||
? detailsObj.pinswg_agentcontactname
|
||||
: ""}
|
||||
</dd>
|
||||
</div>
|
||||
{_.has(detailsObj, "pinswg_agentcontactname") ? (
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
{t("case:summary-agent-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(
|
||||
detailsObj,
|
||||
"pinswg_agentcontactname"
|
||||
)
|
||||
? detailsObj.pinswg_agentcontactname
|
||||
: ""}
|
||||
</dd>
|
||||
</div>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
{t("case:summary-site-address-label")}
|
||||
@@ -91,19 +99,19 @@ const CaseSummary = (props) => {
|
||||
? detailsObj.pinswg_siteaddressline1
|
||||
: ""}
|
||||
<br />
|
||||
{_.has(detailsObj, "pinswg_siteaddressline1")
|
||||
{_.has(detailsObj, "pinswg_siteaddressline2")
|
||||
? detailsObj.pinswg_siteaddressline2
|
||||
: ""}
|
||||
<br />
|
||||
{_.has(detailsObj, "pinswg_siteaddressline1")
|
||||
{_.has(detailsObj, "pinswg_siteaddresstown")
|
||||
? detailsObj.pinswg_siteaddresstown
|
||||
: ""}
|
||||
<br />
|
||||
{_.has(detailsObj, "pinswg_siteaddressline1")
|
||||
{_.has(detailsObj, "pinswg_siteaddresscounty")
|
||||
? detailsObj.pinswg_siteaddresscounty
|
||||
: ""}
|
||||
<br />
|
||||
{_.has(detailsObj, "pinswg_siteaddressline1")
|
||||
{_.has(detailsObj, "pinswg_siteaddresspostcode")
|
||||
? detailsObj.pinswg_siteaddresspostcode
|
||||
: ""}
|
||||
</dd>
|
||||
@@ -151,9 +159,21 @@ const CaseSummary = (props) => {
|
||||
{t("case:summary-case-type-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{casesObj[
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
] || "N/A"}
|
||||
{router.locale == "cy"
|
||||
? jsonpath.query(
|
||||
transLookup,
|
||||
'$..[?(@.value=="' +
|
||||
casesObj[
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
'")].value_cy'
|
||||
)
|
||||
: casesObj[
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
] ||
|
||||
t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
<div className="govuk-summary-list__row">
|
||||
@@ -161,16 +181,21 @@ const CaseSummary = (props) => {
|
||||
{t("case:summary-lpa-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(detailsObj, [
|
||||
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue",
|
||||
])
|
||||
? detailsObj[
|
||||
{router.locale == "cy"
|
||||
? jsonpath.query(
|
||||
transLookup,
|
||||
'$..[?(@.value=="' +
|
||||
detailsObj[
|
||||
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
'")].value_cy'
|
||||
)
|
||||
: detailsObj[
|
||||
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: ""}
|
||||
] || ""}
|
||||
</dd>
|
||||
</div>
|
||||
<div className="govuk-summary-list__row">
|
||||
{/* <div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
{t(
|
||||
"case:summary-case-summary-label"
|
||||
@@ -184,7 +209,7 @@ const CaseSummary = (props) => {
|
||||
? detailsObj.pinswg_casedescription
|
||||
: ""}
|
||||
</dd>
|
||||
</div>
|
||||
</div> */}
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
{t(
|
||||
@@ -208,13 +233,18 @@ const CaseSummary = (props) => {
|
||||
{t("case:summary-procedure-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(detailsObj, [
|
||||
"pinswg_procedure@OData.Community.Display.V1.FormattedValue",
|
||||
])
|
||||
? detailsObj[
|
||||
{router.locale == "cy"
|
||||
? jsonpath.query(
|
||||
transLookup,
|
||||
'$..[?(@.value=="' +
|
||||
detailsObj[
|
||||
"pinswg_procedure@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
'")].value_cy'
|
||||
)
|
||||
: detailsObj[
|
||||
"pinswg_procedure@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: ""}
|
||||
] || ""}
|
||||
</dd>
|
||||
</div>
|
||||
<div className="govuk-summary-list__row">
|
||||
@@ -222,9 +252,21 @@ const CaseSummary = (props) => {
|
||||
{t("case:summary-status-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{casesObj[
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
] || ""}
|
||||
{router.locale == "cy"
|
||||
? jsonpath.query(
|
||||
transLookup,
|
||||
'$..[?(@.value=="' +
|
||||
casesObj[
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
'")].value_cy'
|
||||
)
|
||||
: casesObj[
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
] ||
|
||||
t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
<div className="govuk-summary-list__row">
|
||||
@@ -232,13 +274,21 @@ const CaseSummary = (props) => {
|
||||
{t("case:summary-decision-label")}
|
||||
</dt>
|
||||
<dd className="govuk-summary-list__value">
|
||||
{_.has(detailsObj, [
|
||||
"pinswg_decision@OData.Community.Display.V1.FormattedValue",
|
||||
])
|
||||
? detailsObj[
|
||||
{router.locale == "cy"
|
||||
? jsonpath.query(
|
||||
transLookup,
|
||||
'$..[?(@.value=="' +
|
||||
detailsObj[
|
||||
"pinswg_decision@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
'")].value_cy'
|
||||
)
|
||||
: detailsObj[
|
||||
"pinswg_decision@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: ""}
|
||||
] ||
|
||||
t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
|
||||
<br />
|
||||
{/* <Link href="/">
|
||||
@@ -262,7 +312,9 @@ const CaseSummary = (props) => {
|
||||
? detailsObj[
|
||||
"pinswg_linkedstatus@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: "Not linked"}
|
||||
: t(
|
||||
"case:summary-case-link-status-not-linked"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
<div className="govuk-summary-list__row">
|
||||
@@ -299,7 +351,9 @@ const CaseSummary = (props) => {
|
||||
? detailsObj[
|
||||
"pinswg_startdate@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: "N/A"}
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
@@ -317,7 +371,9 @@ const CaseSummary = (props) => {
|
||||
? detailsObj[
|
||||
"pinswg_questionnaireduedate@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: "N/A"}
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
@@ -335,7 +391,9 @@ const CaseSummary = (props) => {
|
||||
? detailsObj[
|
||||
"pinswg_statementduedate@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: "N/A"}
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
@@ -353,7 +411,9 @@ const CaseSummary = (props) => {
|
||||
? detailsObj[
|
||||
"pinswg_otherpartiesstatement@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: "N/A"}
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
@@ -371,7 +431,9 @@ const CaseSummary = (props) => {
|
||||
? detailsObj[
|
||||
"pinswg_finalcommentsduedate@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: "N/A"}
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
@@ -389,7 +451,9 @@ const CaseSummary = (props) => {
|
||||
? detailsObj[
|
||||
"pinswg_finalcommentsduedate@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: "N/A"}
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
@@ -405,7 +469,9 @@ const CaseSummary = (props) => {
|
||||
? detailsObj[
|
||||
"pinswg_dateeventrequested@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: "N/A"}
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
@@ -423,7 +489,9 @@ const CaseSummary = (props) => {
|
||||
? detailsObj[
|
||||
"pinswg_dateoflpadecision@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
: "N/A"}
|
||||
: t(
|
||||
"case:summary-no-date-entered-label"
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
|
||||
@@ -20,6 +20,7 @@ const Header = (props) => {
|
||||
"/dns/application-view",
|
||||
"/searchresults",
|
||||
"/case",
|
||||
"advancedsearch",
|
||||
];
|
||||
const hasContactLink = [
|
||||
"/dns",
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ export default function Home({ children, pages }) {
|
||||
<CaseSearch />
|
||||
<CaseComment />
|
||||
<Dns />
|
||||
{/* <Login /> */}
|
||||
<Login />
|
||||
<Inspectorate />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,6 +5,7 @@ import { setCurrentReference } from "../../store/currentView/action";
|
||||
import { connect } from "react-redux";
|
||||
import jsonpath from "jsonpath";
|
||||
import _ from "lodash";
|
||||
import transLookup from "../../data/lookuptranslations.json";
|
||||
|
||||
const SearchResults = (props) => {
|
||||
const {
|
||||
@@ -30,7 +31,8 @@ const SearchResults = (props) => {
|
||||
{t("search:searchresults-count-label", {
|
||||
count: searchResultsObj["@odata.count"].toString(),
|
||||
})}
|
||||
. You searched for <em>"{searchString}"</em>
|
||||
. {t("search:searchresults-case-count-label")}{" "}
|
||||
<em>"{searchString}"</em>
|
||||
</p>
|
||||
<dl className="govuk-summary-list govuk-!-margin-bottom-9 results">
|
||||
<div className="govuk-summary-list__row results-headings">
|
||||
@@ -76,7 +78,10 @@ const SearchResults = (props) => {
|
||||
}}
|
||||
>
|
||||
<span className="results-visually-hidden">
|
||||
Case Reference:
|
||||
{t(
|
||||
"search:searchresults-case-reference-label"
|
||||
)}
|
||||
:
|
||||
</span>
|
||||
{item.title}
|
||||
</a>
|
||||
@@ -84,7 +89,10 @@ const SearchResults = (props) => {
|
||||
</dd>
|
||||
<dd className="govuk-summary-list__value govuk-!-font-size-14">
|
||||
<span className="results-visually-hidden">
|
||||
Site Address:{" "}
|
||||
{t(
|
||||
"search:searchresults-site-address-label"
|
||||
)}
|
||||
:
|
||||
</span>
|
||||
{_.has(
|
||||
detailsObj,
|
||||
@@ -123,7 +131,10 @@ const SearchResults = (props) => {
|
||||
</dd>
|
||||
<dd className="govuk-summary-list__value govuk-!-font-size-14">
|
||||
<span className="results-visually-hidden">
|
||||
Appellant/Applicant:
|
||||
{t(
|
||||
"search:searchresults-applicant-label"
|
||||
)}
|
||||
:
|
||||
</span>
|
||||
{_.has(detailsObj, [
|
||||
"_pinswg_appellant_value@OData.Community.Display.V1.FormattedValue",
|
||||
@@ -135,35 +146,66 @@ const SearchResults = (props) => {
|
||||
</dd>
|
||||
<dd className="govuk-summary-list__value govuk-!-font-size-14">
|
||||
<span className="results-visually-hidden">
|
||||
Authority:
|
||||
{t(
|
||||
"search:searchresults-authority-label"
|
||||
)}
|
||||
:
|
||||
</span>
|
||||
{_.has(detailsObj, [
|
||||
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue",
|
||||
])
|
||||
? detailsObj[
|
||||
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
? router.locale == "cy"
|
||||
? jsonpath.query(
|
||||
transLookup,
|
||||
'$..[?(@.value=="' +
|
||||
detailsObj[
|
||||
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
'")].value_cy'
|
||||
)
|
||||
: detailsObj[
|
||||
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
|
||||
] || "N/A"
|
||||
: ""}
|
||||
</dd>
|
||||
<dd className="govuk-summary-list__value govuk-!-font-size-14">
|
||||
<span className="results-visually-hidden">
|
||||
Case Type:
|
||||
{t(
|
||||
"search:searchresults-case-type-label"
|
||||
)}
|
||||
:
|
||||
</span>
|
||||
{
|
||||
item[
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
}
|
||||
{router.locale == "cy"
|
||||
? jsonpath.query(
|
||||
transLookup,
|
||||
'$..[?(@.value=="' +
|
||||
item[
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
'")].value_cy'
|
||||
)
|
||||
: item[
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||
] || "N/A"}
|
||||
</dd>
|
||||
<dd className="govuk-summary-list__value govuk-!-font-size-14">
|
||||
<span className="results-visually-hidden">
|
||||
Status:
|
||||
{t("search:searchresults-status-label")}
|
||||
:
|
||||
</span>
|
||||
{
|
||||
item[
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
]
|
||||
}
|
||||
|
||||
{router.locale == "cy"
|
||||
? jsonpath.query(
|
||||
transLookup,
|
||||
'$..[?(@.value=="' +
|
||||
item[
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
'")].value_cy'
|
||||
)
|
||||
: item[
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
] || "N/A"}
|
||||
</dd>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,342 @@
|
||||
{
|
||||
"appealTypes": [
|
||||
{
|
||||
"value": "Planning Appeal - S78",
|
||||
"value_cy": "Apêl Cynllunio - S78",
|
||||
"stringmapid": "cb4aa9f2-e275-eb11-aabd-00224800be9c",
|
||||
"attributevalue": 846040000
|
||||
},
|
||||
{
|
||||
"value": "Planning Conditions - S73 + S79",
|
||||
"value_cy": "Amodau Cynllunio - S73 + S79",
|
||||
"stringmapid": "cc4aa9f2-e275-eb11-aabd-00224800be9c",
|
||||
"attributevalue": 846040001
|
||||
},
|
||||
{
|
||||
"value": "Planning Obligation Appeal - S106",
|
||||
"value_cy": "Apêl Rhwymedigaeth Cynllunio - S106",
|
||||
"stringmapid": "ce4aa9f2-e275-eb11-aabd-00224800be9c",
|
||||
"attributevalue": 846040003
|
||||
},
|
||||
{
|
||||
"value": "Householder Appeal (HAS)",
|
||||
"value_cy": "Apêl Deiliaid Tai (HAS)",
|
||||
"stringmapid": "cf4aa9f2-e275-eb11-aabd-00224800be9c",
|
||||
"attributevalue": 846040004
|
||||
},
|
||||
{
|
||||
"value": "Enforcement Notice Appeal - S174",
|
||||
"value_cy": "Apêl Rhybudd Gorfodi - S174",
|
||||
"stringmapid": "b656f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040005
|
||||
},
|
||||
{
|
||||
"value": "Enforcement Listed Building and Conservation Appeal - S39",
|
||||
"value_cy": "Apêl Adeiladu a Chadwraeth Rhestredig Gorfodi - S39",
|
||||
"stringmapid": "b756f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040006
|
||||
},
|
||||
{
|
||||
"value": "Maintenance of Land - S217",
|
||||
"value_cy": "Cynnal a Chadw Tir - S217",
|
||||
"stringmapid": "b856f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040007
|
||||
},
|
||||
{
|
||||
"value": "Lawful Development Certificate Appeal - S194 + 195",
|
||||
"value_cy": "Apêl Tystysgrif Datblygu Cyfreithlon - S194 + 195",
|
||||
"stringmapid": "b956f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040008
|
||||
},
|
||||
{
|
||||
"value": "Community Infrastructure Levy - S117, 118, & 119",
|
||||
"value_cy": "Ardoll Seilwaith Cymunedol - S117, 118, & 119",
|
||||
"stringmapid": "ba56f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040009
|
||||
},
|
||||
{
|
||||
"value": "Call-Ins - S77",
|
||||
"value_cy": "Galw-i-Mewn - S77",
|
||||
"stringmapid": "bb56f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040010
|
||||
},
|
||||
{
|
||||
"value": "DNS",
|
||||
"value_cy": "DNS",
|
||||
"stringmapid": "bc56f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040011
|
||||
},
|
||||
{
|
||||
"value": "Electricity Act",
|
||||
"value_cy": "Deddf Trydan",
|
||||
"stringmapid": "bd56f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040012
|
||||
},
|
||||
{
|
||||
"value": "Transport and Works Act",
|
||||
"value_cy": "Deddf Trafnidiaeth a Gwaith",
|
||||
"stringmapid": "be56f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040013
|
||||
},
|
||||
{
|
||||
"value": "Harbour Revision Order",
|
||||
"value_cy": "Gorchymyn Adolygu'r Harbwr",
|
||||
"stringmapid": "bf56f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040014
|
||||
},
|
||||
{
|
||||
"value": "ROW",
|
||||
"value_cy": "ROW",
|
||||
"stringmapid": "c056f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040015
|
||||
},
|
||||
{
|
||||
"value": "Common Land",
|
||||
"value_cy": "Tir Cyffredin",
|
||||
"stringmapid": "c156f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040016
|
||||
},
|
||||
{
|
||||
"value": "High Hedges, Tree Preservation orders, Hedgerows, Tree Replacement Notice.",
|
||||
"value_cy": "Gwrychoedd Uchel, Gorchmynion Cadw Coed, Gwrychoedd, Rhybudd Amnewid Coed.",
|
||||
"stringmapid": "c256f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040017
|
||||
},
|
||||
{
|
||||
"value": "Adverts",
|
||||
"value_cy": "Hysbysebion",
|
||||
"stringmapid": "c356f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040018
|
||||
},
|
||||
{
|
||||
"value": "Compulsory Purchase Orders",
|
||||
"value_cy": "Gorchmynion Prynu Gorfodol",
|
||||
"stringmapid": "c456f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040019
|
||||
},
|
||||
{
|
||||
"value": "Environmental Permitting",
|
||||
"value_cy": "Caniatáu Amgylcheddol",
|
||||
"stringmapid": "c556f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040020
|
||||
},
|
||||
{
|
||||
"value": "Wayleave",
|
||||
"value_cy": "Wayleave",
|
||||
"stringmapid": "c656f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040021
|
||||
},
|
||||
{
|
||||
"value": "Misc Casework",
|
||||
"value_cy": "Gwaith Achos Amrywiol",
|
||||
"stringmapid": "c756f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040022
|
||||
},
|
||||
{
|
||||
"value": "LDP",
|
||||
"value_cy": "LDP",
|
||||
"stringmapid": "c856f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040023
|
||||
},
|
||||
{
|
||||
"value": "Non-Validation",
|
||||
"value_cy": "Peidio â dilysu",
|
||||
"stringmapid": "c956f05c-7f90-eb11-aac2-00224800be9c",
|
||||
"attributevalue": 846040024
|
||||
},
|
||||
{
|
||||
"value": "Listed Building and Conservation Area Consent S73 + S79",
|
||||
"value_cy": "Cydsyniad Ardal Adeiladu a Chadwraeth Rhestredig S73 + S79",
|
||||
"stringmapid": "977522df-8aef-eb11-aac7-00224800be9c",
|
||||
"attributevalue": 846040025
|
||||
}
|
||||
],
|
||||
"statusCodes": [
|
||||
{
|
||||
"value": "Active",
|
||||
"value_cy": "Egnïol",
|
||||
"statuscode": 1
|
||||
},
|
||||
{
|
||||
"value": "In Progress",
|
||||
"value_cy": "Ar y gweill",
|
||||
"statuscode": 2
|
||||
},
|
||||
{
|
||||
"value": "On Hold",
|
||||
"value_cy": "Ar Ddal",
|
||||
"statuscode": 3
|
||||
},
|
||||
{
|
||||
"value": "Waiting for a Decision",
|
||||
"value_cy": "Aros am Benderfyniad",
|
||||
"statuscode": 4
|
||||
},
|
||||
{
|
||||
"value": "Researching",
|
||||
"value_cy": "Ymchwilio",
|
||||
"statuscode": 5
|
||||
}
|
||||
],
|
||||
"pinswg_decision": [
|
||||
{
|
||||
"value": "Dismissed",
|
||||
"value_cy": "Diswyddo",
|
||||
"pinswg_decision": 846040001
|
||||
},
|
||||
{
|
||||
"value": "Split Decision",
|
||||
"value_cy": "Penderfyniad Hollt",
|
||||
"pinswg_decision": 846040002
|
||||
}
|
||||
],
|
||||
"pinswg_lpa": [
|
||||
{
|
||||
"value": "Blaenau Gwent County Borough Council",
|
||||
"value_cy": "Cyngor Bwrdeistref Sirol Blaenau Gwent",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Bridgend County Borough Council",
|
||||
"value_cy": "Cyngor Bwrdeistref Sirol Pen-y-bont ar Ogwr",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Caerphilly County Borough Council",
|
||||
"value_cy": "Cyngor Bwrdeistref Sirol Caerffili",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Cardiff Council",
|
||||
"value_cy": "Cyngor Caerdydd",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Cardiff City Council",
|
||||
"value_cy": "Cyngor Caerdydd",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Carmarthenshire County Council",
|
||||
"value_cy": "Cyngor Sir Gaerfyrddin",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Ceredigion County Council",
|
||||
"value_cy": "Cyngor Sir Ceredigion",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Conwy County Borough Council",
|
||||
"value_cy": "Cyngor Bwrdeistref Sirol Conwy",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Denbighshire County Council",
|
||||
"value_cy": "Cyngor Sir Ddinbych",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Flintshire County Council",
|
||||
"value_cy": "Cyngor Sir y Fflint",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Gwynedd Council",
|
||||
"value_cy": "Cyngor Gwynedd",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Isle of Anglesey County Council",
|
||||
"value_cy": "Cyngor Sir Ynys Môn",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Merthyr Tydfil County Borough Council",
|
||||
"value_cy": "Cyngor Bwrdeistref Sirol Merthyr Tudful",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Monmouthshire County Council",
|
||||
"value_cy": "Cyngor Sir Fynwy",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Neath Port Talbot County Borough Council",
|
||||
"value_cy": "Cyngor Bwrdeistref Sirol Castell-nedd Port Talbot",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Newport City Council",
|
||||
"value_cy": "Cyngor Dinas Casnewydd",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Pembrokeshire County Council",
|
||||
"value_cy": "Cyngor Sir Penfro",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Powys County Council",
|
||||
"value_cy": "Cyngor Sir Powys",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Rhondda Cynon Taf County Borough Council",
|
||||
"value_cy": "Cyngor Bwrdeistref Sirol Rhondda Cynon Taf",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Swansea Council",
|
||||
"value_cy": "Cyngor a Dinas Abertawe",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Torfaen County Borough Council",
|
||||
"value_cy": "Cyngor Bwrdeistref Sirol Torfaen",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Vale of Glamorgan Council",
|
||||
"value_cy": "Cyngor Bro Morgannwg",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Wrexham County Borough Council",
|
||||
"value_cy": "Cyngor Bwrdeistref Sirol Wrecsam",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Brecon Beacons National Park",
|
||||
"value_cy": "Parc Cenedlaethol Bannau Brycheiniog",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Pembrokeshire Coast National Park",
|
||||
"value_cy": "Parc Cenedlaethol Arfordir Penfro",
|
||||
"pinswg_lpa": 0
|
||||
},
|
||||
{
|
||||
"value": "Snowdonia National Park",
|
||||
"value_cy": "Parc Cenedlaethol Eryri",
|
||||
"pinswg_lpa": 0
|
||||
}
|
||||
],
|
||||
"pinswg_procedure": [
|
||||
{
|
||||
"value": "Written representation",
|
||||
"value_cy": "Cynrychiolaeth ysgrifenedig",
|
||||
"pinswg_procedure": 0
|
||||
},
|
||||
{
|
||||
"value": "Hearing",
|
||||
"value_cy": "Clyw",
|
||||
"pinswg_procedure": 0
|
||||
},
|
||||
{
|
||||
"value": "Inquiry",
|
||||
"value_cy": "Ymholiad",
|
||||
"pinswg_procedure": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -15,8 +15,10 @@
|
||||
"summary-status-label": "Statws",
|
||||
"summary-decision-label": "Penderfyniad a chanlyniad",
|
||||
"summary-case-link-status-label": "Statws cysylltiad yr Achos",
|
||||
"summary-case-link-status-not-linked": "Heb gysylltiad",
|
||||
"summary-linked-cases-label": "Achosion cysylltiedig",
|
||||
"summary-dates-label": "Dyddiadau",
|
||||
"summary-no-date-entered-label": "dim dyddiad wedi'i nodi",
|
||||
"summary-start-date-label": "Dyddiad Dechrau",
|
||||
"summary-questionnaire-due-date-label": "Holiadur i ddod",
|
||||
"summary-statement-due-date-label": "Datganiad (au) i ddod",
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{
|
||||
"gov-wales-link": "https://llyw.cymru",
|
||||
"gov-wales-label": "LLYW.CYMRU",
|
||||
"service-name": "Cynllunio gwaith achos",
|
||||
"breadcrumb-back-link": "Yn ôl",
|
||||
"error-radio": "Dewiswch opsiwn",
|
||||
@@ -17,7 +19,7 @@
|
||||
"back-to-top-link": "Nôl i dop y dudalen",
|
||||
"social-bar-share-link": "Rhannu’r dudalen hon",
|
||||
"social-bar-share-via-link": "Rhannu’r dudalen hon ar",
|
||||
"breadcrumb-search-results" : "Canlyniadau chwilio",
|
||||
"breadcrumb-search-results": "Canlyniadau chwilio",
|
||||
"breadcrumb-my-portal": "Fy mhorth",
|
||||
"breadcrumb-case-reference": "Cyfeirnod Achos"
|
||||
}
|
||||
@@ -48,6 +48,7 @@
|
||||
"searchresults-title-label": "Crynodeb o’r Achos ar gyfer",
|
||||
"searchresults-count-label": "Cafodd eich chwiliad {{count}} o ganlyniadau",
|
||||
"searchresults-case-reference-label": "Cyfeirnod yr Achos",
|
||||
"searchresults-case-count-label": "Fe wnaethoch chi chwilio am",
|
||||
"searchresults-site-address-label": "Cyfeiriad y Safle",
|
||||
"searchresults-applicant-label": "Apelydd/Ymgeisydd",
|
||||
"searchresults-authority-label": "ACLl",
|
||||
|
||||
@@ -15,8 +15,10 @@
|
||||
"summary-status-label": "Status",
|
||||
"summary-decision-label": "Decision and Outcome",
|
||||
"summary-case-link-status-label": "Case Link Status",
|
||||
"summary-case-link-status-not-linked": "Not linked",
|
||||
"summary-linked-cases-label": "Linked Cases",
|
||||
"summary-dates-label": "Dates",
|
||||
"summary-no-date-entered-label": "no date entered",
|
||||
"summary-start-date-label": "Start Date",
|
||||
"summary-questionnaire-due-date-label": "Questionnaire due",
|
||||
"summary-statement-due-date-label": "Statement(s) due",
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{
|
||||
"gov-wales-link": "https://www.gov.wales",
|
||||
"gov-wales-label": "GOV.WALES",
|
||||
"service-name": "Planning casework",
|
||||
"breadcrumb-back-link": "Back",
|
||||
"error-radio": "Choose an option",
|
||||
@@ -17,7 +19,7 @@
|
||||
"back-to-top-link": "Back to top",
|
||||
"social-bar-share-link": "Share this page",
|
||||
"social-bar-share-via-link": "Share this page via",
|
||||
"breadcrumb-search-results" : "Search results",
|
||||
"breadcrumb-search-results": "Search results",
|
||||
"breadcrumb-my-portal": "My portal",
|
||||
"breadcrumb-case-reference": "Case Reference"
|
||||
}
|
||||
@@ -48,6 +48,7 @@
|
||||
"searchresults-title-label": "Search for a case",
|
||||
"searchresults-count-label": "Your search returned {{count}} results",
|
||||
"searchresults-case-reference-label": "Case reference",
|
||||
"searchresults-case-count-label": "You searched for",
|
||||
"searchresults-site-address-label": "Site address",
|
||||
"searchresults-applicant-label": "Appellant/Applicant",
|
||||
"searchresults-authority-label": "Authority",
|
||||
|
||||
@@ -101,6 +101,7 @@ const getSearchDetails = (searchResultsObj) => {
|
||||
]
|
||||
.replace(/(\band|[\s\-\+\(\)\,\&])/g, "")
|
||||
.toLowerCase()
|
||||
.slice(0, 39)
|
||||
),
|
||||
searchDetail.ticketnumber
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user