[Expo-tech] Logbook - handling -photos

Philip Sargent (Gmail) philip.sargent at gmail.com
Fri Mar 29 14:32:11 GMT 2019


I have finally got around to editing in Dr Nat's logbook entries into the 2018 logbook, see
the last few entries
http://expo.survex.com/years/2018/logbook.html##t2018-08-13

[Nat, the actual logbook was left in the potato hut which is why the 2018 online logbook is curiously incomplete.]

Although Nat had reduced the size of the photos, they were still not quite small enough for the ::expoweb:: repository so I reduced them further to 300px wide and made the logbook click-link to the full sized versions in expofiles/photos/2018/NatalieUomini/..

I would like a bit of feedback on the right way to do this in future. The method I used keeps a small photo directly with the logbook in subfolder /i/ and has the large photo in the non-version-controlled expofiles/photos/2018/.. folder. I can see that this is risk averse but perhaps not the best way of doing things as if the photos or expofiles moves in future all the links will need remaking. Also the penalty is that editing in each photo is a faff of manual HTML, vis:

<div style="float: left; margin-right: 10px; ">
<a href="../../../expofiles/photos/2018/NatalieUomini/bolted-untagged-cave_beside_aa-1-2017_view-northwest.jpg">
<img  src=i/bolted-untagged-cave_beside_aa-1-2017_view-northwest.jpg> 
<br><em><small>bolted-untagged-cave_beside_aa-1-2017_view-northwest<br>click for bigger picture</small></em>
</a>
</div>

instead of just
<img  src=i/bolted-untagged-cave_beside_aa-1-2017_view-northwest.jpg>

and yes, the links should really go to the proper photo page e.g.
http://expo.survex.com/photos/2018/NatalieUomini/2004-18_valley_cubic_boulder_afar_view_west_Web.jpg.13.html
and not just to
http://expo.survex.com/expofiles/photos/2018/NatalieUomini/2004-18_valley_cubic_boulder_afar_view_west.jpg 

Nathalie also mentions a GPS track, but I can't see where this might have been uploaded. Presumably it should be created as a link like this
http://expo.survex.com/expofiles/gpslogs/2018/west-of-plateau_cdensham-2018-07-15.gpx
but I can't find it.

Getting the GPS track stuff properly designed is something we should aim to do this year.

Philip

-----Original Message-----
From: Expo-tech [mailto:expo-tech-bounces at lists.wookware.org] On Behalf Of Sam Wenham
Sent: 27 March 2019 16:37
To: expo-tech at lists.wookware.org
Subject: Re: [Expo-tech] Logbook parsing?

The cause of this is that the tags on the weird looking one are all in
caps. Change them to lowercase and it will work better.

I'm not sure the edit link would even work. Changing the entry in the
database is easy but changing a sub section of a file that is badly
formatted without rewriting the rest of the file sounds like a recipe
for disaster. If you want to do that you need a real file standard we
actually stick to.

Sam

On 27/03/2019 13:27, Philip Sargent (Gmail) wrote:
> This is all new to me. Looking at http://expo.survex.com/expedition/2018
> some of the logbook entries are properly parsed, such as
> http://expo.survex.com/logbookentry/2018-08-15/fgh-derig
> and others make a mess of the HTML, such as
> http://expo.survex.com/logbookentry/2018-08-08/top-camp-surface-prospecting-
> old-new-caves-85-hour 
> 
> OK, so not a big deal. No doubt will get fixed in due course, either by
> improving the parser or by editing the logbook.
> 
> 
> But what really puzzles me is the link to edit in-situ the logbook entry in
> the header:
> 
> Website home | You are logged in as expo sort your profile . | Log out Edit
> logbook entry 2018-08-08: (Top Camp - Surface Prospecting - Old & New Caves
> - 8.5 hours)
> i.e. the link to http://expo.survex.com/admin/core/logbookentry/16/
> which seems to be editing the database entry for the logbook. But won't any
> edits here just get overwritten when the database is next regenerated from
> the master logbook file? (Looks very powerful though.)
> 
> Should this functionality be retired?
> 
> 
> _______________________________________________
> Expo-tech mailing list
> Expo-tech at lists.wookware.org
> https://lists.wookware.org/cgi-bin/mailman/listinfo/expo-tech
> 

_______________________________________________
Expo-tech mailing list
Expo-tech at lists.wookware.org
https://lists.wookware.org/cgi-bin/mailman/listinfo/expo-tech




More information about the Expo-tech mailing list