Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
76853fb4
Commit
76853fb4
authored
7 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-3340: update fmath-mathml to the last (bring lot of constants in LateX)
parent
75dd58d1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+2
-2
2 additions, 2 deletions
pom.xml
src/main/java/org/olat/ims/qti21/manager/openxml/QTI21WordExport.java
+8
-13
8 additions, 13 deletions
...a/org/olat/ims/qti21/manager/openxml/QTI21WordExport.java
with
10 additions
and
15 deletions
pom.xml
+
2
−
2
View file @
76853fb4
...
...
@@ -1932,8 +1932,8 @@
<dependency>
<groupId>
fmath
</groupId>
<artifactId>
fmath-latex-mathml
</artifactId>
<version>
0.5
</version>
<!--
need org.jdom
1.1.3, jaxen 1.1.4 and commons-codec
-->
<version>
3.1
</version>
<!-- need org.jdom
2 2.0.6
-->
</dependency>
<dependency>
<groupId>
jgrapht
</groupId>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/ims/qti21/manager/openxml/QTI21WordExport.java
+
8
−
13
View file @
76853fb4
...
...
@@ -39,7 +39,6 @@ import java.util.zip.ZipOutputStream;
import
javax.servlet.http.HttpServletResponse
;
import
org.apache.commons.io.IOUtils
;
import
org.cyberneko.html.parsers.SAXParser
;
import
org.olat.core.gui.media.MediaResource
;
import
org.olat.core.gui.translator.Translator
;
...
...
@@ -183,19 +182,16 @@ public class QTI21WordExport implements MediaResource {
}
catch
(
Exception
e
)
{
log
.
error
(
""
,
e
);
}
AssessmentTest
assessmentTest
=
resolvedAssessmentTest
.
getRootNodeLookup
().
extractIfSuccessful
();
String
label
=
assessmentTest
.
getTitle
();
String
secureLabel
=
StringHelper
.
transformDisplayNameToFileSystemName
(
label
);
ZipOutputStream
zout
=
null
;
try
{
AssessmentTest
assessmentTest
=
resolvedAssessmentTest
.
getRootNodeLookup
().
extractIfSuccessful
();
String
label
=
assessmentTest
.
getTitle
();
String
secureLabel
=
StringHelper
.
transformDisplayNameToFileSystemName
(
label
);
String
file
=
secureLabel
+
".zip"
;
hres
.
setHeader
(
"Content-Disposition"
,
"attachment; filename*=UTF-8''"
+
StringHelper
.
urlEncodeUTF8
(
file
));
hres
.
setHeader
(
"Content-Description"
,
StringHelper
.
urlEncodeUTF8
(
label
));
String
file
=
secureLabel
+
".zip"
;
hres
.
setHeader
(
"Content-Disposition"
,
"attachment; filename*=UTF-8''"
+
StringHelper
.
urlEncodeUTF8
(
file
));
hres
.
setHeader
(
"Content-Description"
,
StringHelper
.
urlEncodeUTF8
(
label
));
zout
=
new
ZipOutputStream
(
hres
.
getOutputStream
());
try
(
ZipOutputStream
zout
=
new
ZipOutputStream
(
hres
.
getOutputStream
()))
{
zout
.
setLevel
(
9
);
ZipEntry
test
=
new
ZipEntry
(
secureLabel
+
".docx"
);
...
...
@@ -212,7 +208,6 @@ public class QTI21WordExport implements MediaResource {
log
.
error
(
""
,
e
);
}
finally
{
latch
.
countDown
();
IOUtils
.
closeQuietly
(
zout
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment