Skip to content

Commit

Permalink
Merge branch 'feature/datacite'
Browse files Browse the repository at this point in the history
  • Loading branch information
fnielsen committed Oct 23, 2023
2 parents 8d67c61 + 5bb5903 commit 96c2fd1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions scholia/app/templates/dataset-export.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "work-export.html" %}
4 changes: 4 additions & 0 deletions scholia/app/templates/dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

{% endblock %}

{% block page_actions %}
<a href="/dataset/{{ q }}/export" role="button" class="btn btn-outline-secondary">Cite</a>
{{ super() }}
{% endblock %}

{% block page_content %}
<h1 id="h1">Taxon</h1>
Expand Down
18 changes: 18 additions & 0 deletions scholia/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,24 @@ def show_dataset_index():
return render_template('dataset-index.html')


@main.route('/dataset/' + q_pattern + '/export')
def show_dataset_export(q):
"""Return HTML rendering for export formats for this dataset.
Parameters
----------
q : str
Wikidata item identifier.
Returns
-------
html : str
Rendered HTML.
"""
return render_template('dataset-export.html', q=q)


@main.route('/clinical-trial/')
def show_clinical_trial_index():
"""Return clinical trial index page.
Expand Down

0 comments on commit 96c2fd1

Please sign in to comment.