Skip to content
Snippets Groups Projects
Verified Commit 23a21818 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Merge branch 'dev' into f-select-name-from-entity

parents 2d449052 82510c6b
No related branches found
No related tags found
1 merge request!9fix SELECT name FROM ENTITY
Pipeline #7577 passed
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
...@@ -28,6 +28,7 @@ import java.io.Writer; ...@@ -28,6 +28,7 @@ import java.io.Writer;
import org.caosdb.server.CaosDBServer; import org.caosdb.server.CaosDBServer;
import org.caosdb.server.ServerProperties; import org.caosdb.server.ServerProperties;
import org.jdom2.Document; import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.ProcessingInstruction; import org.jdom2.ProcessingInstruction;
import org.jdom2.output.Format; import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter; import org.jdom2.output.XMLOutputter;
...@@ -68,6 +69,12 @@ public class JdomRepresentation extends WriterRepresentation { ...@@ -68,6 +69,12 @@ public class JdomRepresentation extends WriterRepresentation {
super(MediaType.TEXT_XML); super(MediaType.TEXT_XML);
this.indent = indent; this.indent = indent;
this.document = document; this.document = document;
Element noscript = new Element("noscript");
Element div = new Element("h1");
div.addContent("Please enable JavaScript!");
noscript.addContent(div);
document.getRootElement().addContent(0, noscript);
if (xslPath != null && document != null) { if (xslPath != null && document != null) {
addStyleSheet(document, xslPath); addStyleSheet(document, xslPath);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment