Пример #1
0
    def get_frbr_uri(self, row):
        frbr_uri = FrbrUri(country=row.get('country'),
                           locality=row.get('locality'),
                           doctype='act',
                           subtype=row.get('subtype'),
                           date=row.get('year'),
                           number=row.get('number'),
                           actor=None)

        return frbr_uri.work_uri().lower()
Пример #2
0
    def get_frbr_uri(self, row):
        frbr_uri = FrbrUri(country=row.country,
                           locality=row.locality,
                           doctype=row.doctype,
                           subtype=row.subtype,
                           date=row.year,
                           number=row.number,
                           actor=getattr(row, 'actor', None))

        return frbr_uri.work_uri().lower()