我该如何查找关于从巴code号一本书的数据? [英] How can I lookup data about a book from its barcode number?

查看:156
本文介绍了我该如何查找关于从巴code号一本书的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要建世界上最简单的库应用程序。我只希望能够做的是在一本书的UPC(巴code)使用典型的扫描仪扫描(这只是在酒吧code的数字类型到字段),然后用它来查找数据大约在最低限度,标题,作者书......,今年出版了,要不就是杜威十进制或国会目录号库。

I'm building the world's simplest library application. All I want to be able to do is scan in a book's UPC (barcode) using a typical scanner (which just types the numbers of the barcode into a field) and then use it to look up data about the book... at a minimum, title, author, year published, and either the Dewey Decimal or Library of Congress catalog number.

我们的目标是打印出一个微小的贴纸(脊柱标签)与该卡的目录编号,我可以贴在书脊,然后我可以在货架上被卡目录编号书排序我们公司库。类似主题的书籍的方式将趋于接近对方,例如,如果你知道你正在寻找一本关于会计,所有你需要做的就是找​​到一些本关于会计,你会看到另一半打我们有正确的旁边,这使得它方便地浏览库。

The goal is to print out a tiny sticker ("spine label") with the card catalog number that I can stick on the spine of the book, and then I can sort the books by card catalog number on the shelves in our company library. That way books on similar subjects will tend to be near each other, for example, if you know you're looking for a book about accounting, all you have to do is find SOME book about accounting and you'll see the other half dozen that we have right next to it which makes it convenient to browse the library.

似乎有大量的网络API来做到这一点,包括亚马逊和美国国会图书馆。但是,这些都是极其混乱给我。我真的只是想是一个更高层次的函数,它UPC条形码code号,并返回关于这本书的一些基本数据。

There seem to be lots of web APIs to do this, including Amazon and the Library of Congress. But those are all extremely confusing to me. What I really just want is a single higher level function that takes a UPC barcode number and returns some basic data about the book.

推荐答案

有一个非常简单的基于Web的解决方案,在以上这ISBNDB.com你可能想看看。

There's a very straightforward web based solution over at ISBNDB.com that you may want to look at.

编辑:更新的API文档的链接,现在有第2版提供以及

Updated API documentation link, now there's version 2 available as well

http://isbndb.com/api/v1/docs

http://isbndb.com/api/v2/docs

您最多可以在短短几分钟内(这些例子都来自API V1)运行:

You can be up and running in just a few minutes (these examples are from API v1):


  • 在网站上注册并获得一键使用API​​

  • 尝试像一个网址:

  • register on the site and get a key to use the API
  • try a URL like:

<$c$c>http://isbndb.com/api/books.xml?access_key={yourkey}<$c$c>&index1=isbn&results=details&value1=9780143038092

结果=细节得到更多的详细信息,包括卡片目录号码。

The results=details gets additional details including the card catalog number.

顺便说一句,一般的酒吧code是在任何ISBN10或ISBN13书号。你只需要删除的最后5个号码,如果您使用的是扫描仪和你拿起18号。

As an aside, generally the barcode is the isbn in either isbn10 or isbn13. You just have to delete the last 5 numbers if you are using a scanner and you pick up 18 numbers.

下面是一个示例响应:

<ISBNdb server_time="2008-09-21T00:08:57Z">
  <BookList total_results="1" page_size="10" page_number="1" shown_results="1">
    <BookData book_id="the_joy_luck_club_a12" isbn="0143038095">
      <Title>The Joy Luck Club</Title>
      <TitleLong/>
      <AuthorsText>Amy Tan, </AuthorsText>
      <PublisherText publisher_id="penguin_non_classics">Penguin (Non-Classics)</PublisherText>
      <Details dewey_decimal="813.54" physical_description_text="288 pages" language="" edition_info="Paperback; 2006-09-21" dewey_decimal_normalized="813.54" lcc_number="" change_time="2006-12-11T06:26:55Z" price_time="2008-09-20T23:51:33Z"/>
    </BookData>
  </BookList>
</ISBNdb>

这篇关于我该如何查找关于从巴code号一本书的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆