From c4f990f002eb451c729d580beec1bd696714203c Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 8 Feb 2025 23:04:19 +0000 Subject: Better description --- templates/cave_fix.html | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'templates') diff --git a/templates/cave_fix.html b/templates/cave_fix.html index 41b21f7..ec4b021 100644 --- a/templates/cave_fix.html +++ b/templates/cave_fix.html @@ -9,6 +9,11 @@

Cave fix misplaced images and descriptive files

+This page and the code behind it ( in troggle/core/views/cave_kataster.py) is for one-off data reformatting and rearrangment fixes. Once the fix has been done it never needs to be done again. +

This is in contrast to the katastering tool which is used regularly: whenever a cave with a discovery unofficial name gets an official kataster number. +

+In the past we have reformatted the URLs and filenames for caves which were incompletely katastered, and for caves where for several months the images in the cave descriptions were put in the worng place by unfinished software. In the future we expect to have to tidy up the incoherent QMs system, move non-cave "guidebook" material out of the /1623/ directory tree, extract EXIF GPS data from photos and a lot more. Making the logbook entries have properly persistent internal IDs would also be a good thing. +

@@ -24,20 +29,16 @@

Rename the cave description directories in expoweb/{{areacode|safe}}/

-In 1623 there are 82 69 cave description sub-files, i.e. single pages with a larger image and caption using the t/i/l convention, are not in
-1623/[cave]/l/*.html but are directly in
-1623/l/[cave]*.html
-due to early versions of Martin's image insertion tool for editing cave descriptions. 21 of these do did not even have filenames beginning with [cave], the cave unofficial identifier, but are all digits. They seem to be all 2023 discoveries or caves which have had images added to their descriptions in 2023. +Done. +

{% if misplaced %} 1623/l/ :
{% endif %} {{misplaced|safe}}

-If we don't edit these, things will still work, i.e. cave description images will still appear, but the names of the files no longer match the new kataster name of the cave. This renaming tool fixes this - so that these files are stored together with the rest of the stuff just for that cave. -It needed doing as troggle does some weird perversions to display these images and these code perversions which lead to odd glitches can now be removed. -

+

Fix the old-style URLS "115/ent.jpg" to "ent.jpg" or "/1623/115/ent.jpg" in expoweb/{{areacode|safe}}/