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).
- class ocrd_models.ocrd_agent.ClientSideOcrdAgent(el, name=None, _type=None, othertype=None, role=None, otherrole=None, notes=None)[source]¶
Bases:
object
Provides the same interface as
ocrd_models.ocrd_file.OcrdAgent
but without attachment toocrd_models.ocrd_mets.OcrdMets
since 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)