Skip to content

Commit

Permalink
fix abs page
Browse files Browse the repository at this point in the history
  • Loading branch information
mnazzaro committed Jul 27, 2023
1 parent 4ac11e9 commit 94c4444
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions browse/controllers/abs_page/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def get_abs_page(arxiv_id: str) -> Response:
response_data["formats"] = metadata.get_dissemination_formats(
abs_meta, download_format_pref, add_sciencewise_ping
)
if response_data['latexml_url'] is not None:
response_data['formats'].append('latexml')

# Following are less critical and template must display without them
# try:
Expand Down
6 changes: 3 additions & 3 deletions browse/templates/abs/extra_services.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
{%- if format.startswith('pdf') -%}
<li><a href="{{url_for('.pdf', arxiv_id=requested_id)}}" aria-describedby="download-button-info" accesskey="f" class="abs-button download-pdf">Download PDF</a></li>
{%- endif -%}
{%- if latexml_url -%}
{%- if format == 'latexml' -%}
<li>
<a href="{{ latexml_url }}" class="abs-button" id="latexml-download-link">HTML (experimental)</a>
<a href="{{ latexml_url }}" class="abs-button" id="latexml-download-link">HTML (beta)</a>
</li>
{%- endif -%}
{%- endif -%}
<li>
{%- if format == 'src' -%}
<a href="{{url_for('.eprint', arxiv_id=requested_id)}}" class="abs-button download-eprint">TeX Source</a>
Expand Down

0 comments on commit 94c4444

Please sign in to comment.