Page MenuHomePhabricator

Checksum check when adding ISBN-10 and ISBN-13 numbers
Closed, DeclinedPublic

Description

I noticed many incorrect ISBN numbers in Wikidata. Can you please add a checksum check to give editor a waring before letting ISBN-10 and ISBN-13 properties inserted?

Some ideas can be found at en.wp at Module:ISBNT

Event Timeline

In many cases the template is misused
https://en.wikipedia.org/w/index.php?title=Philadelphia%2C_Mississippi&type=revision&diff=713163874&oldid=711233591

In other cases we can just replace the invalid ISBN with the correct OCLC.

We can follow two strategies: Whether Wikidata gives a warning before final save and marks the ISBN as invalid or does completely disallow the addition of these ISBNs

This should be handled by Wikidata's existing (soft) constraint system, but there is no way currently to do a "Math" constraint.

Not sure of the exact user name, but you can poke Ivan (A.?) Kristanin on Wikidata to see about adding support.

Lydia_Pintscher subscribed.

Yes as Izno said we are not going to do this in the software itself. It should be done in the constraints.

I am working on fixing the existing ones manually. Many errors came form Spanish Wikipedia because we have already fixed them in the English Wikipedia.

I think the edit filter approach works also, but I think it would be better to do it in the constraints. I guess we can use the complex constraint template since you appear to have a query for it.