Skip to content

Commit

Permalink
datatables for collection view
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 12, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d0a0cf7 commit 7c50581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sparqlunicorn_ontdoc/export/api/ogcapifeaturesexporter.py
Original file line number Diff line number Diff line change
@@ -125,8 +125,8 @@ def generateOGCAPIFeaturesPages(outpath,deploypath, featurecollectionspaths, pre
"title": "this document as JSON"},
{"href": outpath + "collections/index.html", "rel": "self", "type": "text/html",
"title": "this document as HTML"}]}
collectionshtml = "<html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /></head><body><header><h1>Collections of " + str(
deploypath) + "</h1></head>{{collectiontable}}<footer><a href=\"index.json\">This page as JSON</a></footer></body></html>"
collectionshtml = "<html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /><link rel=\"stylesheet\" href=\"https://cdn.datatables.net/2.2.1/css/dataTables.dataTables.css\" /><script src=\"https://code.jquery.com/jquery-3.7.1.js\"></script><script src=\"https://cdn.datatables.net/2.2.1/js/dataTables.js\"></script></head><body><header><h1>Collections of " + str(
deploypath) + "</h1></head>{{collectiontable}}<footer><a href=\"index.json\">This page as JSON</a></footer><script>$(document).ready( function () {$('#collectiontable').DataTable();} );</script></body></html>"
collectiontable = "<table id=\"collectiontable\"><thead><th>Collection</th><th>Links</th></thead><tbody>"
apijson["paths"]["/collections"] = {"get": {"tags": ["Collections"], "summary": "describes collections",
"description": "Describes all collections provided by this service",

0 comments on commit 7c50581

Please sign in to comment.