Skip to content

Commit

Permalink
Fix the Doi URL
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-mahajan authored Apr 11, 2024
1 parent 2bc72b6 commit d384e2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h3>{{ _('Cite this as') }}</h3>
</div>
{% if not res %}
<div>
{% set datacite_url = 'api.test.datacite.org' if config.get('ckanext.doi.test_mode', config.get('DEBUG', True)) else 'api.datacite.org' %}
{% set datacite_url = 'api.test.datacite.org' if config.get('ckanext.doi.test_mode', False) == True else 'api.datacite.org' %}
<a class="btn btn-mini" title="Download BibTeX" href="https://{{ datacite_url }}/dois/application/x-bibtex/{{ pkg_dict['doi'] }}">
<small><i class="fa fa-file"></i>BibTeX</small>
</a>
Expand Down

0 comments on commit d384e2a

Please sign in to comment.