Skip to content
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

catalog/onix/onix.py doesn't handle books with multiple title tags #3

Closed
bowlofeggs opened this issue Aug 4, 2010 · 2 comments
Closed

Comments

@bowlofeggs
Copy link

I've got a book in an ONIX record that has more than one <title> tag. When this happens, onix.py raises an Exception:

File "/openlibrary/catalog/onix/onix.py", line 62, in getitem
raise Exception ("more than one value for %s (%s)" % (reference_name, name))
Exception: more than one value for Title (title)

It is valid according to the ONIX docs for there to exist more than one <title> tag. This often happens when a book is bilingual.

@bowlofeggs
Copy link
Author

I've fixed this in my fork if you want to pull it.

@sbshah97
Copy link
Contributor

@mekarpeles I think we should close this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants