Attachment: DayTableEmbargoSetter.class
Description: DayTableEmbargoSetter.class


Attachment: DayTableEmbargoSetter.java
Description: DayTableEmbargoSetter.java


Hi Jason:

I haven't tested it, but here's a setter that might do what you want. I include 
both the source and class files (just put the latter in your classpath to try 
it out).

To set it up do the following:
(1) add a property in dspace.cfg

embargo.terms.days = 6 months:182,1 year:365, 2 years:730

(you can use any language you want on the left-hand side: '6 months' can be 
'ProQuest min' or whatever, it is the number of days after the ':' that matters)

(2) In input_forms.xml, add a new 'value-pairs' element like:

<value-pairs value-pairs-name="UMI_embargo" dc-term="embargo">
     <pair>
       <displayed-value>6 months</displayed-value>
       <stored-value>6 months</stored-value>
     </pair>
     <pair>
       <displayed-value>1 year</displayed-value>
       <stored-value>1 year</stored-value>
      </pair>
     .....


Now, for whatever field you configured as embargo.field.terms, change it to use 
a 'dropdown' to that value-pair defined above.

Let me know if this works for you, and if so, we can include it in the next 
release, as an option for all.

Thanks,

Richard R


On May 3, 2010, at 11:27 AM, Jason Fowler wrote:

> Has anyone yet developed a custom Embargo setter for 1.6 that will mimic 
> UMI's embargo terms (6 months, 1 year, 2 years). If so, would you be willing 
> to share the code?
> 
> Thanks,
> Jason Fowler, CA, MSLS
> Archives and Special Collections Librarian
> The Southern Baptist Theological Seminary
> Vice President, ALABI
> [email protected]
> ------------------------------------------------------------------------------
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to