[metacat-cvs] metacat/lib/style/common/templates loginForm.tmpl esaModNotification.tmpl

Saurabh Garg sgarg at ecoinformatics.org
Tue Nov 22 15:09:14 PST 2005


sgarg       05/11/22 15:09:14

  Added:       lib/style/common/templates loginForm.tmpl
                        esaModNotification.tmpl
  Log:
  New templates for ESA skin.
  
  loginForm.tmpl is useful in displaying a login form
  and esaModNotification is useful in sending notifications to the moderator and the contact
  
  Revision  Changes    Path
  1.1                  metacat/lib/style/common/templates/loginForm.tmpl
  
  Index: loginForm.tmpl
  ===================================================================
  <!--
    *  '$RCSfile: loginForm.tmpl,v $'
    *      Authors: Saurabh Garg
    *    Copyright: 2000 Regents of the University of California and the
    *               National Center for Ecological Analysis and Synthesis
    *  For Details: http://www.nceas.ucsb.edu/
    *
    *   '$Author: sgarg $'
    *     '$Date: 2005/11/22 23:09:14 $'
    * '$Revision: 1.1 $'
    * 
    * This is an HTML document for displaying metadata catalog tools
    *
    * This program is free software; you can redistribute it and/or modify
    * it under the terms of the GNU General Public License as published by
    * the Free Software Foundation; either version 2 of the License, or
    * (at your option) any later version.
    *
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    *
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  -->
  <html>
  <head>
  <title>Data Repository Login Form</title>
  <link rel="stylesheet" href="@html-path@/style/default.css" type="text/css">
    <link rel="stylesheet" type="text/css" 
          href="@systemidserver@@style-skins-path@/[%cfg%]/[%cfg%].css"></link>
    <script language="JavaScript" type="text/JavaScript"
            src="@systemidserver@@style-skins-path@/[%cfg%]/[%cfg%].js"></script>
    <script language="JavaScript" type="text/JavaScript"
            src="@systemidserver@@style-common-path@/branding.js"></script>
  
    <script language="JavaScript" type="text/javascript">
    function submitform(formObj) {
  
    if (trim(formObj.elements["loginAction"].value)!="Login") return true;
    //trim username & passwd:
    var username = trim(formObj.elements["uid"].value);
    var organization  = trim(formObj.elements["organization"].value);
    var password      = trim(formObj.elements["password"].value);
  
    if (username=="") {
      alert("You must type a username. \n"+popupMsg);
          formObj.elements["uid"].focus();
      return false;
    }
  
    if (organization=="") {
      alert("You must select an organization. \n"+popupMsg);
          formObj.elements["organization"].focus();
      return false;
    }
  
    if (password=="") {
      alert("You must type a password. \n"+popupMsg);
          formObj.elements["password"].focus();
      return false;
    }
  
    formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org";
    return true;
  }
  
  function trim(stringToTrim) {
    return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
  }
  
   </script>
  
  </head>
  <body>
        <script language="JavaScript">
            insertTemplateOpening();
            insertSearchBox();
        </script>
    <br />
    <menu>
  <form method="post" action="@cgi-prefix@/register-dataset.cgi" onsubmit="return submitform(this);" >
      <input type="hidden" name="stage" value="login"> 
      <input type="hidden" name="username" value=""> 
      <input type="hidden" name="cfg" value="[%cfg%]"> 
  
      <table>
        <tr valign="middle">
          <td align="left" valign="middle" class="text_plain">
          Username:</td>
  
          <td width="173" align="left" class="text_plain" style=
          "padding-top: 2px; padding-bottom: 2px;"><input name="uid"
          type="text" style="width: 140px;" value=""></td>
        </tr>
  
        <tr valign="middle">
          <td height="28" align="left" valign="middle" class=
          "text_plain">Organization:</td>
  
          <td align="left" class="text_plain" style=
          "padding-top: 2px; padding-bottom: 2px;"><select name=
          "organization" style="width:140px;">
            <option value=""    selected>&#8212; choose one &#8212;</option>
            <option value="NCEAS"       >NCEAS</option>
            <option value="UCNRS"       >UCNRS</option>
            <option value="PISCO"       >PISCO</option>
            <option value="OBFS"        >OBFS</option>
            <option value="SDSC"        >SDSC</option>
            <option value="KU"          >KU</option>
            <option value="unaffiliated">unaffiliated</option>
          </select></td>
        </tr>
  
        <tr valign="middle">
          <td width="85" align="left" valign="middle" class=
          "text_plain">Password:</td>
  
          <td colspan="2" align="left" class="text_plain" style=
          "padding-top: 2px; padding-bottom: 2px;">
            <table width="100%" border="0" cellpadding="0"
            cellspacing="0">
              <tr>
                <td width="150" align="left"><input name="password"
                type="password" maxlength="50" style="width:140px;"
                value=""></td>
  
                <td align="center" class="buttonBG_login">
                <input type="submit" name="loginAction" value="Login"
                class="button_login"></td>
  
                <td align="left">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </form>
  
    </menu>
    </li>
    <p>&nbsp;</p>
  <script language="JavaScript">          
      insertTemplateClosing();
  </script>
  </body>
  </html>
  
  
  
  1.1                  metacat/lib/style/common/templates/esaModNotification.tmpl
  
  Index: esaModNotification.tmpl
  ===================================================================
  [% IF recipient_status == 'moderator' %]
  Ecological Society of America moderator notice:
  [% IF stage == 'mod_accept' %]
  
  You have accepted the metadata entry for [%contactName%]'s article, [%dpTitle%].  This part of the article's submission process is now complete.  You can see the metadata entry as it currently stands at @servlet-path@?action=read&cfg=esa&docid=[%docid%].  Once published, the entry will be available at @servlet-path@?action=read&cfg=esa&docid=[%docid%].
  
  [% ELSIF stage == 'mod_decline' %]		
  
  You have rejected the metadata entry for [%contactName%]'s article, '[%dpTitle%]'. This entry is no longer being considered for publication. Your comments (if any) on the reason for the rejection are listed below. 
  
  Your Comments:
  [%comment%]
  
  [% ELSIF stage == 'mod_revise' %]
  
  You have sent back for review the metadata entry for [%contactName%]'s article, [%dpTitle%].  Your comments on the areas that could be improved are noted below. You can edit the metadata entry as it currently stands at @cgi-prefix@/register-dataset.cgi?stage=modify&cfg=esa&docid=[%docid%].
  
  Your Comments:
  [%comment%]
  
  [% END %]
  [% ELSIF recipient_status == 'user' %]
  [% IF stage == 'mod_accept' %]
  
  Dear [%contactName%],
  
  We are happy to inform you that the metadata entry for your article submission,
  [%dpTitle%], has been accepted.  This part of the submission process is now
  complete.  Your metadata entry can be cited in the future as <LSID>, and will be
  viewable online at @servlet-path@?action=read&cfg=esa&docid=[%docid%] after publication.  Thank you for your cooperation.
  
  The Ecological Society of America
   		
  [% ELSIF stage == 'mod_decline' %]
  
  Dear [%contactName%],
  
  We are sorry to inform you that the metadata entry for your article submission,
  [%dpTitle%], has been rejected.  The comments of your reviewer (if any) may be
  seen at the bottom of this message.  We hope that you will submit more research for
  review in the future.
  
  Sincerely,
  
  The Ecological Society of America
  
  If this metadata entry was not made as part of an article submission to ESA:
  
  This metadata registry is only for entries associated with articles for ESA
  publications.  For those wishing to make public metadata entries not associated with
  ESA, there is a metadata registry available to the greater scientific community at
  http://knb.ecoinformatics.org
  
  Reviewer's Comments:
  [%comment%]
  
  [% ELSIF stage == 'mod_revise' %]
  
  Dear [%contactName%],
  
  Upon review, we feel that the metadata entry for your article submission,
  [%dpTitle%], is still missing some relevant information.  Please read the
  reviewer's comments below for any suggested additions and changes.  You are strongly
  encouraged to go back and address these issues with your entry.  You can login,
  edit, and resubmit your entry at @cgi-prefix@/register-dataset.cgi?stage=modify&cfg=esa&docid=[%docid%]. 
  
  The Ecological Society of America
  
  Reviewer's Notes:
  [%comment%]
  
  [% END %]
  [% END %]
  
  
  
  


More information about the Metacat-cvs mailing list