Skip to content

Commit 97ec3d1

Browse files
authored
Merge pull request #6716 from LMFDB/main
2 parents 7a71acf + 31b42e7 commit 97ec3d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lmfdb/knowledge/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ def ref_to_link(txt):
197197
this_link = '{{ LINK_EXT("' + 'arXiv:' + the_arx + '", '
198198
this_link += '"https://arxiv.org/abs/'
199199
this_link += the_arx + '")| safe}}'
200+
elif ref.lower().startswith("zbl"):
201+
ref = ref.replace(":", "")
202+
the_zbl = ref[3:] # remove the "Zbl"
203+
this_link = '{{ LINK_EXT("' + 'Zbl:' + the_zbl + '", '
204+
this_link += '"https://zbmath.org/?q=an:'
205+
this_link += the_zbl + '")| safe}}'
200206

201207
if this_link:
202208
if ans:

0 commit comments

Comments
 (0)