Author: marcus
Date: Sat Jun 8 19:18:18 2013
New Revision: 1491034
URL: http://svn.apache.org/r1491034
Log:
Testing new filename + directory structure for AOO 4
Modified:
openoffice/ooo-site/trunk/content/download/test/download.js
Modified: openoffice/ooo-site/trunk/content/download/test/download.js
URL:
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download.js?rev=1491034&r1=1491033&r2=1491034&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Sat Jun 8
19:18:18 2013
@@ -128,19 +128,22 @@ function getLink() {
// version = version.split( "_" )[0];
if ( hasMirrorLink() ) {
- file_link = PEOPLE_BASE_URL + VERSION + "/binaries/" +
NL_LANGUAGE + "/Apache_OpenOffice_incubating_"
- file_link = file_link + VERSION + "_" + PLATFORM + "_" +
NL_LANGUAGE + EXTENSION;
- FILENAME = "Apache_OpenOffice_incubating_" + VERSION + "_" +
PLATFORM + "_" + NL_LANGUAGE + EXTENSION;
-
- if ( NL_LANGUAGE == "en-US" ) {
- chk_link = APACHE_DIST_BASE_URL + "files/stable/"
+ VERSION
- chk_link = chk_link + "/Apache_OpenOffice_incubating_"
+ VERSION + "_" + PLATFORM + "_"
- chk_link = chk_link + NL_LANGUAGE + EXTENSION;
- } else {
- chk_link = APACHE_DIST_BASE_URL + "files/localized/" +
NL_LANGUAGE + "/" + VERSION
- chk_link = chk_link + "/Apache_OpenOffice_incubating_"
+ VERSION + "_" + PLATFORM + "_"
- chk_link = chk_link + NL_LANGUAGE + EXTENSION;
- }
+ // file_link = SOURCEFORGE_BASE_URL + NL_LANGUAGE +
"/Apache_OpenOffice_";
+ // file_link = file_link + VERSION + "_" + PLATFORM + "_" +
NL_LANGUAGE;
+ // file_link = file_link + EXTENSION;
+
+ file_link = PEOPLE_BASE_URL + "/binaries/" + NL_LANGUAGE;
+ file_link = file_link + "/Apache_OpenOffice_" + VERSION + "_" +
PLATFORM;
+ file_link = file_link + "_" + NL_LANGUAGE + EXTENSION;
+ FILENAME = "Apache_OpenOffice_" + VERSION + "_" + PLATFORM + "_"
+ FILENAME = FILENAME + NL_LANGUAGE + EXTENSION;
+
+ // chk_link = APACHE_DIST_BASE_URL + "Apache_OpenOffice_" +
VERSION + "_";
+ // chk_link = chk_link + PLATFORM + "_" + NL_LANGUAGE +
EXTENSION;
+
+ chk_link = PEOPLE_BASE_URL + "/binaries/" + NL_LANGUAGE;
+ chk_link = chk_link + "/Apache_OpenOffice_" + VERSION + "_" +
PLATFORM;
+ chk_link = chk_link + "_" + NL_LANGUAGE + EXTENSION;
CHECKSUM_ASC = chk_link + ".asc";
CHECKSUM_MD5 = chk_link + ".md5";
@@ -181,7 +184,7 @@ function getPlatform() {
EXTENSION = ".tar.gz";
if ( navigator.userAgent.toLowerCase().indexOf(
"debian" ) != -1 ||
navigator.userAgent.toLowerCase().indexOf(
"ubuntu" ) != -1 ||
- navigator.userAgent.toLowerCase().indexOf(
"iceweasel" ) != -1 ) {
+ navigator.userAgent.toLowerCase().indexOf(
"iceweasel") != -1 ) {
UI_PLATFORM = "Linux Debian 64-bit
(DEB)";
PLATFORM =
"Linux_x86-64_install-deb";
EXTENSION = ".tar.gz";
@@ -234,7 +237,7 @@ function getPlatform() {
UI_PLATFORM = "Android mobile device";
PLATFORM = "no_mirror_platform";
EXTENSION = "no_extension";
- } else if ( navigator.userAgent.toLowerCase().indexOf(
"blackberry" ) != -1 ) {
+ } else if ( navigator.userAgent.toLowerCase().indexOf(
"blackberry" ) !=-1 ) {
UI_PLATFORM = "Blackberry mobile device";
PLATFORM = "no_mirror_platform";
EXTENSION = "no_extension";
@@ -258,4 +261,3 @@ function openItem( itemid, uri ) {
var thisDocument = document.getElementById( itemid );
document.location = uri;
};
-