OPFItem¶
An OPF <item> element, that is, a child of the <manifest>.
-
class
yael.opfitem.
OPFItem
(internal_path=None, obj=None, string=None)[source]¶ Build an OPF <item> element or parse it from obj or string.
-
add_refinement
(refinement)[source]¶ Add a refinement, that is, store a reference to the refinement metadatum.
Parameters: refinement ( yael.opfmetadatum.OPFMetadatum
) – the refinement metadatum
-
has_property
(v_property)[source]¶ Return True if this item has the given property.
Parameters: v_property (str) – a property name Returns: True if the item has the property Return type: bool
-
v_fallback
¶ The value of the fallback attribute.
Return type: str
-
v_href
¶ The value of the href attribute.
Return type: str
-
v_id
¶ The value of the id attribute.
Return type: str
-
v_media_overlay
¶ The value of the media-overlay attribute.
Return type: str
-
v_media_type
¶ The value of the media-type attribute.
Return type: str
-
v_properties
¶ The value of the properties attribute.
Return type: str
-