예제 #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
예제 #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