Changeset 34966 for gs2-extensions/apache-jena
- Timestamp:
- 2021-03-15T23:21:05+13:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/apache-jena/trunk/src/README.txt
r34683 r34966 45 45 <base href="/greenstone3-lod/" /> 46 46 47 and changing the control-panel.tplform action to be:47 and changing the 'control-panel.tpl' form action to be: 48 48 49 49 <form action="/greenstone3-lod/${action}" method="post"> … … 57 57 For a proxied install you would (continuing the example) do: 58 58 59 http://sowemustthink.space/greenstone3-lod/greenstone/query?query=select+*+where+%7B+%3Fs+%3Fo+%3Fp+%7D+limit+100&output=text&stylesheet= 60 59 http://sowemustthink.space/greenstone3-lod/greenstone/query?query=select+*+where+%7B+%3Fs+%3Fo+%3Fp+%7D+limit+100&output=text&stylesheet= 60 61 62 Factoring in these details, it is possible to setup a transform/page/sparql.xsl page in Greenstone3 this is fully operational, 63 even in the ReverseProxying situation. 64 65 One key step in sparql.xsl is to updated the form input argument for 'stylesheet' to specify the proxied prefix URL: 66 67 stylesheet=/greenstone3-lod/xml-to-html-links.xsl 68 stylesheet=%2Fgreenstone3-lod%2Fxml-to-html-links.xsl 69 70 71 When asking for the SPARQL XML result to be transformed to html-links, the hyperlinks in the page generated 72 also need some tweaking. The Greenstone3 sparql.xsl page helps plumb the static files used back to the 73 /greenstone3-lod/ url, but inside 'xml-to-html-links.xsl' this sets another 'stylesheet=' argument that 74 needs to be updated to the ReverseProxy setup 75 76 77 <a href="?query={$query}&output=xml&stylesheet=%2Fxml-to-html-links.xsl"> 78 -> 79 <a href="?query={$query}&output=xml&stylesheet=%2Fgreenstone3-lod%2Fxml-to-html-links.xsl"> 80 81 You might need to reload the xml-to-html-links.xsl file in the browser if it has been cached before the change 82 83 84 % fgrep -rl xml-to-html etc/ 85 etc/pages/sparql.html 86 etc/pages/sparql.tpl 87 etc/pages/xml-to-html-links.xsl 88 89 90 61 91 62 92 #----
Note:
See TracChangeset
for help on using the changeset viewer.