diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-03-25 11:07:45 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-03-25 11:07:47 -0700 |
commit | 93f1ccaafd2819501f856ac3594ea16d3b921896 (patch) | |
tree | 7a3f8c44aaf73b54a5840619d416609f5ca97867 /fatcat_scholar | |
parent | 8164fdfc47ef3694748a02776c79533ea72f11c5 (diff) | |
download | fatcat-scholar-93f1ccaafd2819501f856ac3594ea16d3b921896.tar.gz fatcat-scholar-93f1ccaafd2819501f856ac3594ea16d3b921896.zip |
web: small typos
Thanks for catching these gio
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/templates/help.html | 4 | ||||
-rw-r--r-- | fatcat_scholar/web.py | 16 |
2 files changed, 16 insertions, 4 deletions
diff --git a/fatcat_scholar/templates/help.html b/fatcat_scholar/templates/help.html index 1a1ffe4..67d3721 100644 --- a/fatcat_scholar/templates/help.html +++ b/fatcat_scholar/templates/help.html @@ -131,7 +131,7 @@ apply range queries like <code>year:>1989 year:<2000</code>.{% endtrans %} </tr> <tr> <td>{{ search_macros.doi_access_button({'biblio': {'doi': '#'}}, is_oa=False) }}</td> - <td>{% trans %}A publisher landing page is the authoriative source for the "version of record" of a research publication, but content is not always accessible to the general public{% endtrans %}</td> + <td>{% trans %}A publisher landing page is the authoritative source for the "version of record" of a research publication, but content is not always accessible to the general public{% endtrans %}</td> </tr> <tr> <td>{{ search_macros.doi_access_button({'biblio': {'doi': '#'}}, is_oa=True) }}</td> @@ -255,6 +255,6 @@ apply range queries like <code>year:>1989 year:<2000</code>.{% endtrans %} <ul> <li>{% trans %}Poor metadata quality for conference proceedings. Many are labeled "unpublished" and are not associated with the conference.{% endtrans %} <li>{% trans %}Duplicate versions of same work. For example, different versions of the same paper or dataset. We are working on basic entity-deduplication in the fatcat catalog.{% endtrans %} - <li>{% trans %}Mis-matching of file content or version with work metadata. For example, sometimes pre-prints or author manuscripts are incorrectly associated with version-of-record metadata, or vica-versa.{% endtrans %} + <li>{% trans %}Mis-matching of file content or version with work metadata. For example, sometimes pre-prints or author manuscripts are incorrectly associated with version-of-record metadata, or vice-versa.{% endtrans %} </ul> {% endblock %} diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py index 5020bf1..4887aa6 100644 --- a/fatcat_scholar/web.py +++ b/fatcat_scholar/web.py @@ -100,11 +100,23 @@ async def home() -> Any: @api.head("/", include_in_schema=False) async def root_head() -> Any: """ - HTTP HEAD only for the root path. Requested by, eg, uptime monitoring - tools. This is distinct from the CORS middleware. + HTTP HEAD only for the root path (and health check below). Requested by, + eg, uptime monitoring tools. This is distinct from the CORS middleware (for + OPTION). """ return Response() +@api.get("/_health", operation_id="get_health") +async def health() -> Any: + """ + Checks that connection back to elasticsearch index is working. + """ + return Response() + +@api.head("/_health", include_in_schema=False) +async def health_head() -> Any: + return Response() + class HitsModel(BaseModel): count_returned: int count_found: int |