W3C home > Mailing lists > Public > public-webplatform@w3.org > January 2014

Reconstituted "see also" sections

From: Max Polk <maxpolk@gmail.com>
Date: Sat, 25 Jan 2014 16:42:56 -0500
Message-ID: <52E42FE0.2020905@gmail.com>
To: Webplatform List <public-webplatform@w3.org>
tl;dr: The "see also" section now has valid content.

Doing a JavaScript page import quality check against the originals, I 
noticed the "See Also" sections were all empty on the import.  So I 
reconstituted the "See Also" section by mapping the wiki pages back to 
the original import html files, scanned each original for the "see also" 
div, grabbed the odd link in it that looks like this:

     <a href="8063ecd5-5778-4e87-b985-b21420171914.htm">String Object 

It's an invalid href, however, this odd token before ".htm" in href just 
happens to match something in a meta tag in the target page 
unambiguously.   So I scanned all original html files for a match of 
that href minus the .htm in a meta element that looks like this:

     <meta name="Microsoft.Help.Id" 
content="8063ecd5-5778-4e87-b985-b21420171914" />

Then I mapped that matching html file back to the new wiki page name, 
and inserted it as an internal wiki link at the bottom in the ==See 
Also== section.

Fortunately, there was already a See_Also_Section template, so I 
employed it and did a fresh import again.  It's form enabled and looks 
pretty good.

Now double checking against the original you see the "See Also" is now 
correct.  Check the bottoms of both page pairs, for example:



Since we only imported the Reference pages, the other links in the 
originals were not included, such as this at the bottom of the array map 

         Using Arrays (JavaScript)
     Other Resources
         Hilo JavaScript sample app (Windows Store)
Received on Saturday, 25 January 2014 21:43:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:57 UTC