diff --git a/core/views/cave_kataster.py b/core/views/cave_kataster.py index cbfe3b3d8..e5a3ea351 100644 --- a/core/views/cave_kataster.py +++ b/core/views/cave_kataster.py @@ -67,6 +67,7 @@ def kataster(request, slug): mvscript += f'sed -i "//s//{knum}/" {cavefilename}\n' mvscript += f'sed -i "//s/[^<]*/caves-{cave.areacode}\/{knum}\/{knum}.svx/" {cavefilename}\n' mvscript += f'sed -i "//s/{str(cave)}/{cave.areacode}-{knum}/" {cavefilename}\n' + mvscript += f'sed -i "/href=\|src=/s/\/{cave.areacode}\/{cave.unofficial_number}\//\/{cave.areacode}\/{knum}\//g" {cavefilename}\n' mvscript += f"mv {cavefilename} {target}.html\n" diff --git a/templates/cave_kataster.html b/templates/cave_kataster.html index 19a148020..a00a91fb0 100644 --- a/templates/cave_kataster.html +++ b/templates/cave_kataster.html @@ -66,7 +66,7 @@ This cave needs to be "katastered". If you have the new number issued by the Aus [ TO DO ]

    -
  • Edit all the 'href=' URLS (if they exist) inside all the cave_data and entrance_data files descriptive text to refer to the new directory +
  • Edit all the 'href=' and 'src=' URLS (if they exist) inside all the cave_data and entrance_data files descriptive text to refer to the new directory
  • Rename the directory (if it exists) inside the areacode directory, e.g. rename /{{cave.areacode}}/{{cave.unofficial_number}}/ as /{{cave.areacode}}/{{knum}}/ (if {{knum}} is the correct new kataster number). Do this last.