Exemplo n.º 1
0
def setup():
    import searchapi
    searchapi.setup()

    from . import subjects

    # subjects module needs read_author_facet and solr_select_url.
    # Importing this module to access them will result in circular import.
    # Setting them like this to avoid circular-import.
    subjects.read_author_facet = read_author_facet
    if hasattr(config, 'plugin_worksearch'):
        subjects.solr_select_url = solr_select_url

    subjects.setup()

    from . import publishers, languages
    publishers.setup()
    languages.setup()
Exemplo n.º 2
0
def setup():
    import searchapi
    searchapi.setup()
    
    from . import subjects
    
    # subjects module needs read_author_facet and solr_select_url.
    # Importing this module to access them will result in circular import.
    # Setting them like this to avoid circular-import.
    subjects.read_author_facet = read_author_facet
    if hasattr(config, 'plugin_worksearch'):
        subjects.solr_select_url = solr_select_url
    
    subjects.setup()
    
    from . import publishers, languages
    publishers.setup()
    languages.setup()
Exemplo n.º 3
0
def setup():
    import searchapi
    searchapi.setup()
Exemplo n.º 4
0
def setup():
    import searchapi
    searchapi.setup()