ocrd_models.ocrd_agent module¶
API to mets:agent
- class ocrd_models.ocrd_agent.OcrdAgent(el=None, name=None, _type=None, othertype=None, role=None, otherrole=None, notes=None)[source]¶
Bases:
object
Represents a <mets:agent>
- Parameters
el (LxmlElement) –
name (string) –
_type (string) –
othertype (string) –
role (string) –
otherrole (string) –
notes (dict) –
- property type¶
Get the
TYPE
attribute value.
- property othertype¶
Get the
OTHERTYPE
attribute value.
- property role¶
Get the
ROLE
attribute value.
- property otherrole¶
Get the
OTHERROLE
attribute value.
- property name¶
Get the
mets:name
element value.
- property notes¶
Get the
mets:note
element values (as tuples of attributes and text).