Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 13, 2024
1 parent f08ac32 commit 9c13f85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/sparqlunicorn_ontdoc/export/pages/geometryviewpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import json




class GeometryViewPage:

def generatePageWidget(self,graph,templates,subject,f,uritotreeitem,geojsonrep,predobjmap,geocache,parameters={},onlybody=False):
Expand Down
3 changes: 2 additions & 1 deletion src/sparqlunicorn_ontdoc/export/pages/personpage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from doc.docconfig import DocConfig
from doc.docutils import DocUtils
import json

class PersonPage:

Expand Down Expand Up @@ -83,7 +84,7 @@ def vcardToHTML(self,vcard):
result+="<td><a href=\""+str(vcard[prop]["value"])+"\" class=\""+str(prop)+"\">"+str(DocUtils.shortenURI(vcard[prop]["value"]))+"</a></td></tr>"
else:
result += "<td class=\""+str(prop)+"\">" + str(vcard[prop]["value"]) + "</td></tr>"
result+="</tbody></table><script>$('#person').DataTable();</script><button id=\"vcard\">Download VCard</button>"
result+="</tbody></table><script>vcard="+json.dumps(vcard)+"; $('#person').DataTable();</script><button id=\"vcard\" onclick=\"saveTextAsFile(JSON.stringify(vcard),'json')\">Download VCard</button>"
return result

@staticmethod
Expand Down

0 comments on commit 9c13f85

Please sign in to comment.