summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/base.html6
-rw-r--r--templates/cave.html16
-rw-r--r--templates/dataformat/cave.xml3
3 files changed, 13 insertions, 12 deletions
diff --git a/templates/base.html b/templates/base.html
index 8fea1cf..b0e90eb 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -26,9 +26,9 @@
</div>
</div>
<div class="toolbarlinks">
- <a href="{% url "survexcavessingle" "264" %}">264</a> |
- <a href="{% url "survexcavessingle" "290" %}">290</a> |
- <a href="{% url "survexcavessingle" "359" %}">359</a> |
+ <a href="/survexfile/caves-1623/264/264.svx">264</a> |
+ <a href="/survexfile/caves-1623/290/290.svx">290</a> |
+ <a href="/survexfile/caves-1626/359/359.svx">359</a> |
<a href="/survexfile/">Survex</a> |
<a href="{% url "survexcaveslist" %}">All Survex</a> |
<a href="{% url "allscans" %}">Scans</a> |
diff --git a/templates/cave.html b/templates/cave.html
index e12bdc8..f06845b 100644
--- a/templates/cave.html
+++ b/templates/cave.html
@@ -485,6 +485,13 @@ div#scene {
<h2>Explorers</h2>
{{ cave.explorers|safe }}
{% endif %}
+{% if cave.survex_file %}
+ <h2>Survex File</h2>
+ <p>[<a href="https://aardgoose.github.io/CaveView.js/">CaveView</a> display of the .3d file is temporarily disabled while we fix things (Nov.2021).<br> See <a href="/handbook/computing/todo.rst">/handbook/computing/todo.rst</a>.]<br><br>
+ Primary <a href="/survexfile/{{cave.survex_file}}">Survex file</a> &nbsp;for this cave
+
+ <div id='scene'></div>
+{% endif %}
{% if cave.underground_description %}
<h2>Underground Description</h2>
{{ cave.underground_description|safe }}
@@ -515,14 +522,7 @@ div#scene {
<a href="{% url 'caveQMs' cave_id|safe %}">QM page for {{ cave_id|safe }}</a>
{% endif %}
-{% if cave.survex_file %}
- <h2>Survex File</h2>
- <p><a href="https://aardgoose.github.io/CaveView.js/">CaveView</a> display of the .3d file is temporarily disabled while we fix things (Nov.2021). See <a href="/handbook/computing/todo.rst">/handbook/computing/todo.rst</a>.<br>
- <a href="{% if cave.kataster_number %}{% url "cave3d" cave.kataster_number %} {% else %}{% url "cave3d" cave.unofficial_number %} {% endif %}">3d file download</a>&nbsp;for this cave<br>
- <a href="{% if cave.kataster_number %}{% url "survexcavessingle" cave.kataster_number %}{% else %}{% url "survexcavessingle" cave.unofficial_number %}{% endif %}">survex file</a> &nbsp;for this cave
-
- <div id='scene'></div>
-{% endif %}
+
<h2>Scanned survey notes</h2>
<a href="{% url "cavewallets" cave_id %}">{{ cave_id|safe }}</a>
diff --git a/templates/dataformat/cave.xml b/templates/dataformat/cave.xml
index 7f53cd4..42fc122 100644
--- a/templates/dataformat/cave.xml
+++ b/templates/dataformat/cave.xml
@@ -42,6 +42,7 @@ code used in the Austrian kataster e.g '1/S +' - https://expo/.survex.com/katast
</entrance>
{% endfor %}
<explorers>{{ cave.explorers|default_if_none:""|safe }}</explorers><!-- 'CUCC Expo' and year(s) of exploration. To distinguish from caves explored by foreign groups. Individual names can be given too if it was a small cave. -->
+<survex_file>{{ cave.survex_file|default_if_none:"caves-1623/000/000.svx"|safe }}</survex_file><!-- Name of top-level survey file for this cave. Relative to the 'loser' survex repository. So for most caves that's "caves/cavenum/cavnum.svx". (e.g. caves/204/204.svx -->
<underground_description>{{ cave.underground_description|default_if_none:""|safe }}</underground_description><!-- Underground description. (description of approach and entrance goes in entrance file). For a small cave this will be the entire description. For larger caves it will be the front page of the description, or a short intro, containing links to other pages with the cave description in, or even nothing but a link. -->
<equipment>{{ cave.equipment|default_if_none:""|safe }}</equipment><!-- For a small cave, summary of gear needed to descend. For longer caves it could be blank, a table, or just refer to the description/topos. Leave blank if this info is in the description. -->
<references>{{ cave.references|default_if_none:""|safe }}</references><!-- References to documentation. Could be Journal articles or Logbook entries. Can be links if the docs are online. -->
@@ -52,7 +53,7 @@ code used in the Austrian kataster e.g '1/S +' - https://expo/.survex.com/katast
<length>{{ cave.length|default_if_none:""|safe }}</length><!-- Cave length. Can be left blank and system should fill it in automatically from survey data (it doesn't yet) -->
<depth>{{ cave.depth|default_if_none:""|safe }}</depth><!--Cave depth. Can be left blank and system should fill it in automatically from survey data (it doesn't yet) -->
<extent>{{cave.extent|default_if_none:""|safe }}</extent>
-<survex_file>{{ cave.survex_file|default_if_none:"caves-1623/000/000.svx"|safe }}</survex_file><!-- Name of top-level survey file for this cave. Relative to the 'loser' survex repository. So for most caves that's "caves/cavenum/cavnum.svx". (e.g. caves/204/204.svx -->
+
<description_file>{{ cave.description_file|default_if_none:""|safe }}</description_file><!-- Path of top-level description file for this cave, when a separate file is used. Otherwise blank. -->
<url>{{ cave.url|default_if_none:"1623/000"|safe }}</url><!-- (Required). Relative URL of this cave. i.e the URL this cave appears at on the website, not including 'https://expo.survex.com/. Normally area/cavenum., e.g ('1623/000')-->
</cave>