Add fields to Age and History
This commit is contained in:
parent
cc07121e08
commit
0517222670
@ -693,6 +693,14 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
|
||||
age_retrofit_date_source_links : {
|
||||
edit: true,
|
||||
verify: true
|
||||
},
|
||||
age_historical_raster_map_links : {
|
||||
edit: true,
|
||||
verify: true
|
||||
},
|
||||
age_historical_vectorised_footprint_links : {
|
||||
edit: true,
|
||||
verify: true
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -432,6 +432,30 @@ const AgeView: React.FunctionComponent<CategoryViewProps> = (props) => {
|
||||
This section provides links to open digitised historical maps/mapping data that we are using in the Colouring Cities platform.
|
||||
</i>
|
||||
</div>
|
||||
<MultiDataEntry
|
||||
title={dataFields.age_historical_raster_map_links.title}
|
||||
slug="age_historical_raster_map_links"
|
||||
value={props.building.age_historical_raster_map_links}
|
||||
mode={props.mode}
|
||||
copy={props.copy}
|
||||
onChange={props.onChange}
|
||||
tooltip={dataFields.age_historical_raster_map_links.tooltip}
|
||||
placeholder="https://..."
|
||||
editableEntries={true}
|
||||
isUrl={true}
|
||||
/>
|
||||
<MultiDataEntry
|
||||
title={dataFields.age_historical_vectorised_footprint_links.title}
|
||||
slug="age_historical_vectorised_footprint_links"
|
||||
value={props.building.age_historical_vectorised_footprint_links}
|
||||
mode={props.mode}
|
||||
copy={props.copy}
|
||||
onChange={props.onChange}
|
||||
tooltip={dataFields.age_historical_vectorised_footprint_links.tooltip}
|
||||
placeholder="https://..."
|
||||
editableEntries={true}
|
||||
isUrl={true}
|
||||
/>
|
||||
</DataEntryGroup>
|
||||
</Fragment>
|
||||
);
|
||||
|
@ -1305,6 +1305,18 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
||||
tooltip: "Source link(s) for street width data",
|
||||
example: ["", "", ""],
|
||||
},
|
||||
age_historical_raster_map_links: {
|
||||
category: Category.Age,
|
||||
title: "Historical maps links",
|
||||
tooltip: "Links to rasterised historical maps",
|
||||
example: ["", "", ""],
|
||||
},
|
||||
age_historical_vectorised_footprint_links: {
|
||||
category: Category.Age,
|
||||
title: "Extracted vectorised historical footprints links",
|
||||
tooltip: "Extracted vectorised historical footprints links",
|
||||
example: ["", "", ""],
|
||||
}
|
||||
};
|
||||
|
||||
export const allFieldsConfig = { ...dataFields, ...buildingUserFields };
|
@ -1,2 +1,4 @@
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS location_name_link;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS location_alternative_footprint_links;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS location_alternative_footprint_links;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS age_historical_raster_map_links;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS age_historical_vectorised_footprint_links;
|
@ -1,2 +1,4 @@
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS location_name_link text;
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS location_alternative_footprint_links text[];
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS location_alternative_footprint_links text[];
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS age_historical_raster_map_links text[];
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS age_historical_vectorised_footprint_links text[];
|
Loading…
Reference in New Issue
Block a user