From 7142fb9caf732ebb67a4af3b0fea77a1965ad6f7 Mon Sep 17 00:00:00 2001 From: Cristina M Date: Tue, 19 Apr 2022 14:47:22 +0200 Subject: [PATCH] Fix OOPS Evaluation link and uncomment section in index files --- src/main/java/widoco/Constants.java | 2 +- src/main/java/widoco/CreateOOPSEvalInThread.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/widoco/Constants.java b/src/main/java/widoco/Constants.java index cc17272..19aeb14 100644 --- a/src/main/java/widoco/Constants.java +++ b/src/main/java/widoco/Constants.java @@ -927,7 +927,7 @@ public static String getHeadSection(Configuration c, Properties l) { + "\n"; } //add commented a reference in case the evaluation is to be included - head+=""; + head+=""; if (!"".equals(c.getMainOntology().getCiteAs()) && c.getMainOntology().getCiteAs() != null) { head += "
" + l.getProperty(LANG_CITE_AS) + "
\n
" + c.getMainOntology().getCiteAs() + "
\n"; } diff --git a/src/main/java/widoco/CreateOOPSEvalInThread.java b/src/main/java/widoco/CreateOOPSEvalInThread.java index 857a224..ffddf8e 100644 --- a/src/main/java/widoco/CreateOOPSEvalInThread.java +++ b/src/main/java/widoco/CreateOOPSEvalInThread.java @@ -110,8 +110,8 @@ public void run() { Path path = Paths.get(pathOut+File.separator+"index-"+lang+".html"); Charset charset = StandardCharsets.UTF_8; String htmlContent = new String(Files.readAllBytes(path), charset); - content = htmlContent.replace("", - "
Evaluation:
\"Evaluate
"); + content = htmlContent.replace("", + "
Evaluation:
\"Evaluate
"); Files.write(path, content.getBytes(charset)); } if (showGui) {