Project

General

Profile

« Previous | Next » 

Revision 2775

Added by sgarg almost 19 years ago

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

View differences:

lib/style/common/templates/esaModNotification.tmpl
1
[% IF recipient_status == 'moderator' %]
2
Ecological Society of America moderator notice:
3
[% IF stage == 'mod_accept' %]
4

  
5
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%].
6

  
7
[% ELSIF stage == 'mod_decline' %]		
8

  
9
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. 
10

  
11
Your Comments:
12
[%comment%]
13

  
14
[% ELSIF stage == 'mod_revise' %]
15

  
16
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%].
17

  
18
Your Comments:
19
[%comment%]
20

  
21
[% END %]
22
[% ELSIF recipient_status == 'user' %]
23
[% IF stage == 'mod_accept' %]
24

  
25
Dear [%contactName%],
26

  
27
We are happy to inform you that the metadata entry for your article submission,
28
[%dpTitle%], has been accepted.  This part of the submission process is now
29
complete.  Your metadata entry can be cited in the future as <LSID>, and will be
30
viewable online at @servlet-path@?action=read&cfg=esa&docid=[%docid%] after publication.  Thank you for your cooperation.
31

  
32
The Ecological Society of America
33
 		
34
[% ELSIF stage == 'mod_decline' %]
35

  
36
Dear [%contactName%],
37

  
38
We are sorry to inform you that the metadata entry for your article submission,
39
[%dpTitle%], has been rejected.  The comments of your reviewer (if any) may be
40
seen at the bottom of this message.  We hope that you will submit more research for
41
review in the future.
42

  
43
Sincerely,
44

  
45
The Ecological Society of America
46

  
47
If this metadata entry was not made as part of an article submission to ESA:
48

  
49
This metadata registry is only for entries associated with articles for ESA
50
publications.  For those wishing to make public metadata entries not associated with
51
ESA, there is a metadata registry available to the greater scientific community at
52
http://knb.ecoinformatics.org
53

  
54
Reviewer's Comments:
55
[%comment%]
56

  
57
[% ELSIF stage == 'mod_revise' %]
58

  
59
Dear [%contactName%],
60

  
61
Upon review, we feel that the metadata entry for your article submission,
62
[%dpTitle%], is still missing some relevant information.  Please read the
63
reviewer's comments below for any suggested additions and changes.  You are strongly
64
encouraged to go back and address these issues with your entry.  You can login,
65
edit, and resubmit your entry at @cgi-prefix@/register-dataset.cgi?stage=modify&cfg=esa&docid=[%docid%]. 
66

  
67
The Ecological Society of America
68

  
69
Reviewer's Notes:
70
[%comment%]
71

  
72
[% END %]
73
[% END %]
74

  
0 75

  
lib/style/common/templates/loginForm.tmpl
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Saurabh Garg
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for displaying metadata catalog tools
13
  *
14
  * This program is free software; you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation; either version 2 of the License, or
17
  * (at your option) any later version.
18
  *
19
  * This program is distributed in the hope that it will be useful,
20
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
  * GNU General Public License for more details.
23
  *
24
  * You should have received a copy of the GNU General Public License
25
  * along with this program; if not, write to the Free Software
26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
<html>
29
<head>
30
<title>Data Repository Login Form</title>
31
<link rel="stylesheet" href="@html-path@/style/default.css" type="text/css">
32
  <link rel="stylesheet" type="text/css" 
33
        href="@systemidserver@@style-skins-path@/[%cfg%]/[%cfg%].css"></link>
34
  <script language="JavaScript" type="text/JavaScript"
35
          src="@systemidserver@@style-skins-path@/[%cfg%]/[%cfg%].js"></script>
36
  <script language="JavaScript" type="text/JavaScript"
37
          src="@systemidserver@@style-common-path@/branding.js"></script>
38

  
39
  <script language="JavaScript" type="text/javascript">
40
  function submitform(formObj) {
41

  
42
  if (trim(formObj.elements["loginAction"].value)!="Login") return true;
43
  //trim username & passwd:
44
  var username = trim(formObj.elements["uid"].value);
45
  var organization  = trim(formObj.elements["organization"].value);
46
  var password      = trim(formObj.elements["password"].value);
47

  
48
  if (username=="") {
49
    alert("You must type a username. \n"+popupMsg);
50
        formObj.elements["uid"].focus();
51
    return false;
52
  }
53

  
54
  if (organization=="") {
55
    alert("You must select an organization. \n"+popupMsg);
56
        formObj.elements["organization"].focus();
57
    return false;
58
  }
59

  
60
  if (password=="") {
61
    alert("You must type a password. \n"+popupMsg);
62
        formObj.elements["password"].focus();
63
    return false;
64
  }
65

  
66
  formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org";
67
  return true;
68
}
69

  
70
function trim(stringToTrim) {
71
  return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
72
}
73

  
74
 </script>
75

  
76
</head>
77
<body>
78
      <script language="JavaScript">
79
          insertTemplateOpening();
80
          insertSearchBox();
81
      </script>
82
  <br />
83
  <menu>
84
<form method="post" action="@cgi-prefix@/register-dataset.cgi" onsubmit="return submitform(this);" >
85
    <input type="hidden" name="stage" value="login"> 
86
    <input type="hidden" name="username" value=""> 
87
    <input type="hidden" name="cfg" value="[%cfg%]"> 
88

  
89
    <table>
90
      <tr valign="middle">
91
        <td align="left" valign="middle" class="text_plain">
92
        Username:</td>
93

  
94
        <td width="173" align="left" class="text_plain" style=
95
        "padding-top: 2px; padding-bottom: 2px;"><input name="uid"
96
        type="text" style="width: 140px;" value=""></td>
97
      </tr>
98

  
99
      <tr valign="middle">
100
        <td height="28" align="left" valign="middle" class=
101
        "text_plain">Organization:</td>
102

  
103
        <td align="left" class="text_plain" style=
104
        "padding-top: 2px; padding-bottom: 2px;"><select name=
105
        "organization" style="width:140px;">
106
          <option value=""    selected>&#8212; choose one &#8212;</option>
107
          <option value="NCEAS"       >NCEAS</option>
108
          <option value="UCNRS"       >UCNRS</option>
109
          <option value="PISCO"       >PISCO</option>
110
          <option value="OBFS"        >OBFS</option>
111
          <option value="SDSC"        >SDSC</option>
112
          <option value="KU"          >KU</option>
113
          <option value="unaffiliated">unaffiliated</option>
114
        </select></td>
115
      </tr>
116

  
117
      <tr valign="middle">
118
        <td width="85" align="left" valign="middle" class=
119
        "text_plain">Password:</td>
120

  
121
        <td colspan="2" align="left" class="text_plain" style=
122
        "padding-top: 2px; padding-bottom: 2px;">
123
          <table width="100%" border="0" cellpadding="0"
124
          cellspacing="0">
125
            <tr>
126
              <td width="150" align="left"><input name="password"
127
              type="password" maxlength="50" style="width:140px;"
128
              value=""></td>
129

  
130
              <td align="center" class="buttonBG_login">
131
              <input type="submit" name="loginAction" value="Login"
132
              class="button_login"></td>
133

  
134
              <td align="left">&nbsp;</td>
135
            </tr>
136
          </table>
137
        </td>
138
      </tr>
139
    </table>
140
  </form>
141

  
142
  </menu>
143
  </li>
144
  <p>&nbsp;</p>
145
<script language="JavaScript">          
146
    insertTemplateClosing();
147
</script>
148
</body>
149
</html>
0 150

  

Also available in: Unified diff