| Revision:

metacat / src / perl @ 3443

# Date Author Comment
3422 09/11/2007 03:53 PM walbridge

Added submission of data files to the registry. New parameter 'hasUpload' can be set on a per-skin basis to enable the uploading of data objects to be associated with a metadata document. NCEAS skin is using this by default, to be changed in the future for other skins....

3421 09/11/2007 03:48 PM walbridge

Added upload method. Modified sendData to respect form encodings and POST files.

3387 08/29/2007 05:30 PM Jing Tao

Getting project list from nceas admin db.

3386 08/28/2007 05:02 PM Jing Tao

fixed bug that input form coudn't be shown.

3292 06/04/2007 11:56 AM Jing Tao

Fixed bug that docid has no seperator in email.

3291 05/29/2007 03:11 PM Jing Tao

Remove the rule that the access allow rule should equals three.

3177 02/11/2007 05:22 PM Jing Tao

Replace die statement in the script

3175 02/09/2007 01:24 PM Jing Tao

Change the behavior if the ldap server is down. Now main server is down, a html will be sent back. If it is referral, it will ignore it.

2994 04/25/2006 03:37 PM sgarg

added function to get list of projects for NCEAS from a given project list

2972 04/03/2006 02:48 AM Matt Jones

dded TLS support to the ldapweb.cgi script, cleaned up some TempToolkit
template processing so that the results display CSS properly, and some minor
formatting issues. The TLS support should probably be enabled only if the
server supports it, which can be queried with supported_extensions, but for...

2894 01/19/2006 02:37 PM sgarg

variable for showing instructions

2869 12/16/2005 02:34 PM sgarg

added code to give access to moderator group on the review document

2864 12/16/2005 12:06 PM sgarg

Added template for getting the review

2859 12/16/2005 08:52 AM sgarg

Made changes so that the user is prompted to login before entering a dataset

2858 12/15/2005 04:49 PM sgarg

Added functionality for storing comments and displaying them. Also added functionality for reading the eml document.

2857 12/15/2005 04:46 PM sgarg

hardcoded the organization as unaffiliated

2847 12/15/2005 10:01 AM sgarg

bugfixes in previous code and added functionality to store reviews on various documents...

2846 12/15/2005 09:59 AM sgarg

Added setaccess method

2820 12/07/2005 02:14 PM Matt Jones

This is a basic commandline client for resolving LSIDs. It is meant as
a quick and dirty testing utility. It requires the SOAP::Lite,
SOAP::MIME, and MIME::Entity CPAN modules. Run without arguments, it
uses a default LSID and endpoint to resolve. WIth the lsid and endpoint...

2808 12/01/2005 02:08 PM sgarg

modified mod_revise so that Revision Requested is added to the document in additionalMetadata/moderatorComment which can be used by the skin in searching for documents which havnt been requested for revision

2801 12/01/2005 10:19 AM sgarg

Following changes:
1. Fixed a bug in checking of contact email address field
2. Added functions to display the result of accept, reject and revise actions
3. Added variable to control if the document creator should be the skin admin
4. a common function to check if the present user is a moderator

2800 12/01/2005 10:11 AM sgarg

Added new variables to the script which creates templates for new skins

2784 11/28/2005 04:50 PM sgarg

Some small bug fixes...

2783 11/28/2005 02:47 PM sgarg

New functions in the dataset registry to support moderation feature needed for ESA

2684 10/20/2005 11:42 AM sgarg

Modified the login method in the perl metacat client so that status of the user logging is also returned
Earlier if login info was not valid, 0 was returned. And 1 is sent back if login info was valid.

Now, if valid then following values are returned to indicate user status...

2675 10/13/2005 03:44 PM Matt Jones

Removed unused subroutines that were for testing.

2674 10/13/2005 03:43 PM Matt Jones

Adding the utility for failover montitoring. From

This program is designed to run as a script under the Hobbit system
monitoring program ( When Hobbit is
configured properly, this script will be called to make changes to the...

2645 10/04/2005 12:20 PM sgarg

If skin cfg specified access rights to be included for a certain set of users and groups, then those are entered in the access permissions given.

2644 10/04/2005 11:40 AM sgarg

Fix for bug 2220. And check the cfg file if the eml documents generated should be publically readable or not.

2638 10/04/2005 08:40 AM harris

Added a function to strip out the whitespace that was around the bounding
coordinates retrieved from metacat, and also now writing the full set of
bounding coordiantes (east,west,south,north).

2636 10/03/2005 03:15 PM sgarg

bug fix so that error is displayed if station or reserve is not selected

2615 09/30/2005 05:29 PM sgarg

Added code to enter publication date into the dataset.

2613 09/30/2005 04:03 PM sgarg

Fix for 2214. Allow 0 in coordinates now.

2612 09/30/2005 02:47 PM sgarg

Fix for bug 2215. Error message is displayed if project name is not selected in the nceas skin.

2601 09/28/2005 02:06 PM harris

Fixed a typo.

2565 09/07/2005 02:17 PM harris

Changed the headers.

2563 09/07/2005 02:03 PM harris

Filed used my the Metacat Spatial Option. Generally these files represent
the portion of the spatial option that harvests spatial elements from a
Metacat, and stores the elements as a shapefile on the file system. This
option, at this point, is pretty much independent of the metacat application....

2540 08/09/2005 10:29 AM sgarg

The template for displaying the error is not executed when passwords are not same. Hence the user doesnt know what the error was. Fixed this.

2499 04/19/2005 12:11 PM sgarg

Adding perl script for changing ldap password for an account.

2478 04/08/2005 01:34 PM sgarg

Modified the code so that lastid file is created in a skin when lastid file is not found.
Commented out the code which uses AdminDB module and uncommented the test function.

2432 03/29/2005 11:56 AM sgarg

Replaced Usage Constraints with Usage Rights and Data Originator with Dataset Owner.

(Commit done by Saurabh Garg for Veronique)

2416 03/16/2005 03:48 PM sgarg

Changes made in the css for the skins.

2415 03/16/2005 03:41 PM sgarg

Fixed some bugs from previous commits. Veronique changes the text of error messages. Added a new stage to distinguish errors because of logins.

2414 03/16/2005 03:37 PM sgarg

Added new actions so that error message is not shown the first time resetPassword and changePasswords are called. Also fixed a bug where $cfg was not being passed to genericHeader.tmpl

2403 03/08/2005 02:30 PM sgarg

Changed the code which handles Associated Party, Keywords and Taxonomic Information.

2362 01/07/2005 03:56 PM sgarg

Fix for bug# 1344

2348 12/21/2004 03:04 PM sgarg

Added code to fix bug 1323. % sign is replaced by its http equivalent now

2345 12/21/2004 10:54 AM sgarg

Added code to fix bug# 1344. Response template is called when cancel delete is pressed.

2341 12/20/2004 04:02 PM sgarg

Integrating ldapweb.cgi & into metacat CVS tree.

2334 12/16/2004 02:33 PM sgarg

Fixed bug #1551 by adding a conditional statement.

2333 12/16/2004 02:07 PM sgarg

Made changes to fix bug# 1310. Now while parsing old documents, the script checks for ACLs also.

2280 09/15/2004 02:00 PM sgarg

Fixed a bug in creation of EML documents when coordinates from the site_list have to be used.

2258 08/28/2004 03:25 AM Matt Jones

Modifications to the registry to support the new ESA skin. Factored out some of
the configuration-specific code into properties that are set in the various
cfg files in the skins. New properties in the cfg files are lsite, usite,
showSiteList, showWgList, showOrganization. These now need to be set in every skin...

2234 07/26/2004 05:49 PM sgarg

Changed path for eml xsd stylesheet

2223 07/22/2004 02:31 PM sgarg

Made change in the registry so that new documents produced are of eml-2.0.1 standard.
Also made changes in create-registry folder

2172 05/18/2004 02:25 PM sgarg

Adding a new perl script. Running this script creates a new skin.

2152 04/30/2004 08:27 PM sgarg

Fixed bug# 1309. Also put a regex check on ending year and beginning year.

2151 04/30/2004 07:28 PM sgarg

Made changes to fix bug # 1365.

2149 04/30/2004 07:06 PM sgarg

Made changes to fix bug# 1303 and 1367.(Both are related)
Following variables can now be specifieD from the cfg file to control behaviour of the skin: hasKeyword, hasMethod, hasSpatial, hasTaxonomic and hasTemporal. Following two also can be used: spatialRequired and temporalRequired

2148 04/30/2004 11:09 AM sgarg

Made changes to fix bug# 1303 and 1367.(Both are related) - corresponding changes need to be made in tmpl file and testing needs to be done before bugs can be closed.

2144 04/29/2004 11:16 AM sgarg

Made changes to fix 1301. Works fine with eml2 - need to check if works with emlbeta6.

2138 04/26/2004 04:46 PM sgarg

Made changes to control whether a skin wants to use keywords or not. Keywords probably will be used by all skins alsways. But similar changes can be made for Geographic Coverage or Temporal COverage to control whether a particular section of the insert data template needs to be shown or not. This can be controlled from .cfg file. For example, in nceas.cfg is you define hasKeyword = false, none of the templates will show the keyword part. (Unless, you are using NCEAS skin and you try to modify a document which already has keywords.)

2137 04/26/2004 02:59 PM sgarg

Removed beta6 specific code which is no longer being used.

2136 04/26/2004 02:29 PM sgarg

Removed repetition of code. Also fixed the link to the modified file submitted from responseTemplate

2115 04/09/2004 04:12 PM sgarg

Perl script for transfering documents from one metacat to another metacat. list_of_docids contains list of names of the documents that will be transfered.

2057 03/22/2004 10:37 AM sgarg

Fixed a bug which doesn't occur everytime. The bug occurs when lastid in (cfg).lastid is not unique. i.e. there is already a document in the server which has same docid. The earlier algorithm was:

while(not unique){
get accession number;
update accession number written in document; (BUG)...

2056 03/22/2004 08:43 AM sgarg

Added extra parameters (cfg & docid) to be passed on to generic response screen.

2049 03/16/2004 06:57 PM sgarg

made changes so that organization name for the site or project is entered before
any other creater.

2042 03/09/2004 03:59 PM sgarg

fixed a bug in reloading of kewords from an eml file for edit-datapackage form.

2038 03/06/2004 11:51 PM Matt Jones

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.

2037 02/27/2004 03:21 PM sgarg

Added subroutine for replacing characters that might create problem in HTML.
Specifically written for "being used in any text field. This create a
problem in confirmData template, when you specify input name value pair with value
having a " in it.

2032 02/20/2004 04:45 PM sgarg

Made changes so that & and other characters dont mess up the url that is passed to metacat.

2029 02/11/2004 01:08 PM sgarg

Mixed a bug reported by Rick and Dan. The form inserted a organizationName tag with no value. This happened only in NCEAS as the tag was included from the drop down site list which doesnot exsist in NCEAS version. Hence, a empty tag was inserted in the eml document.

2028 02/10/2004 06:13 PM sgarg

Bug 1301 - changes made for a repeatable add keyword button

2024 02/10/2004 09:37 AM sgarg

Made changes to fix bug# 1326. The templateVar are now passed on to the responseTemplate also in case of error - so that it can show a link which will send all the values back to register-dataset.

2015 02/05/2004 04:36 PM sgarg

Did editing to support changes mentioned in bug 1295

2005 01/12/2004 06:37 PM Matt Jones

Fixed hardcoded admin account so that it works with more than just OBFS

2003 01/12/2004 05:44 PM Matt Jones

Fixed registry bug involving a string comparison (used numeric
equality instead of string equality).

2000 01/08/2004 06:57 PM Matt Jones

Removed unneeded Net::LDAP dependency. Now all authentication occurs
indirectly through Metacat.

1999 01/08/2004 06:48 PM Matt Jones

Added skin for the UCNRS data registry based on earlier work. Minor
modifications to the templates to accomodate this. Fixed a validation
bug in the register-dataset.cgi, and removed an unnecessary Net::LDAP
login as well because the authentication is handled by metacat.

1997 01/08/2004 08:31 AM Matt Jones

Fixed validation check for samplingDescription.

1993 01/07/2004 03:13 PM Matt Jones

Changes to re-enable the nceas admindb access for the production install.

1992 01/07/2004 11:07 AM Matt Jones

Removed some debugging test code that isn't needed.

1989 01/06/2004 06:41 PM Matt Jones

Added studyExtent and samplingDescription fields to the registry to accomodate
Sandy's request for a temporalDescription field. This is a little more than
she wanted, but it was needed to satisfy EML minimum requirements.

1985 12/29/2003 01:57 PM Matt Jones

Added taxonomic coverage and authority fields, and fixed a bug in reentry
with the methods fields. Now we are collecting information on all of the
additional fields Sandy requested except for a general temporal description,
which doesn't fit neatly in EML. Will need to consider how to accomodate...

1984 12/23/2003 06:22 PM Matt Jones

Added the ability to describe taxonomicCoverage to the registry. This
allows an arbitrary number of species or other taxa to be listed, and the
editing form can dynamically grow through a simple javascript approach
(also used in Methods). Need to test thoroughly, and need to test on...

1983 12/23/2003 12:15 PM Matt Jones

Added geographic description to the fields of data collected, as it is
a required field and was being improperly defaulted to an empty string in the
XML document. This is a new field for all registries.

1982 12/23/2003 11:27 AM Matt Jones

Modifications to add "Methods" collection to the data registry, and to
make the forms HTML 4.0.1 valid (in an attempt to figure out some of
the rendering and layout oddities I'm seeing).

1980 12/19/2003 04:49 PM Matt Jones

New formatting and text for the NCEAS data registry.

1979 12/19/2003 04:12 PM Matt Jones

Further changes to the registry scripts to support the NCEAS registry
with access to the project list fromthe admindb. Also, fixed a bug with
the script where creators were getting duplicated in the editing process

1977 12/18/2003 05:08 PM Matt Jones

Modifications that allow working group entries to be put in as creators, and
a whole bunch of re-formatting for horribly formatted code that I need to
read to finish this thing up.

1975 12/18/2003 01:45 AM Matt Jones

Updated registry further for NCEAS-specific needs. Confirm data template
now handles new wg field. Still need to write WG metadata into EML document.

1974 12/17/2003 05:37 PM Matt Jones

Additional work on the NCEAS/AdminDB integration. Working Groups now
presented as a dropdown box for multiple selection. Need to write the
info to the XML file now and handle it in confirmation template.

1973 12/17/2003 02:58 PM Matt Jones

Preliminary changes to support the NCEAS data registry connection to the
AdminDB to retrieve project lists.

1955 12/09/2003 11:42 PM Matt Jones

Updates that allow registry script to update the lastid field more efficiently
by calling the metacat 'getlastdocid' function for a given scope. Also some
debugging support added, and a bug where the error message was inproperly
saved across calls to metacat, resulting in spurious error messages.

1953 12/05/2003 07:01 PM Matt Jones

Added new function "getLastId" to the perl Metacat client. Returns
the hisghest docid in use in a given scope.

1936 11/24/2003 10:44 AM Matt Jones

Remove email notification from registry script.

1929 11/21/2003 03:05 PM brooke

This is the merge from the branch WEB_UI_REDESIGN_BRANCH back into the head.
The only files that have been removed are those in lib/style/eml2; other files
that have been cvs removed (only from lib/ and lib/style) have been re-added
elsewhere (i.e. moved from one directory to another)....