openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r909952 - in /websites/staging/ooo-site/trunk: cgi-bin/ content/ content/download/test/download_droplist.js
Date Sun, 25 May 2014 23:54:09 GMT
Author: buildbot
Date: Sun May 25 23:54:09 2014
New Revision: 909952

Log:
Staging update by buildbot for ooo-site

Modified:
    websites/staging/ooo-site/trunk/cgi-bin/   (props changed)
    websites/staging/ooo-site/trunk/content/   (props changed)
    websites/staging/ooo-site/trunk/content/download/test/download_droplist.js

Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun May 25 23:54:09 2014
@@ -1 +1 @@
-1597489
+1597490

Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun May 25 23:54:09 2014
@@ -1 +1 @@
-1597489
+1597490

Modified: websites/staging/ooo-site/trunk/content/download/test/download_droplist.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/test/download_droplist.js (original)
+++ websites/staging/ooo-site/trunk/content/download/test/download_droplist.js Sun May 25
23:54:09 2014
@@ -784,7 +784,7 @@ function getTypeSel() {
 }
 
 /*
- * Reset all 3 select elements (drop-down-boxes)
+ * Reset the link, text and title of all elements that are not available
  */
 function resetSel() {
 //	var elements = document.getElementsByTagName( "select" );
@@ -805,90 +805,90 @@ function resetSel() {
 	for( var i = 0; i < element_names.length; i++ ) {
 		if( element_names[ i ].indexOf( "img" ) < 0 ) {
 			// Emtpy the values for all text elements.
-			document.getElementById( element_names[ i ] ).href  = "javascript:void( 0 )";
-			document.getElementById( element_names[ i ] ).title = "";
-			document.getElementById( element_names[ i ] ).text  = "";
+			document.getElementById( element_names[ i ] ).href	= "javascript:void( 0 )";
+			document.getElementById( element_names[ i ] ).title	= "";
+			document.getElementById( element_names[ i ] ).innerHTML	= "";
 		} else {
 			// Emtpy the values for all image elements.
-			document.getElementById( element_names[ i ] ).src   = "";
-			document.getElementById( element_names[ i ] ).title = "";
-			document.getElementById( element_names[ i ] ).alt   = "";
+			document.getElementById( element_names[ i ] ).src	= "";
+			document.getElementById( element_names[ i ] ).title	= "";
+			document.getElementById( element_names[ i ] ).alt	= "";
 		}
 	}
 
 	// Set the values for all elements that should not be empty.
-	document.getElementById( "dl_f_lnk" ).text		= "No full install selected";
+	document.getElementById( "dl_f_lnk" ).innerHTML		= "No full installation selected";
 	document.getElementById( "dl_f_lnk" ).title		= "Please select correct items from the select
boxes.";
-	document.getElementById( "dl_lp_lnk" ).text		= "No language pack selected";
+	document.getElementById( "dl_lp_lnk" ).innerHTML	= "No language pack selected";
 	document.getElementById( "dl_lp_lnk" ).title		= "Please select correct items from the select
boxes.";
 /*
 	// Emtpy the values for the both download text buttons.
 	document.getElementById( "dl_f_lnk" ).href		= "";
-	document.getElementById( "dl_f_lnk" ).text		= "No full install available";
+	document.getElementById( "dl_f_lnk" ).innerHTML		= "No full installation available";
 	document.getElementById( "dl_f_lnk" ).title		= "";
 	document.getElementById( "dl_lp_lnk" ).href		= "";
-	document.getElementById( "dl_lp_lnk" ).text		= "No language pack available";
+	document.getElementById( "dl_lp_lnk" ).innerHTML	= "No language pack available";
 	document.getElementById( "dl_lp_lnk" ).title		= "";
 
 	// Emtpy the values in the sub-green box on the left hand side.
-	document.getElementById( "dl_rel_dta_hl" ).text		= "";
-	document.getElementById( "dl_rel_dta" ).text		= "";
-	document.getElementById( "dl_f_hl" ).text		= "";
-	document.getElementById( "dl_f_size_hl" ).text		= "";
-	document.getElementById( "dl_f_size" ).text		= "";
-	document.getElementById( "space1" ).text		= "";
-	document.getElementById( "dl_f_chk_hl" ).text		= "";
+	document.getElementById( "dl_rel_dta_hl" ).innerHTML	= "";
+	document.getElementById( "dl_rel_dta" ).innerHTML	= "";
+	document.getElementById( "dl_f_hl" ).innerHTML		= "";
+	document.getElementById( "dl_f_size_hl" ).innerHTML	= "";
+	document.getElementById( "dl_f_size" ).innerHTML	= "";
+	document.getElementById( "space1" ).innerHTML		= "";
+	document.getElementById( "dl_f_chk_hl" ).innerHTML	= "";
 	document.getElementById( "dl_f_chk_keys" ).href		= "";
-	document.getElementById( "dl_f_chk_keys" ).text		= "";
+	document.getElementById( "dl_f_chk_keys" ).innerHTML	= "";
 	document.getElementById( "dl_f_chk_keys" ).title	= "";
-	document.getElementById( "space2" ).text		= "";
+	document.getElementById( "space2" ).innerHTML		= "";
 	document.getElementById( "dl_f_chk_asc" ).href		= "";
-	document.getElementById( "dl_f_chk_asc" ).text		= "";
+	document.getElementById( "dl_f_chk_asc" ).innerHTML	= "";
 	document.getElementById( "dl_f_chk_asc" ).title		= "";
-	document.getElementById( "space3" ).text		= "";
+	document.getElementById( "space3" ).innerHTML		= "";
 	document.getElementById( "dl_f_chk_md5" ).href		= "";
-	document.getElementById( "dl_f_chk_md5" ).text		= "";
+	document.getElementById( "dl_f_chk_md5" ).innerHTML	= "";
 	document.getElementById( "dl_f_chk_md5" ).title		= "";
-	document.getElementById( "space4" ).text		= "";
+	document.getElementById( "space4" ).innerHTML		= "";
 	document.getElementById( "dl_f_chk_sha256" ).href	= "";
-	document.getElementById( "dl_f_chk_sha256" ).text	= "";
+	document.getElementById( "dl_f_chk_sha256" ).innerHTML	= "";
 	document.getElementById( "dl_f_chk_sha256" ).title	= "";
-	document.getElementById( "space5" ).text		= "";
+	document.getElementById( "space5" ).innerHTML		= "";
 	document.getElementById( "dl_chk_verify" ).href		= "";
-	document.getElementById( "dl_chk_verify" ).text		= "";
+	document.getElementById( "dl_chk_verify" ).innerHTML	= "";
 	document.getElementById( "dl_chk_verify" ).title	= "";
-	document.getElementById( "dl_lp_hl" ).text		= "";
-	document.getElementById( "dl_lp_size_hl" ).text		= "";
-	document.getElementById( "dl_lp_size" ).text		= "";
-	document.getElementById( "space6" ).text		= "";
-	document.getElementById( "dl_lp_chk_hl" ).text		= "";
+	document.getElementById( "dl_lp_hl" ).innerHTML		= "";
+	document.getElementById( "dl_lp_size_hl" ).innerHTML	= "";
+	document.getElementById( "dl_lp_size" ).innerHTML	= "";
+	document.getElementById( "space6" ).innerHTML		= "";
+	document.getElementById( "dl_lp_chk_hl" ).innerHTML	= "";
 	document.getElementById( "dl_lp_chk_keys" ).href	= "";
-	document.getElementById( "dl_lp_chk_keys" ).text	= "";
+	document.getElementById( "dl_lp_chk_keys" ).innerHTML	= "";
 	document.getElementById( "dl_lp_chk_keys" ).title	= "";
-	document.getElementById( "space7" ).text		= "";
+	document.getElementById( "space7" ).innerHTML		= "";
 	document.getElementById( "dl_lp_chk_asc" ).href		= "";
-	document.getElementById( "dl_lp_chk_asc" ).text		= "";
+	document.getElementById( "dl_lp_chk_asc" ).innerHTML	= "";
 	document.getElementById( "dl_lp_chk_asc" ).title	= "";
-	document.getElementById( "space8" ).text		= "";
+	document.getElementById( "space8" ).innerHTML		= "";
 	document.getElementById( "dl_lp_chk_md5" ).href		= "";
-	document.getElementById( "dl_lp_chk_md5" ).text		= "";
+	document.getElementById( "dl_lp_chk_md5" ).innerHTML	= "";
 	document.getElementById( "dl_lp_chk_md5" ).title	= "";
-	document.getElementById( "space9" ).text		= "";
+	document.getElementById( "space9" ).innerHTML		= "";
 	document.getElementById( "dl_lp_chk_sha256" ).href	= "";
-	document.getElementById( "dl_lp_chk_sha256" ).text	= "";
+	document.getElementById( "dl_lp_chk_sha256" ).innerHTML	= "";
 	document.getElementById( "dl_lp_chk_sha256" ).title	= "";
 
 	// Emtpy the values in the sub-green box on the right hand side.
 */
 /*
 	document.getElementById( "dl_hlp" ).href		= "full_vs_lp.html";
-	document.getElementById( "dl_hlp" ).text		= "What is a language pack?";
+	document.getElementById( "dl_hlp" ).innerHTML		= "What is a language pack?";
 	document.getElementById( "dl_hlp" ).title		= "What is the difference between full installation
and language pack?";
 	document.getElementById( "dl_hlp_img" ).src		= "help-information-icon.png";
 	document.getElementById( "dl_hlp_img" ).title		= "What is the difference between full installation
and language pack?";
 	document.getElementById( "dl_hlp_img" ).alt		= "Help icon";
 	document.getElementById( "dl_rpt" ).href		= "analyze.html";
-	document.getElementById( "dl_rpt" ).text		= "Report broken link";
+	document.getElementById( "dl_rpt" ).innerHTML		= "Report broken link";
 	document.getElementById( "dl_rpt" ).title		= "Broken download link? Click here to report.";
 	document.getElementById( "dl_rpt_img" ).src		= "help-report-broken-link-icon.png";
 	document.getElementById( "dl_rpt_img" ).title		= "Broken download link? Click here to report.";
@@ -896,18 +896,19 @@ function resetSel() {
 */
 /*
 	document.getElementById( "dl_hlp" ).href		= "";
-	document.getElementById( "dl_hlp" ).text		= "";
+	document.getElementById( "dl_hlp" ).innerHTML		= "";
 	document.getElementById( "dl_hlp" ).title		= "";
 	document.getElementById( "dl_hlp_img" ).src		= "";
 	document.getElementById( "dl_hlp_img" ).title		= "";
 	document.getElementById( "dl_hlp_img" ).alt		= "";
 	document.getElementById( "dl_rpt" ).href		= "";
-	document.getElementById( "dl_rpt" ).text		= "";
+	document.getElementById( "dl_rpt" ).innerHTML		= "";
 	document.getElementById( "dl_rpt" ).title		= "";
 	document.getElementById( "dl_rpt_img" ).src		= "";
 	document.getElementById( "dl_rpt_img" ).title		= "";
 	document.getElementById( "dl_rpt_img" ).alt		= "";
 */
+	return;
 }
 
 /*
@@ -934,11 +935,28 @@ function showWindow( target_link ) {
 function isLangSupported() {
 	// Check the flag in "languages.js", 'y' -> provide download link, 'n' -> redirect
to alternative webpage.
 	// Check the flag in "release_matrix.js", 'y' -> provide download link, 'n' -> redirect
to alternative webpage.
+
+	switch( VERSION_SEL ) {
+		case "4.1.0":
+			RELEASE_MATRIX_LANG = release_matrix_410[ LANG_ISO ][ 0 ];
+			break;
+		case "4.0.1":
+			RELEASE_MATRIX_LANG = release_matrix_401[ LANG_ISO ][ 0 ];
+			break;
+		case "4.0.0":
+			// Todo: Implement a "release_matrix_400" array in the "release_matrix.js" file.
+			break;
+		default:
+			RELEASE_MATRIX_LANG	= "";
+			ERROR			= true;
+	}
+
 //	if( LANG_ARRAY[ 3 ] == 'y' ) {
 	if( RELEASE_MATRIX_LANG[ 3 ] == 'y' ) {
 		return true;
 	} else {
-		ERROR = true;
+		NOT_AVAILABLE	= RELEASE_MATRIX_LANG[ 1 ] + " is not available";
+		ERROR		= true;
 		return false;
 	}
 }
@@ -1081,6 +1099,8 @@ function getLink( rel_mode ) {
 		ERROR		= true;
 	}
 
+//	alertDbg( "getLink()" );
+
 	return LINK_FULL;
 }
 
@@ -1089,7 +1109,7 @@ function getLink( rel_mode ) {
  * Depends on chosen OS, language and type
  */
 function getLinkSel( rel_mode ) {
-	var rel_data = "";
+	var text = "";
 
 	// If no release mode was given, assume it is about the stable release.
 	if( rel_mode == undefined )
@@ -1118,120 +1138,182 @@ function getLinkSel( rel_mode ) {
 		return;
 	}
 
-	getFilesize( VERSION_SEL );
-	getFilename( VERSION_SEL );
+	// If language is supported, provide a download link. 
+	if( isLangSupported() ) {
+		// If platform is 'Mac OS X <= 10.6', show the none-availability to the user.
+		if( VERSION_SEL == "4.1.0" && URL_PLATFORM == "MacOS_x86_install" ) {
+			// Reset the link, text and title of all elements that are not available.
+			resetSel();
+
+			// Set the values for all elements that should not be empty.
+			text = "Apache OpenOffice " + VERSION_SEL + " for " + UI_PLATFORM + " is not available.
";
+			text = text + "<br />Please select the previous version " + PRE_VERSION + ".";
+			document.getElementById( "dl_f_lnk"  ).href		= "javascript:void( 0 )";
+			document.getElementById( "dl_f_lnk"  ).innerHTML	= "No full installation available";
+			document.getElementById( "dl_f_lnk"  ).title		= "Please select another language, platform
or version.";
+			document.getElementById( "dl_lp_lnk" ).href		= "javascript:void( 0 )";
+			document.getElementById( "dl_lp_lnk" ).innerHTML	= "No language pack available";
+			document.getElementById( "dl_lp_lnk" ).title		= "Please select another language, platform
or version.";
+			document.getElementById( "dl_f_hl"   ).innerHTML	= text;
+
+			SF	= false;
+			OTHER	= true;
+			ARCHIVE	= false;
+			ERROR	= true;
+			return;
+		}
+
+//		if( URL_PLATFORM != "" && LANG_ISO != "" ) {
+//		if( URL_PLATFORM != "" && LANG_ISO != "" && VERSION_SEL != "" ) {
+		if( PLATFORM_SEL != "" && LANG_SEL != "" && VERSION_SEL != "" ) {
+			// If language and platform are recognized, assemble the filenames for download and checksums.
+
+			getFilesize( VERSION_SEL );
+			getFilename( VERSION_SEL );
+
+			if( LANG_SEL != "" && RELEASE_MATRIX_PLATFORM_POS_FULL > -1 ) {
+
+				SOURCEFORGE_BASE_URL	  = SOURCEFORGE + VERSION_SEL + "/binaries/";
+				APACHE_DIST_BASE_URL	  = APACHE_DIST + VERSION_SEL;
+
+				// Assign the file name (column 3) from the release matrix of language and platform.
+				LINK_FULL		  = SOURCEFORGE_BASE_URL + LANG_SEL + "/" + FILENAME_FULL + "/download";
+				LINK_LP			  = SOURCEFORGE_BASE_URL + LANG_SEL + "/" + FILENAME_LP   + "/download";
 
-//	if( URL_PLATFORM != "" && LANG_ISO != "" ) {
-//	if( URL_PLATFORM != "" && LANG_ISO != "" && VERSION_SEL != "" ) {
-	if( PLATFORM_SEL != "" && LANG_SEL != "" && VERSION_SEL != "" ) {
-		// If language and platform are recognized, assemble the filenames for download and checksums.
-		if( LANG_SEL != "" && RELEASE_MATRIX_PLATFORM_POS_FULL > -1 ) {
-
-			SOURCEFORGE_BASE_URL	  = SOURCEFORGE + VERSION_SEL + "/binaries/";
-			APACHE_DIST_BASE_URL	  = APACHE_DIST + VERSION_SEL;
-
-			// Assign the file name (column 3) from the release matrix of language and platform.
-			LINK_FULL		  = SOURCEFORGE_BASE_URL + LANG_SEL + "/" + FILENAME_FULL + "/download";
-			LINK_LP			  = SOURCEFORGE_BASE_URL + LANG_SEL + "/" + FILENAME_LP   + "/download";
-
-			LINK_CHECKSUM_KEYS	  = "https://people.apache.org/keys/group/openoffice.asc";
-			LINK_CHECKSUM_ASC_FULL	  = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL;
-			LINK_CHECKSUM_ASC_FULL	  = LINK_CHECKSUM_ASC_FULL + ".asc";
-			LINK_CHECKSUM_MD5_FULL	  = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL;
-			LINK_CHECKSUM_MD5_FULL	  = LINK_CHECKSUM_MD5_FULL + ".md5";
-			LINK_CHECKSUM_SHA256_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL;
-			LINK_CHECKSUM_SHA256_FULL = LINK_CHECKSUM_SHA256_FULL + ".sha256";
-
-			LINK_CHECKSUM_ASC_LP	  = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP;
-			LINK_CHECKSUM_ASC_LP	  = LINK_CHECKSUM_ASC_LP + ".asc";
-			LINK_CHECKSUM_MD5_LP	  = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP;
-			LINK_CHECKSUM_MD5_LP	  = LINK_CHECKSUM_MD5_LP + ".md5";
-			LINK_CHECKSUM_SHA256_LP	  = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP;
-			LINK_CHECKSUM_SHA256_LP	  = LINK_CHECKSUM_SHA256_LP + ".sha256";
-
-			SF			  = true;
-			OTHER			  = false;
-			ARCHIVE			  = false;
-			ERROR			  = false;
-		}
-
-		rel_data = "Milestone " + MILESTONE + " | Build ID " + BUILD + " | SVN " + SVN_REV + "
| Released: ";
-		rel_data = rel_data + REL_DATE;
-
-		// Set the values for the both download text buttons.
-		document.getElementById( "dl_f_lnk" ).href		= LINK_FULL;
-		document.getElementById( "dl_f_lnk" ).innerHTML		= "Download full install";
-		document.getElementById( "dl_f_lnk" ).title		= "Click to download: " + FILENAME_FULL;
-		document.getElementById( "dl_lp_lnk" ).href		= LINK_LP;
-		document.getElementById( "dl_lp_lnk" ).innerHTML	= "Download language pack";
-		document.getElementById( "dl_lp_lnk" ).title		= "Click to download: " + FILENAME_LP;
-
-		// Set the values in the sub-green box on the left hand side.
-		document.getElementById( "dl_rel_dta_hl" ).innerHTML	= "Release data: ";
-		document.getElementById( "dl_rel_dta" ).innerHTML	= rel_data;
-		document.getElementById( "dl_f_hl" ).textContent	= "Full installation: ";
-		document.getElementById( "dl_f_size_hl" ).innerHTML	= "Filesize ~ ";
-		document.getElementById( "dl_f_size" ).innerHTML	= FILESIZE_FULL + " MByte";
-		document.getElementById( "space1" ).innerHTML		= " | ";
-		document.getElementById( "dl_f_chk_hl" ).innerHTML	= "Signatures and hashes: ";
-		document.getElementById( "dl_f_chk_keys" ).href		= LINK_CHECKSUM_KEYS;
-		document.getElementById( "dl_f_chk_keys" ).innerHTML	= "KEYS";
-		document.getElementById( "dl_f_chk_keys" ).title	= "KEYS signature file";
-		document.getElementById( "space2" ).innerHTML		= " , ";
-		document.getElementById( "dl_f_chk_asc" ).href		= LINK_CHECKSUM_ASC_FULL;
-		document.getElementById( "dl_f_chk_asc" ).innerHTML	= "ASC";
-		document.getElementById( "dl_f_chk_asc" ).title		= "ASC signature for: " + FILENAME_FULL;
-		document.getElementById( "space3" ).innerHTML		= " , ";
-		document.getElementById( "dl_f_chk_md5" ).href		= LINK_CHECKSUM_MD5_FULL;
-		document.getElementById( "dl_f_chk_md5" ).innerHTML	= "MD5";
-		document.getElementById( "dl_f_chk_md5" ).title		= "MD5 hash for: " + FILENAME_FULL;
-		document.getElementById( "space4" ).innerHTML		= " , ";
-		document.getElementById( "dl_f_chk_sha256" ).href	= LINK_CHECKSUM_SHA256_FULL;
-		document.getElementById( "dl_f_chk_sha256" ).innerHTML	= "SHA256";
-		document.getElementById( "dl_f_chk_sha256" ).title	= "SHA256 hash for: " + FILENAME_FULL;
-		document.getElementById( "space5" ).innerHTML		= " , ";
-		document.getElementById( "dl_chk_verify" ).href		= "../checksums.html";
-		document.getElementById( "dl_chk_verify" ).innerHTML	= "How to verify?";
-		document.getElementById( "dl_chk_verify" ).title	= "How to verify the download with checksums?";
-		document.getElementById( "dl_lp_hl" ).innerHTML		= "Language pack: ";
-		document.getElementById( "dl_lp_size_hl" ).innerHTML	= "Filesize ~ ";
-		document.getElementById( "dl_lp_size" ).innerHTML	= FILESIZE_LP + " MByte";
-		document.getElementById( "space6" ).innerHTML		= " | ";
-		document.getElementById( "dl_lp_chk_hl" ).innerHTML	= "Signatures and hashes: ";
-		document.getElementById( "dl_lp_chk_keys" ).href	= LINK_CHECKSUM_KEYS;
-		document.getElementById( "dl_lp_chk_keys" ).innerHTML	= "KEYS";
-		document.getElementById( "dl_lp_chk_keys" ).title	= "KEYS signature file";
-		document.getElementById( "space7" ).innerHTML		= " , ";
-		document.getElementById( "dl_lp_chk_asc" ).href		= LINK_CHECKSUM_ASC_LP;
-		document.getElementById( "dl_lp_chk_asc" ).innerHTML	= "ASC";
-		document.getElementById( "dl_lp_chk_asc" ).title	= "ASC signature for: " + FILENAME_LP;
-		document.getElementById( "space8" ).innerHTML		= " , ";
-		document.getElementById( "dl_lp_chk_md5" ).href		= LINK_CHECKSUM_MD5_LP;
-		document.getElementById( "dl_lp_chk_md5" ).innerHTML	= "MD5";
-		document.getElementById( "dl_lp_chk_md5" ).title	= "MD5 hash for: " + FILENAME_LP;
-		document.getElementById( "space9" ).innerHTML		= " , ";
-		document.getElementById( "dl_lp_chk_sha256" ).href	= LINK_CHECKSUM_SHA256_LP;
-		document.getElementById( "dl_lp_chk_sha256" ).innerHTML	= "SHA256";
-		document.getElementById( "dl_lp_chk_sha256" ).title	= "SHA256 hash for: " + FILENAME_LP;
-
-		// Set the values in the sub-green box on the right hand side.
-		document.getElementById( "dl_hlp" ).href		= "full_vs_lp.html";
-		document.getElementById( "dl_hlp" ).innerHTML		= "What is a language pack?";
-		document.getElementById( "dl_hlp" ).title		= "What is the difference between full installation
and language pack?";
-		document.getElementById( "dl_hlp_img" ).src		= "../cachedimages/help-information-icon.png";
-		document.getElementById( "dl_hlp_img" ).title		= "What is the difference between full installation
and language pack?";
-		document.getElementById( "dl_hlp_img" ).alt		= "Info";
-		document.getElementById( "dl_rpt" ).href		= "analyze.html";
-		document.getElementById( "dl_rpt" ).innerHTML		= "Report broken link";
-		document.getElementById( "dl_rpt" ).title		= "Broken download link? Click here to report.";
-		document.getElementById( "dl_rpt_img" ).src		= "../cachedimages/help-report-broken-link-icon.png";
-		document.getElementById( "dl_rpt_img" ).title		= "Broken download link? Click here to report.";
-		document.getElementById( "dl_rpt_img" ).alt		= "Broken link";
-	}
+				LINK_CHECKSUM_KEYS	  = "https://people.apache.org/keys/group/openoffice.asc";
+				LINK_CHECKSUM_ASC_FULL	  = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL;
+				LINK_CHECKSUM_ASC_FULL	  = LINK_CHECKSUM_ASC_FULL + ".asc";
+				LINK_CHECKSUM_MD5_FULL	  = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL;
+				LINK_CHECKSUM_MD5_FULL	  = LINK_CHECKSUM_MD5_FULL + ".md5";
+				LINK_CHECKSUM_SHA256_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL;
+				LINK_CHECKSUM_SHA256_FULL = LINK_CHECKSUM_SHA256_FULL + ".sha256";
+
+				LINK_CHECKSUM_ASC_LP	  = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP;
+				LINK_CHECKSUM_ASC_LP	  = LINK_CHECKSUM_ASC_LP + ".asc";
+				LINK_CHECKSUM_MD5_LP	  = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP;
+				LINK_CHECKSUM_MD5_LP	  = LINK_CHECKSUM_MD5_LP + ".md5";
+				LINK_CHECKSUM_SHA256_LP	  = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP;
+				LINK_CHECKSUM_SHA256_LP	  = LINK_CHECKSUM_SHA256_LP + ".sha256";
+
+				SF			  = true;
+				OTHER			  = false;
+				ARCHIVE			  = false;
+				ERROR			  = false;
+			}
 
-//	alertDbg( "getLinkSel()" );
+			text = "Milestone " + MILESTONE + " | Build ID " + BUILD + " | SVN " + SVN_REV + " | Released:
";
+			text = text + REL_DATE;
 
-	return;
+			// Set the values for the both download text buttons.
+			document.getElementById( "dl_f_lnk"	    ).href	= LINK_FULL;
+			document.getElementById( "dl_f_lnk"	    ).innerHTML	= "Download full installation";
+			document.getElementById( "dl_f_lnk"	    ).title	= "Click to download: " + FILENAME_FULL;
+			document.getElementById( "dl_lp_lnk"	    ).href	= LINK_LP;
+			document.getElementById( "dl_lp_lnk"	    ).innerHTML	= "Download language pack";
+			document.getElementById( "dl_lp_lnk"	    ).title	= "Click to download: " + FILENAME_LP;
+
+			// Set the values in the sub-green box on the left hand side.
+			document.getElementById( "dl_rel_dta_hl"    ).innerHTML	= "Release data: ";
+			document.getElementById( "dl_rel_dta"	    ).innerHTML	= text;
+			document.getElementById( "dl_f_hl"	    ).innerHTML = "Full installation: ";
+			document.getElementById( "dl_f_size_hl"	    ).innerHTML	= "Filesize ~ ";
+			document.getElementById( "dl_f_size"	    ).innerHTML	= FILESIZE_FULL + " MByte";
+			document.getElementById( "space1"	    ).innerHTML	= " | ";
+			document.getElementById( "dl_f_chk_hl"	    ).innerHTML	= "Signatures and hashes: ";
+			document.getElementById( "dl_f_chk_keys"    ).href	= LINK_CHECKSUM_KEYS;
+			document.getElementById( "dl_f_chk_keys"    ).innerHTML	= "KEYS";
+			document.getElementById( "dl_f_chk_keys"    ).title	= "KEYS signature file";
+			document.getElementById( "space2"	    ).innerHTML	= " , ";
+			document.getElementById( "dl_f_chk_asc"	    ).href	= LINK_CHECKSUM_ASC_FULL;
+			document.getElementById( "dl_f_chk_asc"	    ).innerHTML	= "ASC";
+			document.getElementById( "dl_f_chk_asc"	    ).title	= "ASC signature for: " + FILENAME_FULL;
+			document.getElementById( "space3"	    ).innerHTML	= " , ";
+			document.getElementById( "dl_f_chk_md5"	    ).href	= LINK_CHECKSUM_MD5_FULL;
+			document.getElementById( "dl_f_chk_md5"	    ).innerHTML	= "MD5";
+			document.getElementById( "dl_f_chk_md5"	    ).title	= "MD5 hash for: " + FILENAME_FULL;
+			document.getElementById( "space4"	    ).innerHTML	= " , ";
+			document.getElementById( "dl_f_chk_sha256"  ).href	= LINK_CHECKSUM_SHA256_FULL;
+			document.getElementById( "dl_f_chk_sha256"  ).innerHTML	= "SHA256";
+			document.getElementById( "dl_f_chk_sha256"  ).title	= "SHA256 hash for: " + FILENAME_FULL;
+			document.getElementById( "space5"	    ).innerHTML	= " , ";
+			document.getElementById( "dl_chk_verify"    ).href	= "../checksums.html";
+			document.getElementById( "dl_chk_verify"    ).innerHTML	= "How to verify?";
+			document.getElementById( "dl_chk_verify"    ).title	= "How to verify the download with
checksums?";
+			document.getElementById( "dl_lp_hl"	    ).innerHTML	= "Language pack: ";
+			document.getElementById( "dl_lp_size_hl"    ).innerHTML	= "Filesize ~ ";
+			document.getElementById( "dl_lp_size"	    ).innerHTML	= FILESIZE_LP + " MByte";
+			document.getElementById( "space6"	    ).innerHTML	= " | ";
+			document.getElementById( "dl_lp_chk_hl"	    ).innerHTML	= "Signatures and hashes: ";
+			document.getElementById( "dl_lp_chk_keys"   ).href	= LINK_CHECKSUM_KEYS;
+			document.getElementById( "dl_lp_chk_keys"   ).innerHTML	= "KEYS";
+			document.getElementById( "dl_lp_chk_keys"   ).title	= "KEYS signature file";
+			document.getElementById( "space7"	    ).innerHTML	= " , ";
+			document.getElementById( "dl_lp_chk_asc"    ).href	= LINK_CHECKSUM_ASC_LP;
+			document.getElementById( "dl_lp_chk_asc"    ).innerHTML	= "ASC";
+			document.getElementById( "dl_lp_chk_asc"    ).title	= "ASC signature for: " + FILENAME_LP;
+			document.getElementById( "space8"	    ).innerHTML	= " , ";
+			document.getElementById( "dl_lp_chk_md5"    ).href	= LINK_CHECKSUM_MD5_LP;
+			document.getElementById( "dl_lp_chk_md5"    ).innerHTML	= "MD5";
+			document.getElementById( "dl_lp_chk_md5"    ).title	= "MD5 hash for: " + FILENAME_LP;
+			document.getElementById( "space9"	    ).innerHTML	= " , ";
+			document.getElementById( "dl_lp_chk_sha256" ).href	= LINK_CHECKSUM_SHA256_LP;
+			document.getElementById( "dl_lp_chk_sha256" ).innerHTML	= "SHA256";
+			document.getElementById( "dl_lp_chk_sha256" ).title	= "SHA256 hash for: " + FILENAME_LP;
+
+			// Set the values in the sub-green box on the right hand side.
+			document.getElementById( "dl_hlp"	    ).href	= "full_vs_lp.html";
+			document.getElementById( "dl_hlp"	    ).innerHTML	= "What is a language pack?";
+			document.getElementById( "dl_hlp"	    ).title	= "What is the difference between full installation
and language pack?";
+			document.getElementById( "dl_hlp_img"	    ).src	= "../cachedimages/help-information-icon.png";
+			document.getElementById( "dl_hlp_img"	    ).title	= "What is the difference between full
installation and language pack?";
+			document.getElementById( "dl_hlp_img"	    ).alt	= "Info";
+			document.getElementById( "dl_rpt"	    ).href	= "analyze.html";
+			document.getElementById( "dl_rpt"	    ).innerHTML	= "Report broken link";
+			document.getElementById( "dl_rpt"	    ).title	= "Broken download link? Click here to report.";
+			document.getElementById( "dl_rpt_img"	    ).src	= "../cachedimages/help-report-broken-link-icon.png";
+			document.getElementById( "dl_rpt_img"	    ).title	= "Broken download link? Click here
to report.";
+			document.getElementById( "dl_rpt_img"	    ).alt	= "Broken link";
+		}
+	} else {
+		// If language is not supported, show the none-availability to the user.
+		if( rel_mode == 1 ) {
+			// Release mode
+			// Provide the link from the Native Language (NL) group.
+//			LINK_FULL	= LANG_ARRAY[ 4 ];
+			LINK_FULL	= "http://www.openoffice.org/" + RELEASE_MATRIX_LANG[ 3 ];
+			LINK_LP		= LINK_LP;
+			FILESIZE_FULL	= 0;
+			FILESIZE_LP	= 0;
+		} else {
+			// Beta release mode
+			// Provide the "all_beta.html" as download link.
+			LINK_FULL = "http://www.openoffice.org/download/all_beta.html";
+			LINK_LP   = LINK_LP;
+		}
+		// Reset the link, text and title of all elements that are not available.
+		resetSel();
+
+		// Set the values for all elements that should not be empty.
+		text = "Apache OpenOffice " + VERSION_SEL + " for " + RELEASE_MATRIX_LANG[ 1 ];
+		text = text + " (" + RELEASE_MATRIX_LANG[ 2 ] + ") is not available. ";
+		text = text + "<br />Please choose another language or version.";
+		document.getElementById( "dl_f_lnk"	).href		= "javascript:void( 0 )";
+		document.getElementById( "dl_f_lnk"	).innerHTML	= "No full installation available";
+		document.getElementById( "dl_f_lnk"	).title		= "Please select another language or version.";
+		document.getElementById( "dl_lp_lnk"	).href		= "javascript:void( 0 )";
+		document.getElementById( "dl_lp_lnk"	).innerHTML	= "No language pack available";
+		document.getElementById( "dl_lp_lnk"	).title		= "Please select another language or version.";
+		document.getElementById( "dl_f_hl"	).innerHTML	= text;
+
+		SF	= false;
+		OTHER	= true;
+		ARCHIVE	= false;
+		ERROR	= true;
+
+//		alertDbg( "getLinkSel()" );
+	}
+
+	return LINK_FULL;
 }
 
 /*
@@ -1433,16 +1515,6 @@ function getFilename( ver ) {
 			FILENAME_FULL	= "4.0.0 file names are not yet available";
 			FILENAME_LP	= "4.0.0 file names are not yet available";
 			break;
-		case "3.4.1":
-			// Todo: Implement a "release_matrix_340" array in the "release_matrix.js" file.
-			FILENAME_FULL	= "3.4.1 file names are not yet available";
-			FILENAME_LP	= "3.4.1 file names are not yet available";
-			break;
-		case "3.4.0":
-			// Todo: Implement a "release_matrix_340" array in the "release_matrix.js" file.
-			FILENAME_FULL	= "3.4.0 file names are not yet available";
-			FILENAME_LP	= "3.4.0 file names are not yet available";
-			break;
 		default:
 			FILENAME_FULL	= "";
 			FILENAME_LP	= "";
@@ -1536,18 +1608,6 @@ function getFilesize( ver ) {
 				FILESIZE_LP		= 0;
 				ERROR			= true;
 				break;
-			case "3.4.1":
-				// Todo: Implement a "release_matrix_340" array in the "release_matrix.js" file.
-				FILESIZE_FULL		= 0;
-				FILESIZE_LP		= 0;
-				ERROR			= true;
-				break;
-			case "3.4.0":
-				// Todo: Implement a "release_matrix_340" array in the "release_matrix.js" file.
-				FILESIZE_FULL		= 0;
-				FILESIZE_LP		= 0;
-				ERROR			= true;
-				break;
 			default:
 				FILESIZE_FULL		= 0;
 				FILESIZE_LP		= 0;



Mime
View raw message