This site uses cookies to deliver our services, improve performance, for analytics, and (if not signed in) for advertising. By using LibraryThing you acknowledge that you have read and understand our Terms of Service and Privacy Policy. Your use of the site and services is subject to these policies and terms.
  • LibraryThing
  • Book discussions
  • Your LibraryThing
  • Join to start using.

links from work details to DDC/MDS after decimal broken

Bug Collectors

Join LibraryThing to post.

Mar 23, 3:06pm Top

The decimal point is not being included in the link to /mds from a work page. For instance, from https://www.librarything.com/work/31200/workdetails/164587133 has MDS of 516.22, the links work properly for "Mathematics and Science", "Mathematics", and "Algebraic geometry", however the link for "Euclidean geometry" links to https://www.librarything.com/mds/5162 where it should link to https://www.librarything.com/mds/516.2 resulting in a "Not a valid MDS" error.

Mar 25, 10:11am Top

That one works for me now. Is it still failing for you?

Mar 25, 12:48pm Top

>2 lorax: Yep, works for me, too.

Edited: Mar 25, 3:19pm Top

The last link works; what OP says is that the link before it doesn't work ('"Euclidean geometry" links to https://www.librarything.com/mds/5162').

Mar 25, 3:24pm Top

Sorry, I wasn't clear.

Obviously the explicitly invalid link is invalid, and the explicitly valid link is valid.

However, the OP claims that the link from the work page is to the invalid target, and I find that it is to the valid target. The random existence of an invalid URL isn't a problem if it isn't linked from anywhere, and the situation described in the OP of the invalid URL being linked from the work page isn't one that I can reproduce.

Mar 25, 5:53pm Top

I'm getting the problem exactly as described by OP:
Click on https://www.librarything.com/work/31200/workdetails/164587133
In the "DDC/MDS" section, click on "Euclidean geometry"
You're taken to https://www.librarything.com/mds/5162 which says "Not a valid MDS"

Mar 26, 8:56am Top

Aaaah, you click on the *words* rather than on the *number*. Gotcha. Yeah, that's broken for me too.

Edited: Mar 26, 12:07pm Top

>6 r.orrison: Yep, there it is. I was missing that was the key, too. Thank you. That's a bug!

Mar 26, 12:06pm Top

Here's what's going on: DDC classifications with a decimal in them (like "516.2" for example) are getting the decimal stripped out of the URL on just the word phrases for the classification. The link in the number itself is working fine, as observed above.

For devs, to reproduce:

- Go to the details page for this book: https://www.librarything.com/work/31200/workdetails/164587133
- Under DDC/MDS, click on either the words "Euclidean geometry".
- The URL should be this: https://www.librarything.com/mds/516.2
- Instead, it's linked to this: https://www.librarything.com/mds/5162, which does not exist, and will get you a "Not a valid MDS" page.

Group: Bug Collectors

903 members

92,488 messages

Bug Tracking

This topic is part of LibraryThing's in-talk bug tracking.

Join or watch Bug Collectors to get "Bug Tracking" under "The World" in Talk all the time.

Bug (edit)

ID: 305083

Category: Work pages

Assigned to all

Reported by tecknicaltom

Status: Reported

Mar 23, 3:06pm

61 days since last change

By tecknicaltom

Status log

Reported. tecknicaltom (Mar 23, 3:06pm)


This topic is not marked as primarily about any work, author or other topic.


No touchstones

About | Contact | Privacy/Terms | Help/FAQs | Blog | Store | APIs | TinyCat | Legacy Libraries | Early Reviewers | Common Knowledge | 134,864,088 books! | Top bar: Always visible