def template_context_function(recids, *args, **kwargs):
    """
    @see invenio.legacy.search_engine.summarizer:summarize_records
    """
    from invenio.legacy.search_engine.summarizer import summarize_records
    return summarize_records(intbitset(recids)
        if not isinstance(recids, intbitset) else recids, *args, **kwargs)
def template_context_function(recids, *args, **kwargs):
    """
    @see invenio.legacy.search_engine.summarizer:summarize_records
    """
    from invenio.legacy.search_engine.summarizer import summarize_records
    return summarize_records(intbitset(recids)
        if not isinstance(recids, intbitset) else recids, *args, **kwargs)
Exemple #3
0
def _get_summarize_records(pubs, tag, ln, rec_query, person_id):
    '''
    Returns  html for records summary given personid, tag and ln
    @param person_id: int person id
    @param tag: str kind of output
    @param ln: str language
    '''
    html = summarize_records(intbitset(pubs), tag, ln, rec_query)
    return html
 def test_xml(self):
     from invenio.legacy.search_engine.summarizer import summarize_records
     summarize_records(intbitset(range(1, 100)), 'xcs', 'en')