NAME

WebService::Libris::Book - represents a Book in the libris.kb.se webservice

SYNOPSIS

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;
}

DESCRIPTION

WebService::Libris::Book is a subclass of WebService::Libris and inherits all its methods.

All of the following methods return undef or the empty list if the information is not available.

METHODS

title

returns the title of the book

date

returns the publication date as a string (often just a year)

isbn

returns the first ISBN

isbn

returns a list of all ISBNs associated with the current book

publisher

returns the name of the publisher

returns a list of related books

held_by

returns a list of libraries that hold this book

authors_obj

returns a list of WebService::Libris::Author objects which are listed as creator of this book.

authors_text

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.

language

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, and the marc code otherwise, or undef if no language code was found in the record.

language_marc

Returns the language in the three-letter "MARC" code, or undef if no such code is found.