mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-24 10:37:23 +00:00
added scholarly to libraries in about page
This commit is contained in:
parent
26cc64bdd6
commit
d5e453edd3
@ -54,6 +54,12 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
greenlet_Version = None
|
greenlet_Version = None
|
||||||
|
|
||||||
|
try:
|
||||||
|
from scholarly import scholarly
|
||||||
|
scholarly_version = _(u'installed')
|
||||||
|
except ImportError:
|
||||||
|
scholarly_version = _(u'not installed')
|
||||||
|
|
||||||
from . import services
|
from . import services
|
||||||
|
|
||||||
about = flask.Blueprint('about', __name__)
|
about = flask.Blueprint('about', __name__)
|
||||||
@ -79,6 +85,7 @@ _VERSIONS = OrderedDict(
|
|||||||
iso639=isoLanguages.__version__,
|
iso639=isoLanguages.__version__,
|
||||||
pytz=pytz.__version__,
|
pytz=pytz.__version__,
|
||||||
Unidecode = unidecode_version,
|
Unidecode = unidecode_version,
|
||||||
|
Scholarly = scholarly_version,
|
||||||
Flask_SimpleLDAP = u'installed' if bool(services.ldap) else None,
|
Flask_SimpleLDAP = u'installed' if bool(services.ldap) else None,
|
||||||
python_LDAP = services.ldapVersion if bool(services.ldapVersion) else None,
|
python_LDAP = services.ldapVersion if bool(services.ldapVersion) else None,
|
||||||
Goodreads = u'installed' if bool(services.goodreads_support) else None,
|
Goodreads = u'installed' if bool(services.goodreads_support) else None,
|
||||||
|
@ -1021,7 +1021,7 @@ def scholar_search(query):
|
|||||||
break
|
break
|
||||||
return Response(json.dumps(result),mimetype='application/json')
|
return Response(json.dumps(result),mimetype='application/json')
|
||||||
else:
|
else:
|
||||||
return 'Scholarly not installed'
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user