{% extends "base.html" %} {% block title %}Cave re-labelling from unofficial identifier to official Kataster number {% endblock %} {% block content %}

Cave re-labelling from unofficial identifier to official Kataster number

Cave {{cave.slug|safe}} '{{cave.official_name|safe}}'

{% if cave.kataster_number %} This cave has already been "katastered". area:{{cave.areacode |safe}} number:{{cave.kataster_number |safe}} {% else %} This cave needs to be "katastered". If you have the new number issued by the Austrians, we can do it now.

{% csrf_token %} {{form.as_p}}
{% endif %}

Rename the .html files in expoweb

{{cave_data|safe}}
   <kataster_number></kataster_number>
    → <kataster_number>{{knum}}</kataster_number>

{% for e in entrance_data %} {{e|safe}}
{% endfor %}

Rename the cave description directory in expoweb

Rename the survex directory in loser

{{loser_name|safe}}/

{% for f in loser_data %}    {{f|safe}}
{% endfor %}

Sort out the *fix point(s) in both loser and in expoweb

Without fully parsing the entire survex *include tree (which this code does not do), it is impossible to find the *fix declaration file from the 'station' fields in the entrance_data files. However in area 1623 we conventionally store the *fix in a "known" place. This does not work for area 1626.

Set the historic alias forwarder in expoweb

This will cause lost of errors until the cave "{{cave.areacode |safe}}-{{knum}}" has been created by a full database reset.

Finally

Ideal scenario

Ideally you do this renumbering on a standalone instance of troggle running on a troggle development laptop and you don't push any of the git commits to the server until you have got all the niggles out of the conversion, i.e. the databaseReset runs locally without any warnings or errors introduced by your renaming and 'cavern' runs without any new survex errors. {% endblock %}