Author: marcus
Date: Sun Mar  2 22:54:43 2014
New Revision: 1573394

URL: http://svn.apache.org/r1573394
Log:
Updated text and links

Modified:
    openoffice/ooo-site/trunk/content/download/test/index.html

Modified: openoffice/ooo-site/trunk/content/download/test/index.html
URL: 
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/index.html?rev=1573394&r1=1573393&r2=1573394&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/index.html (original)
+++ openoffice/ooo-site/trunk/content/download/test/index.html Sun Mar  2 
22:54:43 2014
@@ -54,7 +54,13 @@ screen reader. -->
   // 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(0);
+  var LINK        = getLink( 0 );
+/*
+  document.write ( "Language ISO: " + LANG_ISO + " - has MirrorLink()?: " + 
hasMirrorLink() + "<br />"
+  + "SourceForge: " + SOURCEFORGE + " - Other: " + OTHER + " - Archive: " + 
ARCHIVE + "<br />"
+  + "UI_PLATFORM: " + UI_PLATFORM + " - URL_PLATFORM: " + URL_PLATFORM + " - 
EXTENSION: " + EXTENSION + "<br />"
+  + "LINK: " + LINK );
+*/
   if ( hasMirrorLink() ) {
     if ( SOURCEFORGE ) {
       // If download URL contains "sourceforge" (-> normal and correct 
download link),
@@ -77,8 +83,8 @@ screen reader. -->
         + "<h2><a href='" + LINK + "' title='" + LINK + "'>"
         + "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>"
+        + "<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>" );
     } else if ( ARCHIVE ) {
       // If download URL contains "archive" (-> platform/OS is no longer 
supported),
@@ -88,8 +94,8 @@ screen reader. -->
         + "<h2><a href='" + LINK + "' title='" + LINK + "'>"
         + "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>"
+        + "<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 {
@@ -99,8 +105,8 @@ screen reader. -->
       + "<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 "
-      + "<b>" + LANG_ARRAY[ 2 ] + " (" + LANG_ARRAY[ 1 ] + ")</b> is not 
available. Please choose another build from the "
-      + "alternative " + LANG_ARRAY[ 1 ] + " download webpage.</a></p>"
+      + "<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>"
     + "</div>" );
   }
   // Show some helpful links for SDK, source, checksums, release notes, legacy 
version.
@@ -162,7 +168,13 @@ screen reader. -->
     // 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 Beta releases (>0 = beta mode)
-    var LINK        = getLink(1);
+    var LINK        = getLink( 1 );
+/*
+    document.write ( "Language ISO: " + LANG_ISO + " - has MirrorLink()?: " + 
hasMirrorLink() + "<br />"
+    + "SourceForge: " + SOURCEFORGE + " - Other: " + OTHER + " - Archive: " + 
ARCHIVE + "<br />"
+    + "UI_PLATFORM: " + UI_PLATFORM + " - URL_PLATFORM: " + URL_PLATFORM + " - 
EXTENSION: " + EXTENSION + "<br />"
+    + "LINK: " + LINK );
+*/
     if ( hasMirrorLink() ) {
       if ( SOURCEFORGE ) {
         // If a Beta Release is available for download, then download from 
Sourceforge with displayed platform and language.
@@ -180,26 +192,36 @@ screen reader. -->
         + "</div>" );
       } else if ( OTHER ) {
         // If download URL contains "other" (-> platform, OS or package 
manager was not recognized),
-        // then use "all_beta.html" as download link.
-        LINK = "http://www.openoffice.org/download/test/all_beta.html";;
-        document.write( "<div class=\"button yellow\" id=\"optionitem2\" 
onclick=\"openItem('optionitem2','"
-          + LINK + "') return false;\">"
+        // then use "other.html" as download link.
+        document.write( "<div class=\"first button yellow\" id=\"optionitem1\" 
onclick=\"openItem('optionitem1','"
+          + LINK + "');" + "return false;\">"
           + "<h2><a href='" + LINK + "' title='" + LINK + "'>"
-          + "Download Apache OpenOffice " + BETA_NAME + "</a></h2>"
-          + "<p><a href='" + LINK + "' title='" + LINK + "'>The Beta release 
is not available for:<br />"
-          + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + " (" + 
LANG_ARRAY[ 1 ] + ")</b><br />"
+          + "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>"
         + "</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 yellow\" id=\"optionitem1\" 
onclick=\"openItem('optionitem1','"
+          + LINK + "');" + "return false;\">"
+          + "<h2><a href='" + LINK + "' title='" + LINK + "'>"
+          + "Download Apache OpenOffice</a></h2>"
+          + "<p><a href='" + LINK + "' title='" + 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 download 
from an alternative webpage.
-      LINK = "http://www.openoffice.org/download/test/all_beta.html";;
+      // 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";;
       document.write( "<div class=\"button yellow\" id=\"optionitem2\" 
onclick=\"openItem('optionitem2','"
         + LINK + "') return false;\">"
         + "<h2><a href='" + LINK + "' title='" + LINK + "'>"
         + "Download Apache OpenOffice " + BETA_NAME + "</a></h2>"
-        + "<p><a href='" + LINK + "' title='" + LINK + "'>The Beta release is 
not available for:<br />"
-        + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + " (" + 
LANG_ARRAY[ 1 ] + ")</b><br />"
+        + "<p><a href='" + LINK + "' title='" + 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>" );
     }


Reply via email to