Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Sep 22, 2024
1 parent f69cf43 commit 4212376
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sparqlunicorn_ontdoc/export/pages/lexiconpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from doc.docutils import DocUtils
from doc.docconfig import DocConfig
from export.pages.page import Page
from ...doc.docconfig import DocConfig


class LexiconPage(Page):
Expand Down Expand Up @@ -57,11 +58,11 @@ def generatePageWidget(graph,subject,f,onlybody=False):
f.write(f"<table id=\"lexicon\">{LexiconPage.tableheader}<tbody>")
f.write("<tr><td><a href=\""+str(subject)+"\" target=\"_blank\">"+str(lexentry["lemma"])+"</a></td>")
if "http" in lexentry["lexcat"]:
f.write("<td><a href=\""+str(lexentry["lexcat"])+"\">" + str(lexentry["lexcat"]) + "</a></td>")
f.write("<td><a href=\""+str(lexentry["lexcat"])+"\">" + DocUtils.shortenURI(str(lexentry["lexcat"])) + "</a></td>")
else:
f.write("<td>"+str(lexentry["lexcat"])+"</td>")
if "http" in lexentry["language"]:
f.write("<td><a href=\""+str(lexentry["language"])+"\">" + str(lexentry["language"]) + "</a></td><td>")
f.write("<td><a href=\""+str(lexentry["language"])+"\">" + DocUtils.shortenURI(str(lexentry["language"])) + "</a></td><td>")
else:
f.write("<td>"+str(lexentry["language"])+"</td><td>")
for form in lexentry["forms"]:
Expand Down

0 comments on commit 4212376

Please sign in to comment.