From 978514a43e8ee7c7de19ae0ad65cf320e8889723 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Thu, 19 Nov 2026 13:01:07 -0700 Subject: [PATCH] Fit the guide change to the catalogue: Siskiyou Peaks guide, Circle of Solitude sources, and honest no-GPX wording Co-Authored-By: Claude Fable 5.2 --- CHANGELOG.md | 9 +++++++++ circle-of-solitude/trail.toml | 28 ++++++++++++++++------------ siskiyou-peaks-trail/trail.toml | 12 ++++++++++++ web/olt/facets.py | 5 +++++ web/olt/trail.py | 9 +++++++++ web/tests/test_exact_guides.py | 15 +++++++++++++++ web/tests/test_hike.py | 2 +- 7 files changed, 67 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8a2cd4..95b0c47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 2026-11-19 - Every route's page names the exact book or guide + +- Every route's page now names the exact book or guide: its title, author, edition, ISBN where there is one, and where in it the route is. +- The link says what it goes to: the publisher's page for the book, the author's page for the guide, or a library record when the book is out of print. +- The notice on a route sold as a guide names the book and edition. +- A page that sells the guide is no longer labelled "Official site", and a route with no GPX here says "see the guide" rather than "see the official site" where the page it points to is the guide's. +- Nine routes whose link went to a shop front, a list page or the wrong page now go to the exact book or kit: Circle of Solitude, Tahoe–Yosemite Trail, Eastern Continental Trail, Gospel Hump Loop, Rutherford Lake Loop, Basin and Range Trail, Condor Trail, Great Western Divide Loop and Trans Adirondack Route. +- A guide that must be bought now has to say what it is, or the data check refuses it. + ## 2026-11-19 - The High Sierra Trail runs its full length, and the Highline Trail is whole - The High Sierra Trail's track now runs from Crescent Meadow to Whitney Portal, 105.7 km (65.7 mi), where it ended near Crabtree Meadow, 77.4 km, 38 km short. It is built from the National Park Service's High Sierra Trail layer for Sequoia and Kings Canyon National Parks and the Forest Service's Mount Whitney Trail (trail 3404) for the descent from Trail Crest, both public domain, so the record's licence is now public domain where it was ODbL. The 3.1 km spur to the summit of Mount Whitney is kept apart in the alternates. The Park Service's 72.2 miles (115.5 km) includes the round trip to the summit, which is why the track is shorter than that figure. The two layers stop 204 m apart at Trail Crest and the gap is left open. diff --git a/circle-of-solitude/trail.toml b/circle-of-solitude/trail.toml index a0b0865..5f0b639 100644 --- a/circle-of-solitude/trail.toml +++ b/circle-of-solitude/trail.toml @@ -13,16 +13,16 @@ wave = 1 [source] status = "none" -publisher = "Wilderness Press (publishes the route in the guidebook)" -url = "https://shop.adventurewithkeen.com/wilderness-press/" +publisher = "Wilderness Press (publishes the route in the guidebook); the page that credits the book is fastestknowntime.com's" +url = "https://fastestknowntime.com/route/circle-solitude" format = "No line included" crs = "EPSG:4326" licence = "none-stated" -licence_text = "No track is included, so no source licence applies to a track. This record names the creator and the page its facts were read on (https://shop.adventurewithkeen.com/wilderness-press/, read 2026-11-10)." +licence_text = "No track is included, so no source licence applies to a track. This record names the creator and the page its facts were read on (https://fastestknowntime.com/route/circle-solitude, read 2026-11-19)." attribution = "none (no line included)" osm_only = false mainline = "No track is included; whether the creator shares one is not settled." -source_checked = "2026-11-10" +source_checked = "2026-11-19" redistributable = true line_source = "none (no line included)" line_file = "" @@ -36,7 +36,7 @@ note = "Not recorded: whether the creator shares the track is not settled." status = "no-logo-exists" logo_source = "" contact = "Mike White" -note = "No emblem of the route exists at an allowed source. The route is a named loop in Mike White's Wilderness Press guidebook Kings Canyon National Park; the publisher's page https://shop.adventurewithkeen.com/wilderness-press/ was read and is a bookshop listing with no mark for this route, and the author publishes no route page of his own. A route known only as a guidebook name has no crest, badge or blaze of its own." +note = "No emblem of the route exists at an allowed source. The route is a named loop in Mike White's Wilderness Press guidebook Kings Canyon National Park; fastestknowntime.com's page for the route (https://fastestknowntime.com/route/circle-solitude), which credits the book, was read and shows no mark for this route, and the author publishes no route page of his own. A route known only as a guidebook name has no crest, badge or blaze of its own." logo_file = "" logo_owner = "Mike White" @@ -68,11 +68,6 @@ shape = "loop" permit = "A Sequoia and Kings Canyon National Parks wilderness permit is needed for overnight travel on this loop." checked = "2026-11-19" -[[hike.source]] -url = "https://shop.adventurewithkeen.com/wilderness-press/" -publisher = "Wilderness Press (the publisher's page, the one the route note rests on): the route starts from Road's End in Kings Canyon" -facts = ["summary", "start"] - [[hike.source]] url = "https://nominatim.openstreetmap.org/ui/details.html?osmtype=W&osmid=279697028" publisher = "OpenStreetMap contributors, via Nominatim (ODbL): Roads End Permit Station, at Road's End, OpenStreetMap way 279697028" @@ -80,8 +75,8 @@ facts = ["start_lonlat"] [[hike.source]] url = "https://fastestknowntime.com/route/circle-solitude" -publisher = "fastestknowntime.com (its page for the route says it starts and ends at Road's End)" -facts = ["shape"] +publisher = "fastestknowntime.com (its page for the route: a loop of about 68 miles that starts and ends at Road's End, by Avalanche Pass, Colby Pass and Forester Pass, named and described by Mike White in his Wilderness Press guide Kings Canyon National Park)" +facts = ["summary", "start", "shape"] [[hike.source]] url = "https://www.nps.gov/seki/planyourvisit/trailcond.htm" @@ -143,3 +138,12 @@ basis = "The Open Library record gives Kings Canyon National Park, A Complete Hi basis_url = "https://openlibrary.org/books/OL8277201M" asked_by = "the dataset's own check" outcome = "applied" + +[[history]] +date = "2026-11-19" +change = "The shop front of the book's publisher is no longer cited. It supports no fact here, so the source and the shield note now rest on the fastestknowntime.com page that credits the book, and the summary and the start are listed under that page." +fields = ["source", "shield.note", "hike.source"] +basis = "The shop page is a list of the publisher's books and says nothing about this route. The fastestknowntime.com page for the route names the Mike White guide Kings Canyon National Park, the loop of about 68 miles from Road's End, and Avalanche, Colby and Forester Passes. The book itself is identified by its Open Library record. No fact was left without a source." +basis_url = "https://fastestknowntime.com/route/circle-solitude" +asked_by = "the owner of the dataset" +outcome = "applied" diff --git a/siskiyou-peaks-trail/trail.toml b/siskiyou-peaks-trail/trail.toml index 1953f54..d5e56af 100644 --- a/siskiyou-peaks-trail/trail.toml +++ b/siskiyou-peaks-trail/trail.toml @@ -61,6 +61,9 @@ url = "https://www.abebooks.com/9781983447525/Siskiyou-Peaks-Trail-Ashland-Shast format = "book" publisher = "CreateSpace Independent Publishing Platform" isbn = "9781983447525" +edition = "2017 paperback" +where = "The whole book: this route is its one subject" +link_is = "seller" [hike] summary = "The Siskiyou Peaks Trail is a 448-mile route from Ashland, Oregon, to Mt Shasta, California, that reaches the highest point in each of seven wilderness areas. It follows a mix of backcountry roads and trails, passes more than 40 glacial cirque lakes, and its last summit is Mt Shasta, which has no trail to its top. Aria Zoner worked it out and first walked it in 2013." @@ -114,3 +117,12 @@ basis = "The author's route page gives the length as 448 miles and Mt Shasta as basis_url = "https://outsideways.com/routes/us/siskiyou-peaks-trail/" asked_by = "the dataset's own check" outcome = "applied" + +[[history]] +date = "2026-11-19" +change = "The guide now says its edition (the 2017 paperback), where the route is in it (the whole book) and what its link points at (a bookseller's listing, since the guide's address is the AbeBooks listing)." +fields = ["guide"] +basis = "The AbeBooks listing gives the 2017 CreateSpace paperback with ISBN 9781983447525, and the book's whole subject is this route. The address the record already holds is that bookseller's listing, so the link is marked as a seller's page." +basis_url = "https://www.abebooks.com/9781983447525/Siskiyou-Peaks-Trail-Ashland-Shasta-1983447528/plp" +asked_by = "the dataset's own check" +outcome = "applied" diff --git a/web/olt/facets.py b/web/olt/facets.py index 54c4d3b..8354083 100644 --- a/web/olt/facets.py +++ b/web/olt/facets.py @@ -292,6 +292,11 @@ def gpx_status_text(rec): status = gpx(rec) if status == "sold" and not common.sells_gpx(rec): return "Not here, sold as a guide" + if status == "elsewhere": + # What the page really offers is read from the same link the page's button uses. + from . import trail + return {"guide": "Not here, see the guide", "": "Not here"}.get(trail.see_kind(rec), + GPX_STATUS[status]) return GPX_STATUS[status] diff --git a/web/olt/trail.py b/web/olt/trail.py index 8b5767a..4077d44 100644 --- a/web/olt/trail.py +++ b/web/olt/trail.py @@ -196,6 +196,15 @@ def sold_guide_page(rec, url): GUIDE_LABELS = set(LINK_IS_TEXT.values()) | {"The guide's page", "The route's guide"} +def see_kind(rec): + """What a page with no GPX here sends the reader to: "guide" when its link is a guide's, + "" when it has no link at all, else "official".""" + link = official_link(rec) + if not link: + return "" + return "guide" if link[1] in GUIDE_LABELS else "official" + + def _see_clause(rec): """", so see the official site", or ", so see the guide" when the page on offer is a guide's.""" link = official_link(rec) diff --git a/web/tests/test_exact_guides.py b/web/tests/test_exact_guides.py index 4445ba7..f5fb0eb 100644 --- a/web/tests/test_exact_guides.py +++ b/web/tests/test_exact_guides.py @@ -83,6 +83,21 @@ class ExactGuideTest(unittest.TestCase): rec["guide"] = [dict(BOOK, access="free", url="https://author.example/route", link_is="author")] self.assertEqual(trail.official_link(rec)[1], "Official site") + def test_the_no_gpx_wording_follows_what_the_page_offers(self): + from olt import facets + unclear = {"creator": "A", "line_policy": "unclear"} + rec = route(hike={"official_url": "https://author.example/route"}, route=unclear) + self.assertEqual(facets.gpx(rec), "elsewhere") + self.assertEqual(facets.gpx_status_text(rec), "Not here, see the official site") + rec = route(hike={"official_url": "https://shop.example/sierra-south"}, route=unclear) + self.assertEqual(facets.gpx_status_text(rec), "Not here, see the guide") + rec = route(route=unclear) + self.assertEqual(facets.gpx_status_text(rec), "Not here, see the guide") + rec = route(route=unclear, guide=None) + rec["guide"] = [] + self.assertEqual(facets.gpx_status_text(rec), "Not here") + self.assertNotIn("official site", facets.gpx_status_text(route(route=unclear))) + if __name__ == "__main__": unittest.main() diff --git a/web/tests/test_hike.py b/web/tests/test_hike.py index 196b763..a38d26f 100644 --- a/web/tests/test_hike.py +++ b/web/tests/test_hike.py @@ -154,7 +154,7 @@ class TrailPageTest(unittest.TestCase): self.assertNotIn("Where the hiking facts come from", body) # no track: the page says so plainly and points at the source self.assertIn("No GPX here", t) - self.assertIn("GPX Not here, see the official site", t) + self.assertIn("GPX Not here", t) self.assertIn('href="#track"', top) self.assertIn('id="track"', top)