openzim / librechef

Sushi Chef script for importing sushi-chef-libretext content
MIT License
1 stars 0 forks source link

References are not working #36

Closed benoit74 closed 3 weeks ago

benoit74 commented 1 month ago

On a course page like https://geo.libretexts.org/Courses/Coastline_College/An_Introduction_To_Geology_-_Coastline_College/01%3A_Understanding_Science/1.02%3A_The_Scientific_Method, we have references with only a number in line (e.g search for [4]) and full reference at the bottom of the page.

These links / references are not working at all.

Expect in-line: image

Current in-line: image

Note that this seems to use anchor tags, but these are missing as well to work properly

Edit: fixed original URL which was not inline with the screenshots), reference are here across courses (but can be from same course of course)

E.g. https://geo.libretexts.org/Courses/Coastline_College/An_Introduction_To_Geology_-_Coastline_College/01%3A_Understanding_Science/1.02%3A_The_Scientific_Method [4] reference is pointing to https://geo.libretexts.org/Bookshelves/Geology/Book%3A_An_Introduction_to_Geology_(Johnson_Affolter_Inkenbrandt_and_Mosher)/01%3A_Understanding_Science/1.02%3A_The_Scientific_Method#4 (another course)

benoit74 commented 1 month ago

The quick fix seems to simply totally remove the link in such situations. The references at the bottom of the page are correct anyway, even in cross-courses scenarii

benoit74 commented 1 month ago

Fixed: image

References on this page: image