ruby - google books api conflicts with isbn number -
i'm building library retrieve informations googlebooks api.. works pretty good.. although have problem risks screw aim of web app.
apparently googlebooks doesn't read isbn of book searched , gives me informations different book different isbn have no idea from.
for example search book "emma" jane austen; got list books available title; clicked on 1 of them has isbn 9780987072269 , got book : "fundamentals of rf , microwave transistor amplifiers" isbn 9780470462317 .
why happen? there way correct it?
my code
@texts = googlebooks.search(params[:isbn_13]) @texts.each |text| @book_title = text.title @book_author = text.authors @book_year = text.published_date @book_cover = text.image_link(:zoom => 2) @book_page_count = text.page_count @book_notes = text.description @book_type = text.categories @book_isbn = text.isbn_13 end
into views retrieve list of books same title
<div class='list_by_title'> <% @books.each |text| %> <ul> <li class='list_by_title'> <a href="/info/<%= text.isbn_13 %>"> <%= text.title %> (authour: <%= text.authors %>) </a> </li> </ul> <%end%> </div>
Comments
Post a Comment