Source: site.view [edit]
Function name: adminConsole
Arguments:
Description: Commands to administer The Perfect Cartoon
Page type: html
Render function:  
Module: perfectCartoon

Page source:

<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Cartoon Search | Admin Console</title>
    <link rel="stylesheet" href="http://www.perfectcartoon.com/css/basic.css" type="text/css" />
    <webl>WubCall("perfectCartoon.css", []);</webl>
  </head>
  <body>
    <div id="page">
      <div id="container">
        <h1><a href="/doit/adminConsole">Cartoon Search</a></h1>
        <h2>Administration Console</h2>
        
        <webl>
          var html = "";
          if wubinfo.user == nil then
             html = html + "<h3 color=red> YOU ARE NOT LOGGED IN!!!</h3>\n";
          end;
          if Size(OPTIONALARGS) == 1 then
             html = html + "<h3>" + OPTIONALARGS[0] + "</h3>\n"
          end;
          html;
        </webl>
        
        <ol>
          <li> Edit your <a target="_blank" href="https://docs.google.com/spreadsheet/ccc?key=0AsUaQihpzloZdEJXbkc0Y2pSS1VRX180aEVlaEdwTkE#gid=0">source data file</a>. Export the file as TSV file, 
               and upload the new version to dropbox, overwriting the previous version.  If you mess up and need to create a new dropbox file, copy the link from the new dropBox file, 
               change ending to dl=1, and enter it here:
            <form action="/webl/WubHub_DoIt" method="post">
              <input name="cmdline" value="newDropBoxFile(arg1)" type="hidden"/>
              <input name="arg1" value="" size="45" title="Dropbox file URL"/>
              <input type="submit" value="Save">
            </form>
          </li>
          <li>You can check for errors in your source data file by running <a target="_blank" href="http://wubhub.com:4110/webl/WubHub_DoIt?cmdline=testDocument">this command</a>.</li>
          <li>You can also add <a target="_blank" href="https://docs.google.com/spreadsheet/ccc?key=0AsUaQihpzloZdERRWXg5QVZwYUVkbV91UTdmcTRuQ2c#gid=0">category synonyms here</a>.  Edit <a target="_blank" href="https://docs.google.com/spreadsheet/ccc?key=0AsUaQihpzloZdHVybXJJemV4dXRpek5vMzdxdDc5Vmc&usp=sharing">author information here</a>.</li>
            <li> <a href="http://wubhub.com:4110/webl/WubHub_DoIt?cmdline=buildSearchEngine">Build the search index on STAGING</a>. This takes about 45 seconds for 10,000 cartoons, the page will just sit and spin while processing, that's OK</li>
          <li> Inspect results of automated tests:
             <ul>
               <li> <webl>Wub_ALinkCmd2("perfectCartoon.testCategories","Check Categories");</webl> </li> 
               <li> <webl>Wub_ALinkCmd2("perfectCartoon.testScores","Check Scores are all Numeric");</webl>.  This one will take a few minutes to run. </li> 
            </ul></li>
            <li> <a href='http://perfectcartoon.com/site/searchCartoons("","","","",staging)'>Test the results on STAGING</a>.</li>
            <li> When happy, <a href="http://wubhub.com:4110/webl/WubHub_DoIt?cmdline=stagingBecomesProduction">push your results to PRODUCTION</a>.  This switches what's on STAGING and on PRODUCTION.</li>
          <li> If you get complaints about image captions,  <a href="http://wubhub.com:4110/webl/WubHub_DoIt?cmdline=toggleCaptions">change caption status</a>.  Switches among 3 states:  true (show captions), false (don't show titles), or "nonNY" (only show for non New Yorker Magazine cartoons)</li>
          <li> <a href="http://wubhub.com:4110/webl/WubHub_DoIt?cmdline=toggleManual">Toggle on/off Manual Scoring</a></li>
          <li> <a href="http://wubhub.com:4110/webl/WubHub_DoIt?cmdline=toggleRoamOver">Toggle on/off Roam Over mode</a></li>
          <li> Find a bug or have an idea?   
             <a href="/webl/WubHub_DoIt?cmdline=createIssue:perfectCartoon">Submit an Issue</a> or  <a href="/webl/WubHub_DoIt?cmdline=issues:perfectCartoon,issueOpen">See all Open Issues</a>.</li>         
        </ol>

        <h3>Useful Links</h3>
        <ul>
           <a target="_blank" href="https://docs.google.com/document/d/1NNMHmmWv-CeyQznS1jDuAYc9hWE7pDGzD2strvCQAsI/edit">Message Board</a>
        </ul>
        <ul>
          <a target="_blank" href="http://www.perfectcartoon.com">perfectcartoon.com</a>
        </ul>
      </div>
    </div>
  </body>
</html>