pagination for documents seo head meta refactor

This commit is contained in:
2021-10-22 13:23:38 +01:00
parent c388aec21f
commit 346cefd1bb
31 changed files with 1478 additions and 533 deletions
-22
View File
@@ -218,19 +218,6 @@ let AdvancedSearch = (props) => {
const required = (value) => (value ? undefined : "Required");
const getFormCollection = (formtype) => {
formtype =
"pinswg_" +
(formtype.length > 39 ? formtype.slice(0, 39) : formtype);
const collectionName = jsonpath.query(
data,
"$..[?(@.LogicalName=='" + formtype + "')].UrlName"
);
//console.log(collectionName[0]);
return collectionName[0];
};
const [showSpinnerState, setShowSpinnerState] = useState(false);
let spinnerState = () => {
@@ -243,15 +230,6 @@ let AdvancedSearch = (props) => {
event.preventDefault();
spinnerState();
//console.log(values);
// var appTypeCollection = values.appealTypes.split(",")[1];
// appTypeCollection = getFormCollection(
// appTypeCollection.length > 39
// ? appTypeCollection.slice(0, 39)
// : appTypeCollection
// );
var searchString = "";
searchString += values.caseRef != null ? "?q=" + values.caseRef : "";