Project

General

Profile

« Previous | Next » 

Revision 2170

Added by Duane Costa over 20 years ago

Improvements to Harvester registration form

View differences:

src/edu/ucsb/nceas/metacat/harvesterClient/HarvesterRegistration.java
86 86
   * Checks validity of user input values.
87 87
   * 
88 88
   * @param out             the PrintWriter output object
89
   * @param documentListURL the Harvest Document List URL specified by the user
89
   * @param documentListURL the Harvest List URL specified by the user
90 90
   * @param updateFrequency the Harvest Frequency specified by the user
91 91
   * @return validValues    true if all values are valid, else false
92 92
   */
......
96 96
                             ) {
97 97
    boolean validValues = true;
98 98

  
99
    // Check validity of the Harvest Document List URL field    
99
    // Check validity of the Harvest List URL field    
100 100
    if (documentListURL.equals("")) {
101 101
      out.println(
102
              "A value must be specified in the Harvest Document List URL field"
102
              "A value must be specified in the Harvest List URL field"
103 103
                 );
104 104
      validValues = false;
105 105
    }
......
138 138
   * @param conn            the Connection
139 139
   * @param siteScheduleID  the primary key for the table
140 140
   * @param contactEmail    contact email address of the site user
141
   * @param documentListURL the URL of the harvester document list at the site
141
   * @param documentListURL the URL of the harvest list at the site
142 142
   * @param ldapDN          the site user's LDAP DN
143 143
   * @param ldapPwd         the site user's LDAP password
144 144
   * @param unit            the update frequency unit, e.g. "days", "weeks"
......
251 251
   * @param conn            the Connection
252 252
   * @param siteScheduleID  the primary key for the table
253 253
   * @param contactEmail    contact email address of the site user
254
   * @param documentListURL the URL of the harvester document list at the site
254
   * @param documentListURL the URL of the harvest list at the site
255 255
   * @param ldapDN          the site user's LDAP DN
256 256
   * @param ldapPwd         the site user's LDAP password
257 257
   * @param unit            the update frequency unit, e.g. "days", "weeks"
......
417 417
    out.println("<BODY>");
418 418
    out.println("<H2><B>Metacat Harvester Registration</B></H2>");
419 419
    out.println("<FORM METHOD=POST>");   // posts to itself
420
    out.println("Fill out the form below to schedule regular harvests of EML ");
421
    out.println("documents from your site.<BR>");
420 422
    out.println("To register or changes values, enter all values ");
421
    out.println("below and click <B>Register</B>.<BR>");
423
    out.println("below and click <B>Register</B>. ");
422 424
    out.println("To unregister, simply click <B>Unregister</B>.<BR>");
423
    out.println("<BR><BR>");
424
    out.println("<pre>Email address:             </pre>");
425
    out.println("<INPUT TYPE=TEXT NAME=contactEmail VALUE=");
425
    out.println("<table>");
426
    out.println("<tr>");
427
    out.println("<td>");
428
    out.println("Email address:");
429
    out.println("</td>");
430
    out.println("<td>");
431
    out.println("<INPUT TYPE=TEXT NAME=contactEmail SIZE=40 VALUE=");
426 432
    out.println(contactEmail + ">");
427
    out.println("<BR><BR>");
428
    out.println("<pre>Harvest Document List URL: </pre>");
429
    out.println("<INPUT TYPE=TEXT NAME=documentListURL VALUE=");
433
    out.println("</td>");
434
    out.println("</tr>");
435
    out.println("<tr>");
436
    out.println("<td>");
437
    out.println("Harvest List URL:");
438
    out.println("</td>");
439
    out.println("<td>");
440
    out.println("<INPUT TYPE=TEXT NAME=documentListURL SIZE=40 VALUE=");
430 441
    out.println(documentListURL + ">");
431
    out.println("<BR><BR>");
432
    out.println("<pre>Harvest Frequency (1-99):  </pre>");
442
    out.println("</td>");
443
    out.println("</tr>");
444
    out.println("<tr>");
445
    out.println("<td>");
446
    out.println("Harvest Frequency (1-99):");
447
    out.println("</td>");
448
    out.println("<td>");
433 449
    out.println("<INPUT TYPE=TEXT NAME=updateFrequency ");
434 450
    out.println("MAXLENGTH=2 SIZE=2 VALUE=");
435 451
    out.println(updateFrequency + ">");
436
    out.println("<BR><BR>");
437
    out.println("<pre>Unit:                      </pre>");
452
    out.println("</td>");
453
    out.println("</tr>");
454
    out.println("<tr>");
455
    out.println("<td>");
456
    out.println("Unit:");
457
    out.println("</td>");
458
    out.println("<td>");
438 459
    out.println("<INPUT TYPE=RADIO ");
439 460
    if (unit.equals("days")) out.println("CHECKED ");
440 461
    out.println("NAME=unit VALUE=days>day(s)");
......
444 465
    out.println("<INPUT TYPE=RADIO ");
445 466
    if (unit.equals("months")) out.println("CHECKED ");
446 467
    out.println("NAME=unit VALUE=months>month(s)");
447
    out.println("<BR><BR><BR>");
468
    out.println("</td>");
469
    out.println("</tr>");
470
    out.println("<tr></tr>");
471
    out.println("<tr>");
472
    out.println("<td>");
448 473
    out.println("<INPUT TYPE=SUBMIT NAME=register VALUE=Register>");
449 474
    out.println("<INPUT TYPE=SUBMIT NAME=unregister VALUE=Unregister>");
475
    out.println("</td>");
476
    out.println("<td>");
477
    out.println("</td>");
478
    out.println("</tr>");
479
    out.println("</table>");
450 480
    out.println("</BODY>");
451 481
    out.println("</HTML>");
452 482
  }
......
759 789
                            ) {
760 790
    out.println("Harvester registration updated for " + ldapDN);
761 791
    out.println("  Email Address:             " + contactEmail);
762
    out.println("  Harvest Document List URL: " + documentListURL);
792
    out.println("  Harvest List URL:          " + documentListURL);
763 793
    out.println("  Harvest Frequency:         " + updateFrequency);
764 794
    out.println("  Unit:                      " + unit);
765 795
    out.println("");

Also available in: Unified diff