From 7eb5654d11e4fce5c03fdc2bbc9a7526600494bf Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 28 Jul 2021 17:14:40 +0530 Subject: [PATCH] Use admin/config.html for the Configuration page --- app/templates/app/admin/admin_base.html | 474 ------------------------ app/templates/app/admin/config.html | 3 + 2 files changed, 3 insertions(+), 474 deletions(-) delete mode 100644 app/templates/app/admin/admin_base.html diff --git a/app/templates/app/admin/admin_base.html b/app/templates/app/admin/admin_base.html deleted file mode 100644 index 17f985e..0000000 --- a/app/templates/app/admin/admin_base.html +++ /dev/null @@ -1,474 +0,0 @@ -{% load static %} - - - - Configuration - GMBA Connect - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
-
-
-

Configuration

-

- Settings and data used in the application can be uploaded and refreshed here. -

- -

1. Obtain data exports

- -

Each of the following data exports from the GMBA Access database are needed to completely refresh the database. - Details on how to export them is documented below. The filenames need to exactly match the ones in this list: -

- -
-
- Processing: 0% -
-
- -

2. Send data to the server

-

Use this form to select a file on your machine for uploading to the server. - Repeat the process until each source above has a green checkmark.

- -
- - -
- -

3. Refresh application data

-

Once the files have all been uploaded (green), you can press the orange button here to - validate and refresh the information in the app. Any errors will stop the processing, - and you will see a notification at the top of the screen. This step takes a few minutes.

- -
- -
- -

4. Prepare the search engine

-

The last step is to reindex the application's search engine by clicking the button below. - At this point users will see information in the search results.

- -
- -
-
- -

Data sources

- -

In this section you can find out how to obtain data for each of the resources listed above.

-

Each of the sources expected is a CSV file encoded with UTF-8 format, except for geodata in GeoJSON format.

- -

people_details

-

- The fields being updated are all part of one query on three tables: “People”, “Organisations” and “LU_Countries”. Selected fields come from the different tables and the selection of people is based on the Yes/No value “ProfileOnWeb” (lower right field in the screenshot). -

- -

- The fields: “Taxa”, “Methods” and “Geographic area of expertise” and “Scale“ concatenate information from various YesNo columns, as you see at the bottom of the screenshot for “Scale” -

- So, at this stage, producing the table with the fields listed above requires to run the query called “QryPeopleExport”. -

- We expect the table to have this header: - - - - - - - - - - - - - - - - - - - - -
MrMrsTitleFirst nameLast namePositione-mail 1URLOrganisation EnglishCountryBiographyField of expertiseTaxaMethodsGeographic area of expertiseScaleProfileOnWebID
-

- -

resources

-

This is a full export of the Resources table.

- - - - - - - - - - - - - - - -
IDTitleCitationTypeRangeURLAbstractAuthorKeywordsLatLonStars
- -

ranges

-

This is a full export of the (Mountain) Ranges table.

- - - - - - - - - - - - - - - - - - - - - - - -
Range_IDRangeNameRangeNameLanguageMotherRangeLevelCentroid_LatitudeCentroid_LongitudeOrogenyAreaGMBA_IDCountriesPeak_ElevationPeak_NamePeak_LatitudePeak_LongitudeCommentsCheckedSourceRange_AlternateID
- -

people_resources

-

This is a full export of the People to Resources table.

- - - - - - - - -
IDResourcePersonRole
- -

people_ranges

-

This is a full export of the People to Ranges table.

- - - - - - - -
IDPersonMountainRange
- -

gmba.geojson

- -

This file contains geodata about mountain ranges in - GeoJSON format. - The source of the data is a GIS layer maintained by GMBA with mountain polygons. - The export folder contains one small scale layer and one large scale one. - We use the small scale version, additionally simplified and compressed using - QGIS or Mapshaper. - Each polygon comes with a GMBA-ID that matches the people_ranges table. -

- -

The data can be uploaded in the backend, but will be reset on deployments. - To ensure that it is preserved, it should also be updated in the - source code - - geodata folder.

- -
-
-
- -
- - - - - - - - - - - - \ No newline at end of file diff --git a/app/templates/app/admin/config.html b/app/templates/app/admin/config.html index 17f985e..ff79069 100644 --- a/app/templates/app/admin/config.html +++ b/app/templates/app/admin/config.html @@ -244,6 +244,7 @@ Repeat the process until each source above has a green checkmark.

+ {% csrf_token %}