Project:Open Library API
Version:6.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I am trying to understand how to display the book title along with the book metadata. I am trying to understand how to do this:

... will return a book title, linking to the Open Library, and

theme('openlibrary_edition', '9781882114986', 'isbn', 'block');

... will return the cover image for that edition of the book, plus more detailed information about the book (template file provided to make it easy to customise this).

Any help understanding this is appreciated.

Comments

#1

openlibrary new api

http://openlibrary.org/api/books?bibkeys=ISBN:0451526538&callback=mycall...

mycallback({
"ISBN:0451526538": {
"bib_key": "ISBN:0451526538",
"preview": "noview",
"thumbnail_url": "http://covers.openlibrary.org/b/id/295577-S.jpg",
"preview_url": "http://openlibrary.org/b/OL1017798M",
"info_url": "http://openlibrary.org/b/OL1017798M"
}
});

http://openlibrary.org/api/books?bibkeys=ISBN:0451526538&callback=mycall...

mycallback({
"ISBN:0451526538": {
"info_url": "http://openlibrary.org/b/OL1017798M",
"bib_key": "ISBN:0451526538",
"preview_url": "http://openlibrary.org/b/OL1017798M",
"thumbnail_url": "http://covers.openlibrary.org/b/id/295577-S.jpg",
"details": {
"subject_place": [
"Mississippi River Valley",
"Missouri"
],
"lc_classifications": [
"PS1306 .A1 1997"
],
"latest_revision": 2,
"id": 1565793,
"genres": [
"Fiction."
],
"source_records": [
"marc:marc_records_scriblio_net/part25.dat:213801824:997"
],
"title": "adventures of Tom Sawyer",
"languages": [
{
"key": "/l/eng"
}
],
"subjects": [
"Sawyer, Tom (Fictitious character) -- Fiction",
"Runaway children -- Fiction",
"Child witnesses -- Fiction",
"Boys -- Fiction",
"Mississippi River Valley -- Fiction",
"Missouri -- Fiction"
],
"publish_country": "nyu",
"by_statement": "Mark Twain ; with an introduction by Robert S. Tilton.",
"oclc_numbers": [
"36792831"
],
"type": {
"key": "/type/edition"
},
"revision": 2,
"publishers": [
"Signet Classic"
],
"title_prefix": "The ",
"last_modified": {
"type": "/type/datetime",
"value": "2009-10-15T21:18:27.700636"
},
"key": "/b/OL1017798M",
"authors": [
{
"name": "Mark Twain",
"key": "/a/OL18319A"
}
],
"publish_places": [
"New York"
],
"pagination": "xxi, 216 p. ;",
"created": {
"type": "/type/datetime",
"value": "2008-04-01T03:28:50.625462"
},
"dewey_decimal_class": [
"813/.4"
],
"notes": {
"type": "/type/text",
"value": "Includes bibliographical references (p. 213-216)."
},
"number_of_pages": 216,
"lccn": [
"96072233"
],
"isbn_10": [
"0451526538"
],
"publish_date": "1997",
"works": [
{
"key": "/works/OL54169W"
}
]
},
"preview": "noview"
}
});

i use amazon module to build my site http://www.ebooksfans.com。

but i think openlibrary module may be better.

#2

Not quite sure what you're asking. Can you be more specific?

<?php
print theme('openlibrary_edition', '9781882114986', 'isbn', 'block');
?>

...will by default display cover image, title, authors, edition, date of publication, publishers, and genre of the book with ISBN number 9781882114986. You can customise the output by overriding the theme template file openlibrary-edition-block.tpl.php.

If you're not developing your own module or theme, it's probably easiest to use the ISBN Field CCK module in conjunction with the Open Library ISBN Formatter module included in the Open Library API package.

Sorry for the slow response. I hope to spend some time on this project during my "holiday". Really need to #546654: Create Handbook page. Assistance welcome.