Certain links to MDS system drop '.' from URL

CharlasBug Collectors

Únete a LibraryThing para publicar.

Certain links to MDS system drop '.' from URL

1infinitebuffalo
Ene 8, 2018, 6:52 pm

If I go to the DDC view of a section of my catalog, say https://www.librarything.com/catalog/infinitebuffalo&ddc=891.851, and then use one of the lower 'Wording' breadcrumb links to visit the MDS page for the LT system, say the 'Polish' link there, the . is dropped from the MDS number in the URL --- so that link goes to https://www.librarything.com/mds/89185 and fails. The same is true from other DDC pages of my catalog, such as https://www.librarything.com/catalog/infinitebuffalo&ddc=973.91.

I've also encountered other places in the system that are supposed to link to some MDS page or other and fail, which I think are similar problems, though unfortunately I haven't always tracked systematically where the links are located and can't seem to locate them at the moment :-\

I see two potential solutions:

- make sure the . gets into that URL properly. Not certain how the links are built or how difficult it would be to fix the problem this way.

- automatically interpolate a . after the third digit of an MDS or DDC number in a URL if it's not there already---i.e., https://www.librarything.com/mds/891851 and https://www.librarything.com/mds/891.851 should just go to the same place, as should https://www.librarything.com/catalog/infinitebuffalo&ddc=891.851 and https://www.librarything.com/catalog/infinitebuffalo&ddc=891851 ...

2lorannen
Ene 22, 2018, 12:55 pm

>1 infinitebuffalo: Took me a minute to find what link you were talking about—I see the error now! For devs, to reproduce:

- Go to the DDC view of infinitebuffalo's catalog, like this page: https://www.librarything.com/catalog/infinitebuffalo&ddc=891.851
- Near the top of the page, next to "Wording" click the link that reads "West and South Slavic languages"
- That link should go here: https://www.librarything.com/mds/891.8, but instead goes here: https://www.librarything.com/mds/8918, which gets you an "n/a" page

3Opteryx
Nov 22, 2020, 12:26 pm

I just noticed this bug still exists unchanged. :(

4knerd.knitter
Mar 12, 2021, 3:36 pm

Fixed the generated url. Please let us know if this is found anywhere else.