def METHOD_NAME(self, hit_pid, hit, links_factory=None,
                         **kwargs):
    """Transform search result hit into a desired representation.
    :param hit_pid: Pid of the resource.
    :param hit: Record metadata retrieved via search.
    :param links_factory: Factory function for record links.
    """
    date_format = '%Y-%m-%d'
    # Transform ISO dates to human-readable strings
    for field in ['end_date', 'request_expire_date']:
        if field in hit:
            hit[field] = ciso8601.parse_datetime(hit[field])\
                .strftime(date_format)
    if checkout_date := get_loan_checkout_date(hit_pid):
        hit['checkout_date'] = checkout_date.strftime(date_format)
    # Convert PID references to human-readable name
    lib_loader_ref = LibrariesSearch()
    pid_reference_fields = [
        (lib_loader_ref, 'owning_library', 'library_pid'),
        (lib_loader_ref, 'pickup_library', 'pickup_library_pid'),
        (lib_loader_ref, 'transaction_library', 'transaction_library_pid'),
        (PatronTypesSearch(), 'patron_type', 'patron_type_pid')
    ]
    for loader, field, pid_reference in pid_reference_fields:
        if pid := hit.pop(pid_reference, None):
            hit[field] = self.get_resource(loader, pid).get('name')
    # document information dumping
    if doc := self.get_resource(DocumentsSearch(), hit['document_pid']):
        hit['document_title'] = \
            TitleExtension.format_text(doc.get('title'))
    # Item information dumping
    if item := self.get_resource(ItemsSearch(), hit['item_pid']['value']):
        hit['item_call_numbers'] = '|'.join(filter(None, [
            item.get('call_number'), item.get('second_call_number')
        ]))
        hit['item_barcode'] = item.get('barcode')
    # Patron information's dumping
    if patron := self.get_resource(Patron, hit['patron_pid']):
        hit['patron_name'] = patron.formatted_name
        hit['patron_email'] = patron.user.email
        hit['patron_barcode'] = '|'.join(
            patron.get('patron', {}).get('barcode', [])
        )
    return hit