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:
objectRepresents a <mets:agent>
- Parameters:
el (LxmlElement)
name (string)
_type (string)
othertype (string)
role (string)
otherrole (string)
notes (dict)
- property type¶
Get the
TYPEattribute value.
- property othertype¶
Get the
OTHERTYPEattribute value.
- property role¶
Get the
ROLEattribute value.
- property otherrole¶
Get the
OTHERROLEattribute value.
- property name¶
Get the
mets:nameelement value.
- property notes¶
Get the
mets:noteelement values (as tuples of attributes and text).
- class ocrd_models.ocrd_agent.ClientSideOcrdAgent(el, name=None, _type=None, othertype=None, role=None, otherrole=None, notes=None)[source]¶
Bases:
objectProvides the same interface as
ocrd_models.ocrd_file.OcrdAgentbut without attachment toocrd_models.ocrd_mets.OcrdMetssince this represents the response of theocrd.mets_server.OcrdMetsServer.- Parameters:
() (el) – ignored
- Keyword Arguments:
name (string)
_type (string)
othertype (string)
role (string)
otherrole (string)
notes (dict)