WebService::Libris::Book - represents a Book in the libris.kb.se webservice
use WebService::Libris; for my $b (WebService::Libris->search(term => 'Rothfuss')) { # $b is a WebService::Libris::Book object here say $b->title; say $b->isbn; }
WebService::Libris::Book is a subclass of WebService::Libris and inherits all its methods.
WebService::Libris::Book
WebService::Libris
All of the following methods return undef or the empty list if the information is not available.
returns the title of the book
returns the publication date as a string (often just a year)
returns the first ISBN
returns a list of all ISBNs associated with the current book
returns the name of the publisher
returns a list of related books
returns a list of libraries that hold this book
returns a list of WebService::Libris::Author objects which are listed as creator of this book.
returns a list of creators of this book, as extracted from the response. This often contains duplicates, or slightly different versions of the same author name, so should be used with care.
Returns the language in the three-letter "MARC" code, or undef if no such code is found.
Some of the book records include a "MARC" language code (same as the Library of Congress uses). This methods tries to extract this code, and returns the equivalent ISO 639 language code (two letters) if the translation is known.
It also exracts xml:lang attribute from any tags found in the record.
xml:lang
Sometimes there are several different language specifications in a single record. In this case this method does an educated guess which one is correct.
Return all language codes mentioned in the description of the language method. No deduplication is done.
language
To install WebService::Libris, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Libris
CPAN shell
perl -MCPAN -e shell install WebService::Libris
For more information on module installation, please visit the detailed CPAN module installation guide.