Take me over?
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
related_books
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_marc
Returns the language in the three-letter "MARC" code, or undef if no such code is found.
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.
It also exracts xml:lang
attribute from any tags found in the record.
Sometimes there are several different language specifications in a single record. In this case this method does an educated guess which one is correct.
languages
Return all language codes mentioned in the description of the language
method. No deduplication is done.