'Check for defaults provided by project/organisation.xsl'

@staticmethod
def org_organisation_organisation_type_xml_post_parse(element, record):

    org_type_default = element.xpath('data[@field="_organisation_type_id"]')
    if org_type_default:
        org_type_default = org_type_default[0].text
        db = current.db
        table = db.org_organisation_type
        row = None
        if (org_type_default == 'Donor'):
            row = db((table.name == 'Bilateral')).select(table.id, cache=current.s3db.cache, limitby=(0, 1)).first()
        elif (org_type_default == 'Partner'):
            row = db((table.name == 'NGO')).select(table.id, cache=current.s3db.cache, limitby=(0, 1)).first()
        elif (org_type_default in ('Host    National    Society', 'Partner    National    Society')):
            row = db((table.name == 'Red    Cross    /    Red    Crescent')).select(table.id, cache=current.s3db.cache, limitby=(0, 1)).first()
        if row:
            record._organisation_type_id = row.id
