Difference between revisions of "SUNScholar/Embargo Systems"

From Libopedia
Jump to navigation Jump to search
m (1 revision)
(No difference)

Revision as of 10:54, 15 August 2010


In other words there are two methods of setting an embargo. You can specify fixed periods from the date of submission or you can specifiy a custom lift date. We choose the custom lift date method. There is something strange going on with the fixed period java code.

DSpace config settings

The following are our DSpace config settings.

#### Embargo Settings ####
# DC metadata field to hold the user-supplied embargo terms
embargo.field.terms = dc.embargo.terms
# DC metadata field to hold computed "lift date" of embargo
embargo.field.lift = dc.embargo.lift
# string in terms field to indicate indefinite embargo
embargo.terms.open = forever
# implementation of embargo setter plugin - replace with local implementation if applicable
plugin.single.org.dspace.embargo.EmbargoSetter = org.dspace.embargo.DefaultEmbargoSetter
# DC metadata field to hold computed "lift date" of embargo
#embargo.terms.days = None:0, 6 months:180, 1 year:365, 18 months:545, 2 years:730
# implementation of embargo lifter plugin - - replace with local implementation if applicable
plugin.single.org.dspace.embargo.EmbargoLifter = org.dspace.embargo.DefaultEmbargoLifter

Extra DSpace metadata fields

We added the following dc fields:


Modified input form

We modified the input.xml file in the source DSpace config folder:

<!-- The embargo terms input. Added by H Hgibson -->
         <label>Embargo Terms</label>
         <hint>If required, enter date in 'yyyy-mm-dd' format when the embargo expires or 'forever' if not.</hint>

So from the terms, the lift date is calculated by the embargo setter. But the terms and the lift date are the same using the custom method. This would not be true with the fixed period method. That is the reason for the confusion. We also tried the fixed period method and also added the following to the input.xml file.

<!-- Embargo terms for dropdown input. Added by H Gibson -->
	<value-pairs value-pairs-name="embargo_terms" dc-term="embargo.terms">
       <displayed-value>6 months</displayed-value>
       <stored-value>6 months</stored-value>
       <displayed-value>1 year</displayed-value>
       <stored-value>1 year</stored-value>
       <displayed-value>18 months</displayed-value>
       <stored-value>18 months</stored-value>
       <displayed-value>2 years</displayed-value>
       <stored-value>2 years</stored-value>

   <value-pairs value-pairs-name="absolute_valueUnit" dc-term="type">

They match the terms in #embargo.terms.days = None:0, 6 months:180, 1 year:365, 18 months:545, 2 years:730 in the DSpace config file.

Daily cron job

You must run the embargo lifter task periodically to check for Items with expired embargoes and lift them. It is a command-line application invoked with the command:

 /home/dspace/bin/dspace embargo-lifter

Run it with the --help option to get a list of options.