From dcbf856804833cf56433f9f975a356cbc798e2c1 Mon Sep 17 00:00:00 2001 From: Matthew Zagaja Date: Wed, 6 Jan 2021 09:51:46 -0500 Subject: [PATCH] Hotfix for Zoning Atlas Data * Because the Zoning Atlas data did not properly display for users who chose to use Excel as their CSV viewer, we are now providing a Sharepoint link that is in XLSX format for their conveinence. * Even more annoying was that the shapefile did not include any shapes when we exported it. So we also had to create the shapefile manually and put into sharefile. Related to #366 and #365, but does not fix them beyond Zoning Atlas. --- app/javascript/pages/components/partials/DatasetHeader.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/javascript/pages/components/partials/DatasetHeader.jsx b/app/javascript/pages/components/partials/DatasetHeader.jsx index f525b043..7dcb2914 100644 --- a/app/javascript/pages/components/partials/DatasetHeader.jsx +++ b/app/javascript/pages/components/partials/DatasetHeader.jsx @@ -67,6 +67,9 @@ function downloadCsv( queryYearColumn = '' ) { const yearString = selectedYears.join(); + if (table === 'zoning_atlas') { + return 'https://mapc365.sharepoint.com/:x:/s/DataServicesSP/Efonrnmw_kdMhmG3Dw2BkTcBIpe2sC_2ADWTWfUjOs4JhQ?e=K65BCE'; + } if (selectedYears.length > 0 && queryYearColumn !== '') { return `/csv?table=${schema}.${table}&database=${database}&years=${yearString}&year_col=${queryYearColumn}`; } @@ -74,6 +77,9 @@ function downloadCsv( } function downloadShp(database, schema, table) { + if (table === 'zoning_atlas') { + return 'https://mapc365.sharepoint.com/:f:/s/DataServicesSP/ErKkXSLH_iBOlDhJrTXldrYBIIZ4ZXe4Bkw7OyVapVpX3Q?e=iRkWVB'; + } return `/shapefile?table=${database}.${schema}.${table}&database=${database}`; }