Author: marcus Date: Sun May 25 21:03:59 2014 New Revision: 1597478 URL: http://svn.apache.org/r1597478 Log: Updates
Modified: openoffice/ooo-site/trunk/content/download/test/analyze.html Modified: openoffice/ooo-site/trunk/content/download/test/analyze.html URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/analyze.html?rev=1597478&r1=1597477&r2=1597478&view=diff ============================================================================== --- openoffice/ooo-site/trunk/content/download/test/analyze.html (original) +++ openoffice/ooo-site/trunk/content/download/test/analyze.html Sun May 25 21:03:59 2014 @@ -3,10 +3,10 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Apache OpenOffice Downloads - Analyze errors of stable release</title> - <script type="text/javascript" src="globalvars.js"></script> + <script type="text/javascript" src="globalvars_droplist.js"></script> <script type="text/javascript" src="languages.js"></script> - <script type="text/javascript" src="release_matrix.js"></script> - <script type="text/javascript" src="download.js"></script> + <script type="text/javascript" src="release_matrix_droplist.js"></script> + <script type="text/javascript" src="download_droplist.js"></script> <style type="text/css"> /* <![CDATA[ */ /*-------------------- Exceptions on standard css -----------------------*/ @@ -27,81 +27,109 @@ screen reader. --> <!-- Green: Stable release --> <script type="text/javascript"> <!-- - // Set a specific language ISO code to force to assemble a certain localized build as download URL - var NL_LANGUAGE = ""; - // Get the download URL for released install files (0 = release mode) - var LINK = getLink( 1 ); - if ( hasMirrorLink() ) { - if ( SOURCEFORGE ) { - // If download URL contains "sourceforge" (-> normal and correct download link), - // then download from Sourceforge with displayed platform and language. + // Set a specific language ISO code to force to assemble a certain localized build as download link. + NL_LANG = ""; + // Get the download link (1 = Stable Release). + var dl_link = getLink( 1 ); + // Does the browser language match with AOO languages? + +// alertDbg( "index.html" ); + + if ( isLangSupported() ) { + if ( SF ) { + // If download link contains "sourceforge" (-> normal and correct download link), + // offer download link from Sourceforge with displayed platform and language. +/* document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" - + LINK + "');" + "return false;\">" - + "<h2><a href='" + LINK + "' title='Version " + VERSION + " | Milestone " + MILESTONE - + " | Build ID " + BUILD + " | SVN " + SVN_REV + " | Released: " + REL_DATE + "'>" + + dl_link + "'); return false;\">" + + "<h2><a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + "Download Apache OpenOffice " + VERSION + "</a></h2>" - + "<p><a href='" + LINK + "' title='Version " + VERSION + " | Milestone " + MILESTONE + " | Build ID " + BUILD - + " | SVN " + SVN_REV + " | Released: " + REL_DATE + "'>Click here to download (hosted by Sourceforge.net) for:" - + "<br /><b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + "</b> | " - + "~" + FILESIZE + " MByte | Released: " + REL_DATE + "<br /></a></p>" + + "<p><a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + + "Click here to download (hosted by Sourceforge.net) for:" + + "<br /><b>" + UI_PLATFORM + "</b> and <b>" + RELEASE_MATRIX_LANG[ 1 ] + " (" + RELEASE_MATRIX_LANG[ 2 ] + ")</b>" + + "<br />Filesize ~" + FILESIZE_FULL + " MByte | Milestone " + MILESTONE + " | Build ID " + BUILD + + " | SVN " + SVN_REV + " | Released: " + REL_DATE + "</a></p>" + + "</div>" ); +*/ + document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" + + dl_link + "'); return false;\">" + + "<h2><a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + + "Download Apache OpenOffice " + VERSION + "</a></h2>" + + "<p><a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + + "<a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + + "<b>" + UI_PLATFORM + "</b> and <b>" + RELEASE_MATRIX_LANG[ 1 ] + " (" + RELEASE_MATRIX_LANG[ 2 ] + ")</b> " + + " (Download hosted by Sourceforge.net)</a></p>" + "</div>" ); } else if ( OTHER ) { - // If download URL contains "other" (-> platform, OS or package manager was not recognized), - // then use "other.html" as download link. + // If download link contains "other" (-> platform, OS or package manager was not recognized), + // use "other.html" as download link. document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" - + LINK + "');" + "return false;\">" - + "<h2><a href='" + LINK + "' title='" + LINK + "'>" + + dl_link + "'); return false;\">" + + "<h2><a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + "Download Apache OpenOffice</a></h2>" - + "<p><a href='" + LINK + "' title='" + LINK + "'>Apache OpenOffice " + VERSION + " for " - + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + " (" + LANG_ARRAY[ 1 ] + ")</b> is not available. " - + "Click here to choose from the alternative download webpage.</a></p>" + + "<p><a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + + "Apache OpenOffice " + VERSION + " for " + + "<b>" + UI_PLATFORM + "</b> and <b>" + RELEASE_MATRIX_LANG[ 1 ] + " (" + RELEASE_MATRIX_LANG[ 2 ] + ")</b> " + + "is not available. Click here to choose from the alternative download webpage.</a></p>" + "</div>" ); } else if ( ARCHIVE ) { - // If download URL contains "archive" (-> platform/OS is no longer supported), - // then provide a download link to the previous version. - document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" - + LINK + "');" + "return false;\">" - + "<h2><a href='" + LINK + "' title='" + LINK + "'>" + // If download link contains "archive" (-> platform/OS is no longer supported), + // offer download link from archive to the previous version. + document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" + + dl_link + "'); return false;\">" + + "<h2><a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + "Download Apache OpenOffice</a></h2>" - + "<p><a href='" + LINK + "' title='" + LINK + "'>Apache OpenOffice " + VERSION + " for " - + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + " (" + LANG_ARRAY[ 1 ] + ")</b> is not available. " - + "Click here for the previous version " + PRE_VERSION + ".</a></p>" + + "<p><a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + + "Apache OpenOffice " + VERSION + " for " + + "<b>" + UI_PLATFORM + "</b> and <b>" + RELEASE_MATRIX_LANG[ 1 ] + " (" + RELEASE_MATRIX_LANG[ 2 ] + ")</b> " + + "is not available. Click here for the previous version " + PRE_VERSION + ".</a></p>" + "</div>" ); } } else { - // If browser language do not match with AOO languages, then download from an alternative webpage. + // If browser language do not match with AOO languages, browse to NL webpage as alternative. + dl_link = "http://www.openoffice.org/" + RELEASE_MATRIX_LANG[ 3 ]; document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" - + LINK + "');" + "return false;\">" - + "<h2><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>" + + dl_link + "'); return false;\">" + + "<h2><a href='" + dl_link + "' title='Click to download from: " + dl_link + "'>" + "Download Apache OpenOffice</a></h2>" - + "<p><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>Apache OpenOffice " + VERSION + " for " - + "<b>" + LANG_ARRAY[ 2 ] + " (" + LANG_ARRAY[ 1 ] + ")</b> is not available. " - + "Click here to choose from the alternative " + LANG_ARRAY[ 1 ] + " download webpage.</a></p>" + + "<p><a href='" + dl_link + "' title='Click to download from: " + dl_link + "'>" + + "Apache OpenOffice " + VERSION + " for <b>" + RELEASE_MATRIX_LANG[ 1 ] + " (" + RELEASE_MATRIX_LANG[ 2 ] + ")</b> " + + "is not available. Click here to choose from the alternative " + RELEASE_MATRIX_LANG[ 1 ] + " download webpage." + + "</a></p>" + "</div>" ); } - // Show some helpful links for SDK, source, checksums, release notes, legacy version. - document.write( "<div class=\"sub-green\">" ); - document.write( "<p>" ); - if ( CHECKSUM_ASC ) { - document.write( "Signatures and hashes: " - + "<a href='" + CHECKSUM_KEYS + "' + title='KEYS signature'>KEYS</a> , " - + "<a href='" + CHECKSUM_ASC + "' + title='ASC signature'>ASC</a> , " - + "<a href='" + CHECKSUM_MD5 + "' + title='MD5 hash'>MD5</a> , " - + "<a href='" + CHECKSUM_SHA256 + "' + title='SHA256 hash'>SHA256</a> , " - + "<a href='../checksums.html' title='How to verify the download with checksums?'>How to verify?</a> | " ); - } - document.write( "<a href='https://cwiki.apache.org/confluence/display/OOOUSERS/AOO+" + VERSION_SHORT + "+Release+Notes'" - + "title='What is new, what has been improved in Apache OpenOffice " + VERSION + "?'><b>Release Notes</b></a> | <br />" - + "<a href='other.html' title='Get all platforms, languages, language packs to download'>" - + "<b>Get all platforms, languages, language packs</b></a> | " - + "<a href='other.html#source' title='Get the source code and SDK to download'>Source code and SDK</a> | <br />" - + "<a href='../../porting/index.html'" - + "title='Get Apache OpenOffice software packaged as portable USB versions and third-party ports'>" - + "<b>Portable USB versions</b> and third-party ports</a> | " - + "Old and legacy version: <a href='../other-341.html' title='Get the old version of Apache OpenOffice " - + OLDVERSION + "'><b>" + OLDVERSION + "</b></a> + " - + "<a href='../legacy/index.html' title='Get the legacy version of OpenOffice.org " - + LEGACYVERSION + "'><b>" + LEGACYVERSION + "</b></a></p>" + // Show some helpful data and links for SDK, source, checksums, release notes, legacy version. +/* + document.write( "<div class='sub-green'>" + + "<p> ); + if ( LINK_CHECKSUM_ASC_FULL ) { + document.write( "Signatures and hashes: " + + "<a href='" + LINK_CHECKSUM_KEYS + "' + title='KEYS signature file'>KEYS</a> , " + + "<a href='" + LINK_CHECKSUM_ASC_FULL + "' + title='ASC signature for: " + FILENAME_FULL + "'>ASC</a> , " + + "<a href='" + LINK_CHECKSUM_MD5_FULL + "' + title='MD5 hash for: " + FILENAME_FULL + "'>MD5</a> , " + + "<a href='" + LINK_CHECKSUM_SHA256_FULL + "' + title='SHA256 hash for: " + FILENAME_FULL + "'>SHA256</a> , " + + "<a href='../checksums.html' title='How to verify the download with checksums?'>How to verify?</a> | " ); + } + document.write( "" + + "<a href='https://cwiki.apache.org/confluence/display/OOOUSERS/AOO+" + VERSION_SHORT + "+Release+Notes'" + + "title='What is new, what has been improved in Apache OpenOffice " + VERSION + "?'><b>Release Notes</b></a> | <br />" + + "<a href='other.html' title='Get all platforms, languages, language packs to download'>" + + "<b>Get all platforms, languages, language packs</b></a> | " + + "<a href='other.html#source' title='Get the source code and SDK to download'>Source code and SDK</a> | <br />" + + "<a href='../../porting/index.html'" + + "title='Get Apache OpenOffice software packaged as portable USB versions and third-party ports'>" + + "<b>Portable USB versions</b> and third-party ports</a> | " + + "Old and legacy version: <a href='../other-341.html' title='Get the old version of Apache OpenOffice " + + OLDVERSION + "'><b>" + OLDVERSION + "</b></a> + " + + "<a href='../legacy/index.html' title='Get the legacy version of OpenOffice.org " + + LEGACYVERSION + "'><b>" + LEGACYVERSION + "</b></a></p>" + + "</div>" ); +*/ + document.write( "<div class='sub-green'>" + + "<p></p>" + + "<p><a style='text-decoration: none;'>Filesize ~" + FILESIZE_FULL + " MByte | Milestone " + MILESTONE + " | " + + "Build ID " + BUILD + " | SVN " + SVN_REV + " | Released: " + REL_DATE + "</a></p>" + + "<p></p>" + "</div>" ); //--> </script> @@ -151,20 +179,25 @@ screen reader. --> document.write( "<tr><td>Language name </td><td>" + LANG_ARRAY[ 2 ] + "</td></tr>" ); document.write( "<tr><td>Language ISO code </td><td>" + LANG_ISO + "</td></tr>" ); document.write( "<tr><td>Language array data </td><td>" + LANG_ARRAY + "</td></tr>" ); - document.write( "<tr><td>Release matrix platform position </td><td>" + RELEASE_MATRIX_PLATFORM_POS + "</td></tr>" ); + document.write( "<tr><td>Release matrix platform position (full) </td><td>" + RELEASE_MATRIX_PLATFORM_POS_FULL + "</td></tr>" ); + document.write( "<tr><td>Release matrix platform position (lp) </td><td>" + RELEASE_MATRIX_PLATFORM_POS_LP + "</td></tr>" ); document.write( "<tr><td>Release matrix platform array data </td><td>" + RELEASE_MATRIX_PLATFORM + "</td></tr>" ); document.write( "<tr><td>Release matrix language array data </td><td>" + RELEASE_MATRIX_LANG + "</td></tr>" ); document.write( "<tr><td>UI platform name </td><td>" + UI_PLATFORM + "</td></tr>" ); document.write( "<tr><td>URL platform name </td><td>" + URL_PLATFORM + "</td></tr>" ); - document.write( "<tr><td>File name </td><td>" + FILENAME + "</td></tr>" ); + document.write( "<tr><td>File name (full) </td><td>" + FILENAME_FULL + "</td></tr>" ); + document.write( "<tr><td>File name (lp) </td><td>" + FILENAME_LP + "</td></tr>" ); document.write( "<tr><td>File extension </td><td>" + EXTENSION + "</td></tr>" ); - document.write( "<tr><td>File size (MByte) </td><td>" + FILESIZE + "</td></tr>" ); - document.write( "<tr><td>Download file link </td><td>" + LINK + "</td></tr>" ); - document.write( "<tr><td>Checksum file link (here for MD5) </td><td>" + CHECKSUM_MD5 + "</td></tr>" ); + document.write( "<tr><td>File size (full) (MByte) </td><td>" + FILESIZE_FULL + "</td></tr>" ); + document.write( "<tr><td>File size (lp) (MByte) </td><td>" + FILESIZE_LP + "</td></tr>" ); + document.write( "<tr><td>Download file link (full) </td><td>" + LINK_FULL + "</td></tr>" ); + document.write( "<tr><td>Download file link (lp) </td><td>" + LINK_LP + "</td></tr>" ); + document.write( "<tr><td>Checksum file link (full) (here for MD5) </td><td>" + LINK_CHECKSUM_MD5_FULL + "</td></tr>" ); + document.write( "<tr><td>Checksum file link (lp) (here for MD5) </td><td>" + LINK_CHECKSUM_MD5_LP + "</td></tr>" ); document.write( "<tr><td>getLink() </td><td>" + getLink( 1 ) + "</td></tr>" ); - document.write( "<tr><td>hasMirrorLink() ? </td><td>" + hasMirrorLink() + "</td></tr>" ); + document.write( "<tr><td>isLangSupported() ? </td><td>" + isLangSupported() + "</td></tr>" ); document.write( "<tr><td>Old platform ? </td><td>" + OLD_PLATFORM + "</td></tr>" ); - document.write( "<tr><td>Contains link to Sourgeforge ? </td><td>" + SOURCEFORGE + "</td></tr>" ); + document.write( "<tr><td>Contains link to Sourgeforge ? </td><td>" + SF + "</td></tr>" ); document.write( "<tr><td>Contains link to 'other.html' ? </td><td>" + OTHER + "</td></tr>" ); document.write( "<tr><td>Contains link to archived build ? </td><td>" + ARCHIVE + "</td></tr>" ); document.write( "<tr><td>General error ? </td><td>" + ERROR + "</td></tr>" );