def METHOD_NAME(self, pid, record, links_factory=None, **kwargs):
    """Prepare a record and persistent identifier for serialization.
    :param pid: Persistent identifier instance.
    :param record: Record instance.
    :param links_factory: Factory function for record links.
    """
    if record.is_issue and (notifications := record.claim_notifications):
        dates = [
            notification['creation_date']
            for notification in notifications
            if 'creation_date' in notification
        ]
        record.setdefault('issue', {})['claims'] = {
            'counter': len(notifications),
            'dates': dates
        }
    return super().METHOD_NAME(
        pid=pid, record=record, links_factory=links_factory, kwargs=kwargs)