Hi,
While running statistics on the datadumps, I found a couple of records
with errors in the classifications.
I think they are still in an old format (a list of objects with name
and value, instead of an object of names and lists of values):
{ ...
"classifications": [
{
"name": "dewey_decimal_class",
"value": "911"
},
{
"name": "lc_classifications",
"value": "G1030"
}
],
...
}
I wrote a script to fix this:
https://github.com/bencomp/openlibrary/blob/master/scripts/2012/02/upgradeclassifications.py
Does it look ok?
Can someone use a bot account to run this script on these records?
/books/OL21515804M
/books/OL870853M
/books/OL6964383M
/books/OL6929172M
/books/OL169157M
/books/OL5041391M
/books/OL2128182M
/books/OL352188M
/books/OL23576320M
The messages were caught by the statistics script, which expects the
'new' classifications object. The normal web view of these books will
break for the same reason.
Regards,
Ben
_______________________________________________
Ol-tech mailing list
[email protected]
http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech
To unsubscribe from this mailing list, send email to
[email protected]