Changeset 38848 for main/trunk/greenstone3/web
- Timestamp:
- 2024-03-18T20:37:34+13:00 (3 months ago)
- Location:
- main/trunk/greenstone3/web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/WEB-INF/classes/interface_default.properties
r38329 r38848 330 330 webswinggli.brief=Allows you to configure and build collections 331 331 332 webswing_glipage=The WebSwing GLI page 333 webswing_phindpage=The WebSwing Phind page 334 332 335 tabletopDL.title=Tabletop DL Interface 333 336 tabletopDL.brief=An interactive experience for end-users based around a tabletop/desktop metaphor -
main/trunk/greenstone3/web/interfaces/default/transform/pages/webswing-phind.xsl
r38817 r38848 117 117 customization: function(injector) { 118 118 injector.services.base.handleActionEvent = function(actionName, data, binaryData) { 119 console.log("WebSwing actionEvent callback handler: called with actionName = " + actionName); 119 //console.log("WebSwing actionEvent callback handler: called with actionName = " + actionName); 120 121 if (actionName === "openURL") { 122 var url = data; 123 // check if a target tab/window name has been specified 124 // Any better way of passing more than 1 string between Java and JavaScript? 125 var index = url.indexOf(" - "); 126 if (index !== -1) { 127 var target = url.substring(index+3); // skip past " - " to get target name 128 window.open(url, target); 129 } else { 130 window.open(url, '_blank'); 131 } 132 } 133 120 134 } 121 135 } … … 124 138 } 125 139 }; 140 141 142 // The applet jar files can just remain in web/applet where they are compiled up 143 if(!webswingInstance0.options.args) { 144 webswingInstance0.options.args=""; 145 } 146 147 //https://stackoverflow.com/questions/25203124/how-to-get-base-url-with-jquery-or-javascript 148 var baseURL = window.location.origin+window.location.pathname; 149 // webswingInstance0.options.args += "\"" + baseURL+ "?a=a&rt=d&s=PhindApplet&c="+gs.cgiParams.c + "\""; 150 webswingInstance0.options.args += "\"" + baseURL + "\""; 151 152 webswingInstance0.options.args += " --collection=" + gs.cgiParams.c; 153 webswingInstance0.options.args += " --library=" + gs.xsltParams.library_name; 154 155 //console.log("args: " + webswingInstance0.options.args); 156 157 126 158 /* 127 159 // Not yet working. Stick ${customArgs} at end of final param Value (BEFORE the value's closing double quote) in webswing.config.in
Note:
See TracChangeset
for help on using the changeset viewer.