Project

General

Profile

« Previous | Next » 

Revision 2038

Minor changes to allow the registry to work in the knb skin, mainly in
how to treat the 'site' field. Now it is a free-text organization
field in the KNB skin. Need to test, install this on ecoinfo and link it
into the KNB web pages.

View differences:

lib/style/skins/knb/knb.css
196 196
.searchresultsdivider {
197 197
    background-color: #dddddd;   
198 198
}
199

  
200
/**
201
 *  these are used only in the registry skins
202
 */
203
p.searchbox {
204
    color: #0040A1;
205
    font-weight: bold;
206
    font-size: 12px; 
207
    text-decoration: none; 
208
}
209

  
210
br {
211
    margin: 0px;
212
    padding: 0px;
213
}
214

  
215
textarea {
216
   width: 80%;
217
}
218

  
219
.required {
220
    font-weight: bold;
221
    color: red;
222
}
223

  
224
.label {
225
    font-weight: bold;
226
}
lib/style/skins/knb/knb.cfg
1
#
2
# General configuration parameters
3
#
4
metacatUrl = http://@server@@servlet-path@
5
username = uid=knbadmin,o=NCEAS,dc=ecoinformatics,dc=org
6
password = your-pw-goes-here
7
ldapUrl=@ldapUrl@
8
defaultScope = knb
9
organization = Knowledge Network for Biocomplexity
10
orgabbrev = KNB
11
orgurl = http://knb.ecoinformatics.org/
12
responseTemplate = @responseForm@
13
entryFormTemplate = @entryForm@
14
guideTemplate = @guide@
15
confirmDataTemplate = @confirmData@
16
deleteDataTemplate = @deleteData@
17
accesspubid = -//ecoinformatics.org//eml-access-2.0.0beta6//EN
18
accesssysid = eml-access.dtd
19
datasetpubid = eml://ecoinformatics.org/eml-dataset-2.0.0
20
datasetsysid = eml-dataset.dtd
21
mailhost = hyperion.nceas.ucsb.edu
22
sender = KNB Data Registry <help@nceas.ucsb.edu>
23
recipient = help@nceas.ucsb.edu
24
adminname = the repository administrator
25
debug = 1
26
nceas_db = somedb
27
nceas_db_user = someuser
28
nceas_db_password = your-pw-goes-here
0 29

  
lib/style/common/templates/entryForm.tmpl
310 310
          </select>
311 311
          <span class="required">*</span><span class="label">[% usite %] Name</span></p>
312 312
[% END %]
313
        <p align="left">&nbsp;</p>
313 314
        <p align="left">
314 315
          <input type="TEXT" name="title" value="[%title%]" size="53">
315 316
          <span class="required">*</span><span class="label">Data Set Title</span></p>
......
334 335
            [% END %]
335 336
          </select>
336 337
[% END %]
338
[% IF cfg == 'knb' %]
339
        <p align="left">
340
          <input type="TEXT" name="site" size="40" value="[%site%]">
341
          <span class="required">*</span><span class="label">Organization Name</span>
342
        </p>
343
[% END %]
337 344
      </td>
338 345
    </tr>
339 346
  </table>
lib/style/common/templates/confirmData.tmpl
636 636
      If you don't remember your password, you can
637 637
      have it reset and emailed to you <a target="ldap"
638 638
      href="@cgi-prefix@/ldapweb.cgi?stage=resetpass&cfg=[% cfg %]">here.
639
      </a> If you want to change your password, click here <a target="ldap"
639
      </a> If you want to change your password, click <a target="ldap"
640 640
      href="@cgi-prefix@/ldapweb.cgi?stage=changepass&cfg=[% cfg %]">here.
641 641
      </a></font>
642 642
      <table cellspacing="0" border="0" cellpadding="9" width="360" bgcolor="#C6d6e7" align="left">
src/perl/register-dataset.cgi
1269 1269
            $creat .= "</creator>\n";
1270 1270
        }
1271 1271
    } else {
1272
	$creat .= "<creator>\n";
1273
	$creat .= "<organizationName>".normalize($FORM::site)."</organizationName>\n";
1274
	$creat .= "</creator>\n";
1272
	    $creat .= "<creator>\n";
1273
	    $creat .= "<organizationName>".normalize($FORM::site)."</organizationName>\n";
1274
	    $creat .= "</creator>\n";
1275 1275
    }
1276 1276

  
1277
    $creat .= "<creator>\n";
1278
    $creat .= "<organizationName>".normalize($organization)."</organizationName>\n";
1279
    $creat .= "</creator>\n";
1277
    if ($FORM::cfg ne 'knb') {
1278
        $creat .= "<creator>\n";
1279
        $creat .= "<organizationName>".normalize($organization)."</organizationName>\n";
1280
        $creat .= "</creator>\n";
1281
    }
1280 1282

  
1281 1283
    $doc .= $creat;
1282 1284
    $doc .= $metaP;

Also available in: Unified diff