Hi Phil:

You would not have to rebuild at all, since the DayTable code is already 
included in the base DSpace. It is a simple reconfiguration:

(1) Change the setter property in dspace.cfg:

plugin.single.org.dspace.embargo.EmbargoSetter = 
org.dspace.embargo.DefaultEmbargoSetter

Change the value on the right to:

org.dspace.embargo.DayTableEmbargoSetter


(2) Add a new property in dspace.cfg, which will define the table of values:

embargo.terms.days =  my first terms:90, my second terms: 180

where you can put any language you want for 'my first terms', which will be 
interpreted by the embargo code as equal to the number of days after the ':' 
(30, 60, 365, etc any thing you want).
You can define any number of terms.

(3) If you are using the web submission for ingesting content (as opposed to 
SWORD, batch etc), and you want the submitter to be able to choose from a 
drop-down list of embargo terms,
then you will also need to enable that in input_forms.xml. This roughly means 
defining a new 'value-pairs' element where the terms are the left, and the # of 
days are the right. See documentation
on configurable submission.

As to writing your own, you would need to describe what you want to accomplish 
in a little more detail before I could advise - you may only need a setter, not 
a lifer, etc

Hope this helps,

Richard R

On Oct 21, 2011, at 2:19 PM, Shafer, Philip wrote:

We are running Dspace 1.7.2 and using the DefaultEmbargoSetter and 
DefaultEmbargoLifter, how looking at the source it seems that the 
DayTableEmbargoSetter is more what we are looking for.  I'm curious if anyone 
has experience using this and can provide some rough instructions on setting up 
the DayTableEmbargoSetter?  Would I have to rebuild my dspace instance?

Can someone explain how I would go about writing custom embargo setter and 
lifter classes and deploying them to my instance?

Thanks,

Phil


-------------------------
Philip Shafer
Web Developer
Rowan University
Library Services
Ph: 856-256-4418
E-mail: [email protected]<mailto:[email protected]>
<ATT00001..c><ATT00002..c>

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to