Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 12, 2025
1 parent b376e21 commit e80dcd9
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
Expand Up @@ -127,7 +127,7 @@ def generateOGCAPIFeaturesPages(outpath,deploypath, featurecollectionspaths, pre
"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>"
collectiontable = "<table><thead><th>Collection</th><th>Links</th></thead><tbody>"
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",
"operationId": "collections", "parameters": [], "responses": {
Expand Down Expand Up @@ -243,7 +243,7 @@ def generateOGCAPIFeaturesPages(outpath,deploypath, featurecollectionspaths, pre
str(op + "/items/indexc.html").replace("//", "/"), outpath)
f = open(str(op + "/items/indexc.html"), "w")
f.write(
"<html><head><meta http-equiv=\"refresh\" content=\"0; url=" + targetpath + "\" /></head></html>")
"<html><head><meta http-equiv=\"refresh\" content=\"0; url=" + targetpath.replace(".geojson","/") + "\" /></head></html>")
f.close()
#print("symlinks created")
except Exception as e:
Expand Down

0 comments on commit e80dcd9

Please sign in to comment.