Author: marcus Date: Sat May 3 10:48:09 2014 New Revision: 1592177 URL: http://svn.apache.org/r1592177 Log: Changed names and definition for several variables
Modified: openoffice/ooo-site/trunk/content/download/test/index_droplist.html Modified: openoffice/ooo-site/trunk/content/download/test/index_droplist.html URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/index_droplist.html?rev=1592177&r1=1592176&r2=1592177&view=diff ============================================================================== --- openoffice/ooo-site/trunk/content/download/test/index_droplist.html (original) +++ openoffice/ooo-site/trunk/content/download/test/index_droplist.html Sat May 3 10:48:09 2014 @@ -52,17 +52,19 @@ screen reader. --> <script type="text/javascript"> <!-- // Set a specific language ISO code to force to assemble a certain localized build as download URL - var NL_LANGUAGE = ""; + NL_LANGUAGE = ""; // Get the download URL for released install files (0 = release mode) - var LINK = getLink( 1 ); + var dl_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. document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" - + LINK + "');" + "return false;\">" - + "<h2><a href='" + LINK + "' title='" + LINK + "'>Download Apache OpenOffice " + VERSION + "</a></h2>" - + "<p><a href='" + LINK + "' title='" + LINK + "'>Click here to download (hosted by Sourceforge.net) for:" + + 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 + "'>" + + "Click here to download (hosted by Sourceforge.net) for:" + "<br /><b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + "</b>" + "<br />Filesize ~" + FILESIZE_FULL + " MByte | Milestone " + MILESTONE + " | Build ID " + BUILD + " | SVN " + SVN_REV + " | Released: " + REL_DATE + "</a></p>" @@ -71,10 +73,11 @@ screen reader. --> // If download URL contains "other" (-> platform, OS or package manager was not recognized), // then 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 " + + "<p><a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + + "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>" + "</div>" ); @@ -82,18 +85,19 @@ screen reader. --> // 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 + "'>" + + 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 " + + "<p><a href='" + dl_link + "' title='Click to download: " + FILENAME_FULL + "'>" + + "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>" + "</div>" ); } } else { // If browser language do not match with AOO languages, then download from an alternative webpage. - document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" + LINK + "');" - + "return false;\">" + document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" + + dl_link + "'); return false;\">" + "<h2><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>" + "Download Apache OpenOffice</a></h2>" + "<p><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>Apache OpenOffice " + VERSION + " for " @@ -104,12 +108,12 @@ screen reader. --> // Show some helpful links for SDK, source, checksums, release notes, legacy version. document.write( "<div class='sub-green'>" + "<p>" ); - if ( CHECKSUM_ASC_FULL ) { + if ( LINK_CHECKSUM_ASC_FULL ) { document.write( "Signatures and hashes: " - + "<a href='" + CHECKSUM_KEYS + "' + title='KEYS signature'>KEYS</a> , " - + "<a href='" + CHECKSUM_ASC_FULL + "' + title='ASC signature'>ASC</a> , " - + "<a href='" + CHECKSUM_MD5_FULL + "' + title='MD5 hash'>MD5</a> , " - + "<a href='" + CHECKSUM_SHA256_FULL + "' + title='SHA256 hash'>SHA256</a> , " + + "<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'" @@ -230,18 +234,18 @@ screen reader. --> <!-- if ( BETA_ACTIVE == 1 ) { // Set a specific language ISO code to force to assemble a certain localized build as download URL - var NL_LANGUAGE = ""; + NL_LANGUAGE = ""; // Get the download URL for Beta releases (>0 = beta mode) - var LINK = getLink( 1 ); + var dl_link = getLink( 1 ); if ( hasMirrorLink() ) { if ( SOURCEFORGE ) { // If a Beta Release is available for download, then download from Sourceforge with displayed platform and language. document.write( "<div class=\"button yellow\" id=\"optionitem3\" onclick=\"openItem('optionitem3','" - + LINK + "') return false;\">" - + "<h2><a href='" + LINK + "' title='Version " + BETA_NAME + " | Milestone " + BETA_MILESTONE + + dl_link + "'); return false;\">" + + "<h2><a href='" + dl_link + "' title='Version " + BETA_NAME + " | Milestone " + BETA_MILESTONE + " | Build ID " + BETA_BUILD + " | SVN " + BETA_SVN_REV + " | Released: " + BETA_REL_DATE + "'>" + "Download Apache OpenOffice " + BETA_NAME + "</a></h2>" - + "<p><a href='" + LINK + "' title='Version " + BETA_NAME + " | Milestone " + BETA_MILESTONE + " | " + + "<p><a href='" + dl_link + "' title='Version " + BETA_NAME + " | Milestone " + BETA_MILESTONE + " | " + "Build ID " + BETA_BUILD + " | SVN " + BETA_SVN_REV + " | Released: " + BETA_REL_DATE + "'>" + "Click here to download for:<br /><b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + "</b> | " + "~" + FILESIZE_FULL + " MByte | Released: " + BETA_REL_DATE + "<br />" @@ -252,10 +256,10 @@ screen reader. --> // If download URL contains "other" (-> platform, OS or package manager was not recognized), // then use "other.html" as download link. document.write( "<div class=\"button yellow\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" - + LINK + "');" + "return false;\">" - + "<h2><a href='" + LINK + "' title='" + LINK + "'>" + + dl_link + "'); return false;\">" + + "<h2><a href='" + dl_link + "' title='" + dl_link + "'>" + "Download Apache OpenOffice</a></h2>" - + "<p><a href='" + LINK + "' title='" + LINK + "'>Apache OpenOffice " + BETA_NAME + " for " + + "<p><a href='" + dl_link + "' title='" + dl_link + "'>Apache OpenOffice " + BETA_NAME + " 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>" + "</div>" ); @@ -263,22 +267,22 @@ screen reader. --> // If download URL contains "archive" (-> platform/OS is no longer supported), // then provide a download link to the previous version. document.write( "<div class=\"button yellow\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" - + LINK + "');" + "return false;\">" - + "<h2><a href='" + LINK + "' title='" + LINK + "'>" + + dl_link + "'); return false;\">" + + "<h2><a href='" + dl_link + "' title='" + dl_link + "'>" + "Download Apache OpenOffice</a></h2>" - + "<p><a href='" + LINK + "' title='" + LINK + "'>Apache OpenOffice " + BETA_NAME + " for " + + "<p><a href='" + dl_link + "' title='" + dl_link + "'>Apache OpenOffice " + BETA_NAME + " 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>" + "</div>" ); } } else { // If browser language do not match with AOO languages, then use "all_beta.html" as download link. - // LINK = "http://www.openoffice.org/download/test/all_beta.html"; + // dl_link = "http://www.openoffice.org/download/test/all_beta.html"; document.write( "<div class=\"button yellow\" id=\"optionitem2\" onclick=\"openItem('optionitem2','" - + LINK + "') return false;\">" - + "<h2><a href='" + LINK + "' title='" + LINK + "'>" + + dl_link + "'); return false;\">" + + "<h2><a href='" + dl_link + "' title='" + dl_link + "'>" + "Download Apache OpenOffice " + BETA_NAME + "</a></h2>" - + "<p><a href='" + LINK + "' title='" + LINK + "'>Apache OpenOffice " + BETA_NAME + " for " + + "<p><a href='" + dl_link + "' title='" + dl_link + "'>Apache OpenOffice " + BETA_NAME + " for " + "<b>" + LANG_ARRAY[ 2 ] + " (" + LANG_ARRAY[ 1 ] + ")</b> is not available. " + "Click here to choose from the alternative download webpage.</a></p>" + "</div>" ); @@ -303,13 +307,13 @@ screen reader. --> + "</div>" ); } else if ( BETA_ACTIVE == 0 ) { // Yellow: Beta Release coming soon - var ANN_LINK = "https://blogs.apache.org/OOo/"; - var ANN_TITLE = "Official blog of Apache OpenOffice"; + var announce_link = "https://blogs.apache.org/OOo/"; + var announce_title = "Official blog of Apache OpenOffice"; document.write( "<div class=\"button yellow\" id=\"optionitem2_1\" onclick=\"openItem('optionitem2_1','" - + ANN_LINK + "') return false;\">" - + "<h2><a href='" + ANN_LINK + "' title='" + ANN_TITLE + "'>" + + announce_link + "') return false;\">" + + "<h2><a href='" + announce_link + "' title='" + announce_title + "'>" + "Get Apache OpenOffice " + BETA_NAME + "<br /><small>(planned for: " + BETA_REL_DATE + ")</small></a></h2>" - + "<p><a href='" + ANN_LINK + "' title='" + ANN_TITLE + "'><br />" + + "<p><a href='" + announce_link + "' title='" + announce_title + "'><br />" + "The Beta release is not yet available. Please make sure to come back on the release date to download and test the " + "new version.</a></p>" + "</div>" );