2011-07-11 02:10:22 +01:00
{% extends "base.html" %}
{% block content %}
{% if jobs_completed %}
< div class = "noticeBox" >
2021-04-27 20:44:24 +01:00
Just finished running:
2011-07-11 02:10:22 +01:00
< ul >
{% for job in jobs_completed %}
< li > {{ job }}< / li >
{% endfor %}
< / ul >
2021-04-27 20:44:24 +01:00
See < a href = "/dataissues" > Data Issues< / a > report
< br >
2011-07-11 02:10:22 +01:00
< / div >
{% endif %}
{% if error %}
< div class = "noticeBox" >
2020-05-31 21:03:40 +01:00
{{ error }}
2011-07-11 02:10:22 +01:00
< / div >
{% endif %}
2022-12-21 15:29:57 +00:00
< h3 > Administration Utilities< / h3 >
< ul >
< li > < a href = "/pathsreport" > Folder paths used< / a > -folders settings used by this troggle installation
2022-12-22 16:04:16 +00:00
< li > < a href = "/aliases/2022" > Expoer name aliases< / a > -short names recognised by troggle
2023-01-26 22:36:49 +00:00
< li > < a href = "/dataissues" > Data Issues on Imports< / a > - warnings and errors from the recent data import
2023-01-29 12:41:50 +00:00
< li > < a href = "/surveximport" > Survex import record< / a > - indented *include and begin/end tree< br / > < li > < a href = "/survexdebug" > Survex debug report< / a > - warnings and details< br / >
< li > < a href = "/therionissues" > Therion Import issues< / a > - warnings from the recent data import< br / > < br / >
2022-12-21 15:29:57 +00:00
< li > < a href = "/admin/" > Django admin< / a > - Deep magic access to all models and data
< / ul >
2021-12-30 00:55:42 +00:00
< h3 > This control panel is being redeveloped< / h3 >
2022-12-21 15:29:57 +00:00
< p > Do not attempt to use any of these import functions as they are in active development.
2021-12-30 00:55:42 +00:00
< ol >
< li > Importing things in the wrong order will screw-up the database links and break things.
2022-12-21 15:29:57 +00:00
< li > We are working on an on-line importer for new logbook entries - with syntax checking.
< li > We are working on an on-line importer for new survex files - with syntax checking
< li > Logbooks can only be < em > exported< / em > in the current format.
2021-12-30 00:55:42 +00:00
< / ol >
2023-01-26 23:36:56 +00:00
< p > Today (Jan. 2023) we use the < a href = "/handbook/troggle/trogimport.html" > databaseReset program< / a > to import from the master files. This is run on the server itself only by nerds who remotely log in to the server using ssh.
2021-12-30 00:55:42 +00:00
< p > Before you even think about doing database imports, you should understand the implications on everyone else. See < a href = "/handbook/troggle/trogindex.html" > the Troggle documentation< / a > .
< p > As soon as you can cope, you should read the source code for
< a href = "http://expo.survex.com/repositories/troggle/.git/tree/databaseReset.py" > databaseReset< / a > to see what it does, as the details are not documented anywhere else yet. But at least the code is quite well commented.
2023-01-26 23:36:56 +00:00
< p > The logbook export capability wass used to convert an archaic logbook into the current logbook format. It exports the logbook entries in the database into a new file, with the entries in date order. But there is no use for this capability now (Jan. 2023).
2021-12-30 00:55:42 +00:00
< div style = "column-count: 2; " >
2022-12-21 15:29:57 +00:00
< font style = "color: silver" >
2021-12-30 00:55:42 +00:00
{% comment %}
2011-07-11 02:10:22 +01:00
< form name = "reset" method = "post" action = "" >
2021-04-27 20:44:24 +01:00
{% csrf_token %}
2019-03-10 11:05:57 +00:00
< h3 > Wipe:< / h3 >
< table >
< tr >
< td > Wipe entire database and recreate tables: < / td >
< td > < input type = "checkbox" name = "reload_db" / > < / td >
< td >
< input type = "submit" id = "Import" value = "I really want to delete all information in troggle, and accept all responsibility." >
< / td >
< / tr >
< / table >
2011-07-11 02:10:22 +01:00
< / form >
2021-04-27 20:44:24 +01:00
{% endcomment %}
< h3 > Import (on top of existing data):< / h3 >
2021-12-30 00:55:42 +00:00
< p > To get a fully-functioning system, all these imports must be done and in this order.
2011-07-11 02:10:22 +01:00
< form name = "import" method = "post" action = "" >
2021-04-27 20:44:24 +01:00
{% csrf_token %}
2019-03-10 11:05:57 +00:00
< table >
< tr >
2021-04-27 20:44:24 +01:00
< th colspan = "2" > Import from master files< / th >
< / tr >
< tr >
< td > all caves < / td >
< td > < input type = "checkbox" name = "import_caves" / > < / td >
< / tr >
< tr >
< td > all people < / td >
2019-03-10 11:05:57 +00:00
< td > < input type = "checkbox" name = "import_people" / > < / td >
< / tr >
< tr >
2021-04-27 20:44:24 +01:00
< td > all surveys scans < / td >
< td > < input type = "checkbox" name = "import_surveyscans" / > < / td >
< / tr >
< tr >
< td > all logbooks< / td >
2019-03-10 11:05:57 +00:00
< td > < input type = "checkbox" name = "import_logbooks" / > < / td >
< / tr >
< tr >
2021-04-27 20:44:24 +01:00
< td > QMs (from old csv files)< / td >
2019-03-10 11:05:57 +00:00
< td > < input type = "checkbox" name = "import_QMs" / > < / td >
< / tr >
< tr >
2021-04-27 20:44:24 +01:00
< td > all drawings files< / td >
< td > < input type = "checkbox" name = "import_drawingsfiles" / > < / td >
2019-03-10 11:05:57 +00:00
< / tr >
< tr >
2021-04-27 20:44:24 +01:00
< td > all survex data (10 minutes)< / td >
2019-03-10 11:05:57 +00:00
< td > < input type = "checkbox" name = "import_survex" / > < / td >
< / tr >
< / table >
2011-07-11 02:10:22 +01:00
< p >
< input type = "submit" id = "Import" value = "Import" >
< / p >
< / form >
2022-12-21 15:29:57 +00:00
< p > < / font >
2011-07-11 02:10:22 +01:00
2022-12-21 15:29:57 +00:00
< hr / >
< h3 > Export Logbook to a different format:< / h3 >
2022-12-09 23:45:07 +00:00
< p > This creates 'logbook-new-format.html' in the years/< year> / folder
2021-04-27 20:44:24 +01:00
< table >
2011-07-11 02:10:22 +01:00
< tr >
2021-04-27 20:44:24 +01:00
< th > Export and Download< / th >
< / tr >
< tr >
2011-07-11 02:10:22 +01:00
< td >
2021-04-28 02:43:09 +01:00
< form name = "export" method = "POST" action = {% url " exportlogbook " % } >
2021-04-27 20:44:24 +01:00
{% csrf_token %}
2020-05-31 21:03:40 +01:00
< p > Download a logbook file which is dynamically generated by Troggle.< / p >
2011-07-11 02:10:22 +01:00
< p >
Expedition year:
< select name = "year" >
{% for expedition in expeditions %}
2020-05-31 21:03:40 +01:00
< option value = "{{expedition}}" > {{expedition}} < / option >
2011-07-11 02:10:22 +01:00
{% endfor %}
< / select >
< / p >
< p >
Output style:
2020-05-31 21:03:40 +01:00
< select name = "extension" >
2021-12-30 00:55:42 +00:00
< option value = "html2005" > .html file - 2005 style< / option >
2022-12-09 23:45:07 +00:00
< / select >
2011-07-11 02:10:22 +01:00
< / p >
< p >
< input name = "download_logbook" type = "submit" value = "Download logbook" / >
< / p >
< / form >
2020-05-31 21:03:40 +01:00
< / td >
2011-07-11 02:10:22 +01:00
< / tr >
< / table >
< / form >
2022-12-21 15:29:57 +00:00
< p >
< p >
< p >
2021-04-27 20:44:24 +01:00
< / div >
2021-12-30 00:55:42 +00:00
< / font >
2020-05-31 21:03:40 +01:00
{% endblock %}