Skip to content

Commit

Permalink
records: display correct HEPData DOI before upload
Browse files Browse the repository at this point in the history
* Fixes #514.
  • Loading branch information
GraemeWatt committed May 20, 2022
1 parent 862aa31 commit 3040d67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@


<div class="record-doi">
<a href="https://doi.org/{{ ctx.record.hepdata_doi }}"
target="_blank">https://doi.org/{{ ctx.record.hepdata_doi }}</a>
{% set hepdata_doi = ctx.record.hepdata_doi|replace('None', '10.17182/hepdata.' + ctx.record.recid|string) %}
<a href="https://doi.org/{{ hepdata_doi }}"
target="_blank">https://doi.org/{{ hepdata_doi }}</a>
</div>

<br/>
Expand Down
2 changes: 1 addition & 1 deletion hepdata/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
and parsed by ``setup.py``.
"""

__version__ = "0.9.4dev20220519"
__version__ = "0.9.4dev20220520"

0 comments on commit 3040d67

Please sign in to comment.