2021-04-15 12:55:13 +01:00
<!-- svxcavesingle.html - this text visible because this template has been included -->
2011-07-11 02:10:22 +01:00
{% extends "base.html" %}
{% block title %}List of survex files{% endblock %}
{% block content %}
2021-03-25 20:23:25 +00:00
{% autoescape off %}
2021-04-15 17:51:01 +01:00
< h1 > Surveys for < a href = "/{{cave.url}}" > {{cave.official_name}}< / a > - id:{{cave}}< / h1 >
2021-03-25 20:23:25 +00:00
{% endautoescape %}
2021-04-02 20:54:18 +01:00
<!-- the only thing passed into this template is the object identifier for a cave.
2021-03-25 20:23:25 +00:00
All the processing to extract the survex subdriectories and survex files is done in this template -->
2011-07-11 02:10:22 +01:00
2021-03-25 20:23:25 +00:00
< p > Cave description: < a href = "/{{cave.url}}" > {{cave.url}}< / a >
2022-07-30 23:02:02 +01:00
< p > Wallets: < a href = "/cave/scans/{{cave|safe}}" > {{cave|safe}}< / a >
2021-03-25 20:23:25 +00:00
< / p >
2011-07-11 02:10:22 +01:00
< p >
{% for survexdirectory in cave.survexdirectory_set.all %}
2021-04-02 23:21:23 +01:00
< a href = "#T_{{survexdirectory.primarysurvexfile.path}}" > {{survexdirectory.path}}< / a >
2021-03-26 02:01:29 +00:00
{% empty %}
< p > If you were expecting to see a list of survex files here and a summary table of who did what and when, perhaps
2021-04-15 17:51:01 +01:00
because you followed a link from < a href = "/survexfile/caves/" > the master caves' survex list< / a > page which showed that such survex files clearly existed, and yet there is nothing here but a blank; then this will be because < br >
[a] - this cave has no survex survey files at all, or < br >
[b] - you have run a 'caves' parsing import after running a 'survex' import and the survex data has been blanked out, or < br >
[c] - the survex (.svx) files have been stored on the server in the
2021-03-26 02:01:29 +00:00
< a href = "/handbook/computing/repos.html" > < var > :loser:< / var > < / a > repository
but whoever was
responsible has not yet created the appropriate entries in the XML file in the
2022-10-06 19:02:15 +01:00
< a href = "/handbook/computing/repos.html" > < var > :expoweb:< / var > < / a > repository
AND no one has put the name of the cave in the expoweb/cave_data/pendingcaves.txt list.
2021-03-26 02:01:29 +00:00
It is the XML file which registers the cave description and ties together
the survex files with everything else.
< p > The process for registering a new cave is documented in
< a href = "/handbook/survey/caveentry.html" > this part of the survey handbook< / a > .
{% endfor %}
2011-07-11 02:10:22 +01:00
< / p >
2021-04-02 23:21:23 +01:00
< p > If you can see a filename here: [ < a href = "/survexfile/{{cave.survex_file}}" > {{cave.survex_file}}< / a > ] which does < em > not< / em > match any in the list below < em > including the directories beginning with < / em > < strong > caves-162X/< / strong > < / em >
not just the filename< / em > , then (if logged on) you can
2022-03-18 20:09:49 +00:00
< strong > click here < var > < a href = "/{{cave.slug}}_cave_edit/" > {{cave.slug}}_cave_edit< / a > < / var > < / strong >
2021-04-02 23:21:23 +01:00
to go to a form to correct the online data.
Instructions for filling in this form are in this part
< a href = "/handbook/survey/caveentry.html" > of the survey handbook< / a > .
< / p >
2011-07-11 02:10:22 +01:00
{% for survexdirectory in cave.survexdirectory_set.all %}
2021-03-25 20:23:25 +00:00
< h3 id = "T_{{survexdirectory.primarysurvexfile.path}}" > {{survexdirectory.path}}< / h3 >
< table >
< tr > < th > Survex file< / th > < th > Block< / th > < th > Date< / th > < th > Explorers< / th > < th > length< / th > < th > Titles< / th > < th > Scans< / th > < / tr >
{% for survexfile in survexdirectory.survexfile_set.all %}
< tr >
{% if survexfile.exists %}
2021-04-30 22:44:03 +01:00
< td rowspan = "{{survexfile.survexblock_set.all|length|add:" 1 " } } " >
2021-03-25 20:23:25 +00:00
{% else %}
2021-04-30 22:44:03 +01:00
< td class = "survexnewfile" rowspan = "{{survexfile.survexblock_set.all|length|add:" 1 " } } " >
2021-03-25 20:23:25 +00:00
{% endif %}
2021-04-19 01:32:18 +01:00
{% if survexfile == survexdirectory.primarysurvexfile %}
2021-03-25 20:23:25 +00:00
< a href = "{% url " svx " survexfile . path % } " > < b > {% url "svx" survexfile.path %}< / b > < / a >
{% else %}
< a href = "{% url " svx " survexfile . path % } " > < i > < small > {% url "svx" survexfile.path %}< / small > < / i > < / a > <!-- would like to extract only the last bit. Some javascript useful ? -->
2021-04-19 01:32:18 +01:00
{% endif %}
2021-03-25 20:23:25 +00:00
< / td >
< / tr >
{% for survexblock in survexfile.survexblock_set.all %}
< tr >
<!-- Block -->
< td style = "width:10 em" > < a href = "{% url " svx " survexfile . path % } " > {{survexblock.name}}< / a > < / td >
<!-- Date -->
< td style = "white-space:nowrap" >
{% if survexblock.expedition %}
< a href = "{{survexblock.expedition.get_absolute_url}}" > {{survexblock.date|date:"D d M Y"}}< / a >
{% else %}
<!-- {{survexblock.date}} -->
{% endif %}
< / td >
<!-- Explorers -->
< td >
{% for personrole in survexblock.survexpersonrole_set.all %}
{% if personrole.personexpedition %}
< a href = "{{personrole.personexpedition.get_absolute_url}}" > {{personrole.personname}}< / a >
{% else %}
{{personrole.personname}}
{% endif %}
{% endfor %}
< / td >
<!-- length -->
< td style = "padding-right: 3px; text-align:right" > {{survexblock.legslength|stringformat:".1f"}}< / td >
<!-- Titles -->
< td style = "padding-left: 3px;" >
{{survexblock.title}}
< / td >
<!-- Scans -->
< td >
2021-04-26 19:50:03 +01:00
{% if survexblock.scanswallet %}
< b > < a href = "{{survexblock.scanswallet.get_absolute_url}}" > {{survexblock.scanswallet.walletname}}< / a > < / b >
2021-03-25 20:23:25 +00:00
{% endif %}
< / td >
< / tr >
{% endfor %}
{% endfor %}
< / table >
2011-07-11 02:10:22 +01:00
{% endfor %}
{% endblock %}