1
1
package org .mycore .mir .viewer ;
2
2
3
- import java .util .Locale ;
4
-
3
+ import jakarta .servlet .http .HttpServletRequest ;
5
4
import org .mycore .common .xml .MCRXMLFunctions ;
6
5
import org .mycore .common .xsl .MCRParameterCollector ;
7
6
import org .mycore .frontend .MCRFrontendUtil ;
8
7
import org .mycore .viewer .configuration .MCRViewerConfiguration ;
9
8
import org .mycore .viewer .configuration .MCRViewerDefaultConfigurationStrategy ;
10
9
11
- import jakarta . servlet . http . HttpServletRequest ;
10
+ import java . util . Locale ;
12
11
13
12
public class MIRViewerConfigurationStrategy extends MCRViewerDefaultConfigurationStrategy {
14
13
@@ -35,7 +34,7 @@ public MCRViewerConfiguration get(HttpServletRequest request) {
35
34
36
35
String customJS = params .getParameter ("MIR.CustomLayout.JS" , "" );
37
36
if (customJS .length () > 0 ) {
38
- mcrViewerConfiguration .addScript (String .format (Locale .ROOT , "%sjs/%s" , baseURL , customJS ));
37
+ mcrViewerConfiguration .addScript (String .format (Locale .ROOT , "%sjs/%s" , baseURL , customJS ), false );
39
38
}
40
39
41
40
if (request .getParameter ("embedded" ) != null ) {
@@ -44,7 +43,7 @@ public MCRViewerConfiguration get(HttpServletRequest request) {
44
43
} else {
45
44
// Default JS
46
45
mcrViewerConfiguration
47
- .addScript (MCRFrontendUtil .getBaseURL () + "assets/bootstrap/js/bootstrap.min.js" );
46
+ .addScript (MCRFrontendUtil .getBaseURL () + "assets/bootstrap/js/bootstrap.min.js" , false );
48
47
}
49
48
}
50
49
0 commit comments