@get_pid_or_default(default_value=dict())
def loan_patron_resolver(loan_pid):
    'Resolve a Patron given a Loan PID.'
    Loan = current_circulation.loan_record_cls
    try:
        patron_pid = get_field_value(Loan, loan_pid, 'patron_pid')
    except KeyError:
        return {}
    return get_patron(patron_pid)
Resolve a Patron given a Loan PID.
@get_pid_or_default(default_value=dict())
def loan_patron_resolver(loan_pid):
    
    Loan = current_circulation.loan_record_cls
    try:
        patron_pid = get_field_value(Loan, loan_pid, 'patron_pid')
    except KeyError:
        return {}
    return get_patron(patron_pid)