Esempio n. 1
0
def translate_facet_term(facet, term):
    from utils import cducode2str, langcode2str
    if facet == "cdu_class":
        return cducode2str(term)
    if facet == "language":
        return langcode2str(term)
    return term
Esempio n. 2
0
def translate_facet_term(facet, term):
    """ Transforme les termes des facettes pour un joli affichage

    """
    from utils import cducode2str, langcode2str
    if facet == "cdu_class":
        return cducode2str(term)
    if facet == "language":
        return langcode2str(term)
    return term