Skip to content

update main to support mmd:type for personnel #44

@ferrighi

Description

@ferrighi

While mmd v4 are prepared the indexer (main) should support parsing and indexing of mmd:personnel/mmd:type. Currently for personnel if mmd:type is present the following error is occurring:

could not be converted to solr document. Reason: 'personnel_datacenter_type'

This can be easily bypassed adding:

                    if entry_type == 'role':
                        mydict['personnel_{}_role'.format(personnel_role_LUT[role])] \
                            .append(personnel[entry])
                        mydict['personnel_role'].append(personnel[entry])
                    elif entry_type == 'type':
                        pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions