New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-MARC import from archive.org #1952
Non-MARC import from archive.org #1952
Conversation
1a66272
to
28dac2e
Compare
28dac2e
to
f8063f0
Compare
@@ -1,6 +1,5 @@ | |||
"""Library for interacting wih archive.org. | |||
""" | |||
from __future__ import print_function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this removed? Because the print functions were removed? (this was for python 3 compat.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no uses of print in the module.
if subject: | ||
d["subjects"] = isinstance(subject, list) and subject or [subject] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did we not need this checking logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, a few questions
Improves the metadata importing from Archive.org items that do no have MARC records.
The following item, https://openlibrary.org/books/OL26746219M , was imported using the https://github.com/internetarchive/openlibrary/wiki/Endpoints#importing
POST /api/import/ia
endoint"require_marc": "false"
option, and had some issues / missing metadata. This PR fixes those./languages/por
instead ofpor
Tagging @tfmorris who noticed these issues too.
Requires #1979 (for local testing), wait until that PR is merged before merging this one.