NAME
XML::OPDS::Acquisition - Acquisition elements for OPDS feeds
SETTERS/ACCESSORS
The following accessors are read-only and are meant to be passed as an hash to the new
constructor.
id
Optional. The example specification uses uuid like urn:uuid:2853dacf-ed79-42f5-8e8a-a7bb3d1ae6a2
. If not provided, the href
(with the prefix if provided) will be used instead.
prefix
If provided, every uri will have this string prepended, so you can just pass URIs like '/path/to/file' and have them consistently turned to 'http://myserver.org/path/to/file' if you set this to 'http://myserver.org'. See also XML::OPDS prefix
method.
href
The URI of the resource. Required.
title
The title. Required.
files
An arrayref with the download files. The prefix is added if set.
OPTIONAL ATTRIBUTES
The following attributes are optional and describe the publication.
authors
An arrayref of either scalars with names, or hashrefs with name
and uri
as keys. uri
is optional.
summary
Plain text.
description
HTML allowed.
language
issued
The publication date.
publisher
updated
A DateTime object with the time of the last update of the resource.
thumbnail
The uri of the thumbnail
image
The uri of the image
METHODS
Usually they are for internal usage.
identifier
authors_as_links
Return a list of XML::Atom::Person objects from the authors
value.
files_as_links
Return a list of XML::Atom::Link objects constructed from files
, image
, thumbnail
, with the appropriate rel
and type
.
as_entry
Return the acquisition XML::Atom::Entry object.