def test_process_one(self):
        from invenio.legacy.bibrank.selfcites_indexer import get_authors_tags
        from invenio.legacy.bibrank.selfcites_task import process_one
        from invenio.legacy.bibrank.selfcites_task import get_citations_fun
        from invenio.legacy.bibrank.selfcites_indexer import ALL_ALGORITHMS

        tags = get_authors_tags()
        for algorithm in ALL_ALGORITHMS:
            citation_fun = get_citations_fun(algorithm=algorithm)
            process_one(1, tags, citation_fun)
示例#2
0
    def test_process_one(self):
        from invenio.legacy.bibrank.selfcites_indexer import get_authors_tags
        from invenio.legacy.bibrank.selfcites_task import process_one
        from invenio.legacy.bibrank.selfcites_task import get_citations_fun
        from invenio.legacy.bibrank.selfcites_indexer import ALL_ALGORITHMS

        tags = get_authors_tags()
        for algorithm in ALL_ALGORITHMS:
            citation_fun = get_citations_fun(algorithm=algorithm)
            process_one(1, tags, citation_fun)
    def test_compute_and_store_self_citations(self):
        from invenio.legacy.bibrank.selfcites_indexer import get_authors_tags
        from invenio.legacy.bibrank.selfcites_task import compute_and_store_self_citations
        from invenio.legacy.bibrank.selfcites_task import get_citations_fun
        from invenio.legacy.bibrank.selfcites_indexer import ALL_ALGORITHMS

        tags = get_authors_tags()
        for algorithm in ALL_ALGORITHMS:
            citation_fun = get_citations_fun(algorithm=algorithm)
        compute_and_store_self_citations(1, tags, citation_fun)
示例#4
0
    def test_compute_and_store_self_citations(self):
        from invenio.legacy.bibrank.selfcites_indexer import get_authors_tags
        from invenio.legacy.bibrank.selfcites_task import compute_and_store_self_citations
        from invenio.legacy.bibrank.selfcites_task import get_citations_fun
        from invenio.legacy.bibrank.selfcites_indexer import ALL_ALGORITHMS

        tags = get_authors_tags()
        for algorithm in ALL_ALGORITHMS:
            citation_fun = get_citations_fun(algorithm=algorithm)
        compute_and_store_self_citations(1, tags, citation_fun)