how to change embargo startDateLimit to forever?

19 views
Skip to first unread message

Joanna Lee

unread,
Jun 12, 2024, 6:03:10 PMJun 12
to DSpace Technical Support
Hello all.

Can anyone provide guidance about how to change the startDateLimit value to forever to allow a permanent embargo? Would removing that line remove the restriction? Or is it better to put something like +999MONTHS? 

In a previous version of DSpace, you could use the string "forever" to put a permanent embargo in place. Is there still a way to do that?

    <bean id="embargoed" class="org.dspace.submit.model.AccessConditionOption">

        <property name="groupName" value="Anonymous"/>

        <property name="name" value="embargo"/>

        <property name="hasStartDate" value="true"/>

        <property name="startDateLimit" value="+36MONTHS"/>

        <property name="hasEndDate" value="false"/>

    </bean>

Thanks!

Joanna

DSpace Technical Support

unread,
Jun 25, 2024, 3:43:38 PM (4 days ago) Jun 25
to DSpace Technical Support
Hi Joanna,

I just checked the code, and I don't see a way to set a "forever" date limit at this time in DSpace 7.  However, you can set the value in *YEARS*.  So, you could set "startDateLimit" to something like "+999YEARS" if that's helpful.

It's also possible to *test out* various values to see what they would return based on the current date.  This must be done via the commandline, but the command is this:

./dspace dsrun org.dspace.util.DateMathParser +999YEARS

It'll return something like this:

Applied +999YEARS to implicit current time:  Wed Jun 25 19:42:48 UTC 3023

(I'll add that hint to the documentation as well)

Tim

Reply all
Reply to author
Forward
0 new messages