source: gs3-extensions/webswing/trunk/web/etc/webswing.config.in@ 38817

Last change on this file since 38817 was 38817, checked in by anupama, 3 months ago

I can't find a better way (the webswing way) to customise the applet parameters collection and library, no matter what I try. So I have made use of the fact that the docBaseURL of the applet that is available to the applet code contains both these pieces of information. Whether this will always be true when not using the default Greenstone DL URL structure, I'm not too sure. But for now, it is better than my previous commits where I hardcoded the library and, still worse, the collection name into the webswing config file to get the applet to show up with webswing. Better to leave the code in this improved state and maybe Kathy or Dr Bainbridge will know how it should actually be solved when configuring webswing options at JavaScript level (which had worked for GLI which didn't use appletParams but args/customArgs).

File size: 4.3 KB
Line 
1{
2 "/" : {
3 "path" : "/",
4 "security" : {
5 "module" : "EMBEDED",
6 "config" : {
7 "users" : [ {
8 "username" : "webswing-admin",
9 "password" : "greenstone3",
10 "roles" : [ "admin" ]
11 }, {
12 "username" : "webswing-support",
13 "password" : "greenstone3",
14 "roles" : [ "support" ]
15 }, {
16 "username" : "gli",
17 "password" : "greenstone3"
18 } ]
19 },
20 "classPath" : [ ]
21 },
22 "langFolder" : "${webswing.configDir}/lang",
23 "homeDir" : "${user.dir}",
24 "allowedCorsOrigins" : [ "*" ],
25 "adminConsoleUrl" : "http://localhost:8383/webswing-server/admin"
26 },
27 "/gli" : {
28 "path" : "/gli",
29 "security" : {
30 "module" : "NONE",
31 "config" : { },
32 "classPath" : [ ]
33 },
34 "icon" : "classes/images/gatherer.png",
35 "webFolder" : "",
36 "swingConfig" : {
37 "jreExecutable" : "${java.home}/bin/java",
38 "javaVersion" : "${java.version}",
39 "vmArgs" : "",
40 "classPathEntries" : [ "*.jar", "lib/*.jar" ],
41 "theme" : "Murrine",
42 "fontConfig" : {
43 "dialog" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
44 "dialoginput" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
45 "monospaced" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
46 "serif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
47 "sansserif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf"
48 },
49 "swingSessionTimeout" : 300,
50 "antiAliasText" : true,
51 "isolatedFs" : true,
52 "debug" : false,
53 "directdraw" : true,
54 "allowDelete" : true,
55 "allowDownload" : true,
56 "allowAutoDownload" : true,
57 "allowUpload" : true,
58 "allowJsLink" : true,
59 "allowLocalClipboard" : true,
60 "launcherType" : "Desktop",
61 "launcherConfig" : {
62 "mainClass" : "org.greenstone.gatherer.GathererProg",
63 "args": "-gsdl @gsdl3srchomeunix@/gs2build -gsdlos @gsdlos@ -gsdl3 @gsdl3srchomeunix@/web -gsdl3src @gsdl3srchomeunix@ -library_url @external-servleturl@ -webswing ${customArgs}"
64 },
65 "homeDir" : "@gsdl3srchomeunix@/gli"
66 },
67 "maxClients" : 4,
68 "maxConnections" : 4,
69 "allowStealSession" : false,
70 "name" : "Greenstone Librarian Interface",
71 "sessionMode" : "ALWAYS_NEW_SESSION",
72 "uploadMaxSize" : 1200,
73 "webHomeDir" : "@gsdl3srchomeunix@/gli",
74 "goodbyeUrl" : "/"
75 },
76 "/phind" : {
77 "path" : "/phind",
78 "security" : {
79 "module" : "NONE",
80 "config" : { },
81 "classPath" : [ ]
82 },
83
84 "webFolder" : "",
85 "swingConfig" : {
86 "jreExecutable" : "${java.home}/bin/java",
87 "javaVersion" : "${java.version}",
88 "vmArgs" : "",
89 "classPathEntries" : [ "applet/*.jar" ],
90 "theme" : "Murrine",
91 "fontConfig" : {
92 "dialog" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
93 "dialoginput" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
94 "monospaced" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
95 "serif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
96 "sansserif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf"
97 },
98 "swingSessionTimeout" : 300,
99 "antiAliasText" : true,
100 "isolatedFs" : true,
101 "debug" : false,
102 "directdraw" : true,
103 "allowDelete" : false,
104 "allowDownload" : false,
105 "allowAutoDownload" : true,
106 "allowUpload" : false,
107 "allowJsLink" : true,
108 "allowLocalClipboard" : true,
109 "launcherType" : "Applet",
110 "launcherConfig" : {
111 "appletClass" : "org.greenstone.applet.phind.JPhind",
112 "parameters" : {
113 "phindcgi" : "?a=a&rt=r&s=PhindApplet&o=xml&ro=1",
114 "classifier" : "1",
115 "orientation" : "vertical",
116 "depth" : "2",
117 "resultorder" : "L,l,E,e,D,d",
118 "backdrop" : "interfaces/default/images/phindbg1.jpg",
119 "fontsize" : "10",
120 "blocksize" : "10"
121 }
122 },
123 "homeDir" : "@gsdl3webwritablehomeunix@"
124 },
125 "maxClients" : 4,
126 "maxConnections" : 4,
127 "allowStealSession" : false,
128 "name" : "Greenstone Librarian Interface",
129 "sessionMode" : "ALWAYS_NEW_SESSION",
130 "uploadMaxSize" : 1200,
131 "webHomeDir" : "@gsdl3webwritablehomeunix@",
132 "goodbyeUrl" : "/"
133 }
134}
Note: See TracBrowser for help on using the repository browser.