Difference between revisions of "Website adoptions for mirror-system"
(Created page with 'The download of OpenOffice.org comes via a mirror-system behind http://download.openoffice.org and some other related pages like the [http://www.openoffice.org main page]. Curr…') |
|||
Line 1: | Line 1: | ||
The download of OpenOffice.org comes via a mirror-system behind http://download.openoffice.org and some other related pages like the [http://www.openoffice.org main page]. | The download of OpenOffice.org comes via a mirror-system behind http://download.openoffice.org and some other related pages like the [http://www.openoffice.org main page]. | ||
+ | ==Mirrorsystems for OpenOffice.org== | ||
Currently supported mirror-systems are: | Currently supported mirror-systems are: | ||
* [[Bouncer]], [http://openoffice.bouncer.osuosl.org/download.php OSUOSL Bouncer] | * [[Bouncer]], [http://openoffice.bouncer.osuosl.org/download.php OSUOSL Bouncer] | ||
* [[MirrorBrain]], [http://download.services.openoffice.org/ Mirrorbrain Openoffice.org] | * [[MirrorBrain]], [http://download.services.openoffice.org/ Mirrorbrain Openoffice.org] | ||
+ | ==Adoptions required for mirror-system support== | ||
To allow downloads for co-existing mirror-systems following web-pages need some adoptions: | To allow downloads for co-existing mirror-systems following web-pages need some adoptions: | ||
* www-project / | * www-project / | ||
Line 19: | Line 21: | ||
** other.html | ** other.html | ||
− | + | ==Main javascript files to include on OpenOffice.org download pages== | |
− | + | ||
All these named pages requires include of | All these named pages requires include of | ||
<pre> | <pre> | ||
Line 29: | Line 30: | ||
http://download.openoffice.org/languages.js | http://download.openoffice.org/languages.js | ||
</pre> | </pre> | ||
− | <i>Note</i>: Sometimes the languages.js is used local in the web-folder. | + | <i>Note</i>: Sometimes the languages.js is used local in the web-folder, e.g. dev-builds. |
+ | |||
+ | Important for the mirror-systems are the file download.js and the related download_[MIRROR_SYSTEM_NAME].js file. Some of the functions in the download.js need some special implementations for the mirror-system. These are included in the download_[MIRROR_SYSTEM_NAME].js file. Beside this there are also some functions for the tagging needed for the trackingtools. | ||
+ | |||
+ | ==The control file globalvars.js== | ||
+ | The globalvars.js is the main java-script file to control the used mirror-system for OpenOffice.org download. | ||
+ | |||
+ | <pre> | ||
+ | // The most recent stable release | ||
+ | var VERSION = "3.1.1"; | ||
+ | var MIRROR = "bouncer"; | ||
+ | |||
+ | // The previously major release | ||
+ | var OLD_VERSION = "2.4.3"; | ||
+ | var OLD_MIRROR = "bouncer"; | ||
+ | |||
+ | ... | ||
+ | |||
+ | var DEV2_TEXT = "(codeline DEV300)"; | ||
+ | var DEV2_BUILD = "OOo-Dev 3.2.x"; | ||
+ | var DEV2_VERSION = "DEV300_m57"; | ||
+ | var DEV2_MIRROR = "mirrorbrain"; | ||
+ | </pre> | ||
+ | As you can see, each named parameter of an OpenOffice.org download version has its own *_MIRROR parameter to control the used mirror-system for the download. Example, the version 3.1.1 uses in this example bouncer as mirror-system. The dev-build OOo-Dev 3.2.x n version DEV300_m57 uses mirrirbrain as download mirror-system. | ||
+ | [[Category:Website]] |
Revision as of 07:59, 15 September 2009
The download of OpenOffice.org comes via a mirror-system behind http://download.openoffice.org and some other related pages like the main page.
Contents
Mirrorsystems for OpenOffice.org
Currently supported mirror-systems are:
Adoptions required for mirror-system support
To allow downloads for co-existing mirror-systems following web-pages need some adoptions:
- www-project /
- index.html
- download-project /
- index.html
- other.html
- contribute.html
- download-project /next/
- index.html
- other.html
- download-project /[oldrelease]/ -> currently 2.4.3
- index.html
- other.html
Main javascript files to include on OpenOffice.org download pages
All these named pages requires include of
http://download.openoffice.org/globalvars.js http://download.openoffice.org/download.js http://download.openoffice.org/download_bouncer.js http://download.openoffice.org/download_mirrorbrain.js http://download.openoffice.org/languages.js
Note: Sometimes the languages.js is used local in the web-folder, e.g. dev-builds.
Important for the mirror-systems are the file download.js and the related download_[MIRROR_SYSTEM_NAME].js file. Some of the functions in the download.js need some special implementations for the mirror-system. These are included in the download_[MIRROR_SYSTEM_NAME].js file. Beside this there are also some functions for the tagging needed for the trackingtools.
The control file globalvars.js
The globalvars.js is the main java-script file to control the used mirror-system for OpenOffice.org download.
// The most recent stable release var VERSION = "3.1.1"; var MIRROR = "bouncer"; // The previously major release var OLD_VERSION = "2.4.3"; var OLD_MIRROR = "bouncer"; ... var DEV2_TEXT = "(codeline DEV300)"; var DEV2_BUILD = "OOo-Dev 3.2.x"; var DEV2_VERSION = "DEV300_m57"; var DEV2_MIRROR = "mirrorbrain";
As you can see, each named parameter of an OpenOffice.org download version has its own *_MIRROR parameter to control the used mirror-system for the download. Example, the version 3.1.1 uses in this example bouncer as mirror-system. The dev-build OOo-Dev 3.2.x n version DEV300_m57 uses mirrirbrain as download mirror-system.