EBook::...Metadata(3)

πŸ“¦
version 0.6 Β· 2 versions
, in fedora 43

πŸ’– EBook::EPUB::Metadata πŸ’–

okay bestie, gather round, because we're talking about EBook::EPUB::Metadata β€” that's the class from the User Contributed Perl Documentation corner of the world, and she is the keeper of the metadata element of an OPF document. like, she holds all the info about the publication as a whole. main character energy, honestly. πŸ‘‘


✨ SYNOPSIS ✨

Class that represents metadata element of OPF document. Provides information about the publication as a whole.

that's it, that's the vibe. she's the whole dossier on your book. πŸŽ€


🌸 SUBROUTINES/METHODS 🌸

πŸ¦‹ new()

Create new object. brand new, fresh out the box, slay. ✨

πŸ¦‹ encode($xmlwriter)

Encode object to XML form using XML::Writer instance. give her an XML::Writer and she'll spit out the XML, no cap.

πŸ¦‹ add_author($name, [$formal_name])

Add author of the document. For details see add_contributor. πŸ’…

πŸ¦‹ add_creator($name, [fileas => $formal_name, role => $role])

Add primary creator or author of the publication of the publication. (yes she said it twice, we love her for it 🫢) See add_contributor for details.

πŸ¦‹ add_contributor($name, [fileas => $formal_name, role =>])

Add person/organization that contributed to publication. $name is the name in human-readable form, e.g. "Arthur Conan Doyle", and $formal_name is in form, suitable for machine processing, e.g. "Doyle, Arthur Conan". $role reflects kind of contribution to document. See Section 2.2.6 of OPF specification for list of possible values: <http://www.idpf.org/2007/opf/OPF_2.0_final_spec.html#Section2.2.6>

πŸ¦‹ add_coverage($coverage)

The extent or scope of the content of the resource.

πŸ¦‹ add_date($date, [$event])

Date of publication, in the format defined by "Date and Time Formats" at http://www.w3.org/TR/NOTE-datetime and by ISO 8601 on which it is based. In particular, dates without times are represented in the form YYYY[-MM[-DD]]: a required 4-digit year, an optional 2-digit month, and if the month is given, an optional 2-digit day of month. $event is an optional description of event that date refers to. Possible values may include: creation, publication, and modification.

πŸ¦‹ add_description($description)

Add description of the publication content. tell the people what it's about, bestie. πŸ“–

πŸ¦‹ add_identifier($ident, [$scheme])

Add unique identifier of the publication. $scheme is an optional paramater to specify identification system of this particular identifier. e.g. ISBN, DOI. (yes the original says "paramater", and we respect the typo, she's iconic πŸ’€)

πŸ¦‹ add_meta_item($name, $value)

Add metadata item that does not belong to Dublin Core specification. Metadata is set by simple name/value pair.

πŸ¦‹ add_format($format)

The media type or dimensions of the resource. Best practice is to use a value from a controlled vocabulary (e.g. MIME media types).

πŸ¦‹ add_language($lang)

Add language of the content of the publication. $lang must comply with RFC 3066 (see http://www.ietf.org/rfc/rfc3066.txt). no freestyling the language codes, okay? πŸ™ˆ

πŸ¦‹ add_publisher($publisher)

An entity responsible for making the resource available.

πŸ¦‹ add_relation($relation)

An identifier of an auxiliary resource and its relationship to the publication.

πŸ¦‹ add_rights($rights)

A statement about rights, or a reference to one. In this specification, the copyright notice and any further rights description should appear directly.

πŸ¦‹ add_source($source)

Information regarding a prior resource from which the publication was derived. the origin story. ✨

πŸ¦‹ add_subject($subject)

Add subject of the publication.

πŸ¦‹ add_title($title)

Add title of the publication. literally the name, bestie, the moment. πŸ‘‘

πŸ¦‹ add_translator($name, [$formal_name])

Add translator of the document. $name is in human-readable form, e.g. "Arthur Conan Doyle", and $formal_name is in form, suitable for machine processing, e.g. "Doyle, Arthur Conan".

πŸ¦‹ add_type($type)

type includes terms describing general categories, functions, genres, or aggregation levels for content. The advised best practice is to select a value from a controlled vocabulary.


πŸ‘‘ AUTHOR πŸ‘‘

Oleksandr Tymoshenko, <gonzo@bluezbox.com>


πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests to <gonzo@bluezbox.com>.

like fr fr, if something's broken, tell him. don't suffer in silence, bestie. 🫢


Copyright 2009, 2010 Oleksandr Tymoshenko.

<http://bluezbox.com>

This module is free software; you can redistribute it and/or modify it under the terms of the BSD license. See the LICENSE file included with this distribution.


and that's the whole page, gorgeous. this one came from perl v5.42.0, dated 2025-07-25, and it's filed under EBook::...Metadata(3). go forth and describe your books correctly, periodt. πŸ’…πŸŒΈ

πŸ“¦ where this page comes from