Subversion Repositories wimsdev

Rev

Rev 11759 | Rev 14710 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11759 Rev 12542
Line 3... Line 3...
3
If you want tu use the latest ggb library adaptated to your WIMS version, just update your Geogebraweb-WIMS:
3
If you want tu use the latest ggb library adaptated to your WIMS version, just update your Geogebraweb-WIMS:
4
 
4
 
5
	./compile --geogebra
5
	./compile --geogebra
6
 
6
 
7
# Test your GeogebraWeb Installation
7
# Test your GeogebraWeb Installation
8
There are several WIMS modolues using GegebraWeb.
8
There are several WIMS modules using GegebraWeb.
9
You can test for example one of these:
9
You can test for example one of these:
10
 
10
 
11
* [H1/geometry/OEFtriang5.fr](http://localhost/wims/wims.cgi?module=H1/geometry/OEFtriang5.fr&cmd=new&exo=constr1)
11
* [H1/geometry/OEFtriang5.fr](http://localhost/wims/wims.cgi?module=H1/geometry/OEFtriang5.fr&cmd=new&exo=constr1)
12
* [H3/geometry/oefprogpythag.fr](http://localhost/wims/wims.cgi?module=H3/geometry/oefprogpythag.fr&cmd=new&exo=experim)
12
* [H3/geometry/oefprogpythag.fr](http://localhost/wims/wims.cgi?module=H3/geometry/oefprogpythag.fr&cmd=new&exo=experim)
13
* [U1/geometry/docisometriesplan.fr](http://localhost/wims/wims.cgi?module=U1%2Fgeometry%2Fdocisometriesplan.fr&+cmd=new&+job=read&+doc=1&+block=mainS2S1S1)
13
* [U1/geometry/docisometriesplan.fr](http://localhost/wims/wims.cgi?module=U1%2Fgeometry%2Fdocisometriesplan.fr&+cmd=new&+job=read&+doc=1&+block=mainS2S1S1)
14
* [H5/geometry/vecteurs.fr](http://localhost/wims/wims.cgi?module=H5%2Fgeometry%2Fvecteurs.fr&cmd=new&job=read&doc=1&block=mainS1S1)
14
* [H5/geometry/vecteurs.fr](http://localhost/wims/wims.cgi?module=H5%2Fgeometry%2Fvecteurs.fr&cmd=new&job=read&doc=1&block=mainS1S1)
15
 
15
 
16
 
16
---
17
# [WIMS DEV] Upgrading GeogebraWeb Library :
17
# [WIMS DEV] Upgrading GeogebraWeb Library :
18
 
18
 
19
## Download new version
19
## Download new version
20
 
20
 
21
* Download the latest GGBWeb at [dev.geogebra.org/download/web](http://dev.geogebra.org/download/web/)
21
* Download the latest GGBWeb at [dev.geogebra.org/download/web](http://dev.geogebra.org/download/web/)
22
 
22
 
23
* unzip it to replace the geogebraweb folder
23
* unzip it and use its content to replace the geogebraweb folder
24
 
24
 
25
## Modify "deployggb.js"
25
## Modify "deployggb.js"
26
Download the latest "deployggb.js" here: [www.geogebra.org/scripts/deployggb.js](https://www.geogebra.org/scripts/deployggb.js)
26
Download the latest "deployggb.js" here: [www.geogebra.org/scripts/deployggb.js](https://www.geogebra.org/scripts/deployggb.js)
27
 
27
 
28
## Adapt GGB code for WIMS
28
## Adapt GGB code for WIMS
Line 34... Line 34...
34
        return "scripts/js/geogebra/geogebraweb/";
34
        return "scripts/js/geogebra/geogebraweb/";
35
     };
35
     };
36
nb : the original `getTubeURL` function finish by `return tubeurl};`
36
nb : the original `getTubeURL` function finish by `return tubeurl};`
37
 
37
 
38
### Hack WIMS 2 :
38
### Hack WIMS 2 :
39
Then, modify in "deployggb.js" `codebase="https://cdn.geogebra.org/apps/"+latestVersion+"/"`
39
Then, replace in "deployggb.js" `codebase="https://cdn.geogebra.org/apps/"+latestVersion+"/"`
40
 by `codebase = getTubeURL();`
40
 by `codebase = getTubeURL();`
41
 
41
 
42
### Hack WIMS 3 :
42
### Hack WIMS 3 :
43
Since WIMS 4.15 still use ISO-xxx charsets (not UTF-8), you must add this to each geogebra "####.cache.js" files (web/, web3d/, ):
43
Since WIMS 4.15 still use ISO-xxx charsets (not UTF-8), you must add this to each geogebra "####.cache.js" files (web/ & web3d/):
44
 
44
 
45
	d.charset='utf-8';
45
	d.charset='utf-8';
46
 
46
 
47
just next to this:
47
just before something like this:
48
 
48
 
49
	()+'js/properties_keys_'+c+'.js');
49
	d.src=e+'js/properties_keys_'
-
 
50
	
-
 
51
Don't forget to clean your browser cache, and then
50
 
52
 
51
## Publish new GGBWeb version into WIMS
53
## Publish new GGBWeb version into WIMS
52
* duplicate your geogebraweb folder
54
* duplicate your geogebraweb folder
53
* rename it, so it contains the new version number
55
* rename it "GeoGebraWeb-WIMS-5.X.YYY.0", so it contains the new version number
54
* zip it
56
* zip it
-
 
57
* If you'r on MacOS X : 
-
 
58
	* `for file in *.zip; do zip "$file" -qd "__MACOSX/*"; done`
55
* send it to wims.unice.fr/download server (ask his administrator [bado@unice.fr](mailto:bado@unice.fr))
59
* send it to wims.unice.fr/download server (ask his administrator [bado@unice.fr](mailto:bado@unice.fr))
56
* Update the variable vGeogebra in the ./compile file at WIMS root, so it contains the new Geogebra number version
60
* Update the variable vGeogebra in the ./compile file at WIMS root, so it contains the new Geogebra number version
57
* remove the duplicated folder and the zip archive
61
* remove the duplicated folder and the zip archive
58
 
62
 
59
## See More...
63
## See More...