@register.simple_tag(takes_context=True)
def get_used_in_search_mdt(context):
    try:
        session = context['request'].session
        result = u''
        if session:
            for mdt in session['mdts']:
                result += unicode(session['mdts'][mdt]['mdt_id']).capitalize()
        return result
    except Exception, e:
        print e
        return ''
        pass
Used to display Search MDT names relation in heading.
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/mdtui/templatetags/index_keys.py/get_used_in_search_mdt