NAME

Text::Amuse::Compile::MuseHeader - Module to parse muse metadata

DESCRIPTION

This class is still a work in progress.

METHODS

new(\%header)

Constructor. It accepts only one mandatory argument with the output of muse_fast_scan_header (an hashref).

wants_slides

Return true if slides are needed. False if #slides is not present or "no" or "false".

The cleaned and lowercased header. Directives with underscores are ignored.

language

Defaults to en if not present.

topics

An arrayref with topics from sorttopics, topics and cat fields. The cat field is meant to be reserved from fixed category list, so it splits at space too, while the others split at semicolon (if present) or at comma.

authors

An arrayref with the authors from sortauthors and authors fields.

Fields split at semicolon if present, otherwise at comma.

topics_as_html_list

Same as topics, but returns a plain list of HTML formatted topics.

authors_as_html_list

Same as authors, but returns a plain list of HTML formatted authors.

INTERNALS

BUILDARGS

Moo-ifies the constructor.