OPFMetadata¶
The OPF <metadata> element.
-
class
yael.opfmetadata.
OPFMetadata
(internal_path=None, obj=None, string=None)[source]¶ Build the OPF <metadata> element or parse it from obj or string.
-
add_link
(link)[source]¶ Add the given <link> to the metadata.
Parameters: link ( yael.opflink.OPFLink
) – the <link> to be added
-
add_metadatum
(metadatum)[source]¶ Add the given metadatum to the metadata.
Parameters: metadatum ( yael.opfmetadatum.OPFMetadatum
) – the metadatum to be added
-
cover_image_item_id
¶ The value of the id attribute of the cover image item.
Return type: str
-
dcterms_modified
¶ The value of the dcterms:modified date.
Return type: str
-
links
¶ The list of <link> objects.
Return type: list of yael.opflink.OPFLink
objects
-
metadata
¶ The list of metadatum objects.
Return type: list of yael.opfmetadatum.OPFMetadatum
objects
-
metadata_by_property
(v_property)[source]¶ Return the metadatum child with given prop property.
Parameters: v_property (str) – the desired prop property Returns: the list of OPFMetadatum items with given property Return type: list of yael.opfmetadatum.OPFMetadatum
-
metadata_by_tag
(v_tag)[source]¶ Return the metadata with <tag>.
Parameters: v_tag (str) – the desired tag Returns: the list of OPFMetadatum items with given tag Return type: list of yael.opfmetadatum.OPFMetadatum
-
metadatum_by_id
(v_id)[source]¶ Return the metadatum child with given id.
Parameters: v_id (str) – the desired id Returns: the child with given id, or None if not found Return type: yael.opfmetadatum.OPFMetadatum
-
v_dir
¶ The value of the dir attribute.
Return type: str
-
v_id
¶ The value of the id attribute.
Return type: str
-
v_xml_lang
¶ The value of the xml:lang attribute.
Return type: str
-