Skip to content

Commit

Permalink
Merge pull request #122 from acdh-oeaw/bugfix/121-excerpt-popup
Browse files Browse the repository at this point in the history
Removed code that escaped "." in excerpt IDs
  • Loading branch information
gythaogg authored Sep 11, 2024
2 parents ab17db7 + c8afa23 commit c822bbd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apis_ontology/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ def render_zotero_refs(self, record):

def render_tei_refs(self, value):
def linkify_excerpt_id(xml_id):
true_id = (
xml_id.replace('"', "").replace("xml:id=", "").replace(".", "").strip()
)
true_id = xml_id.replace('"', "").replace("xml:id=", "").strip()
return f"""<a href="#" onclick="showPopup('{true_id}'); return false;">
{true_id}
</a>"""
Expand Down

0 comments on commit c822bbd

Please sign in to comment.