This guide explains how to configure and manage embargo (temporary access restriction) on items in a DSpace 6.3 repository. Embargo allows bitstreams to remain inaccessible to the public until a specified future date.
Edit the main DSpace configuration file:
nano [dspace]/config/dspace.cfg
Add or confirm the following settings:
# Enable embargo feature
embargo.enabled = true
# Metadata fields
embargo.field.terms = dc.embargo.terms
embargo.field.lift = dc.date.available
# Default embargo plugins
plugin.named.org.dspace.embargo.EmbargoSetter = org.dspace.embargo.DefaultEmbargoSetter
plugin.named.org.dspace.embargo.EmbargoLifter = org.dspace.embargo.DefaultEmbargoLifter
Save and close the file.
To allow users to enter embargo dates during submission, edit:
nano [dspace]/config/input-forms.xml
In the <form name="traditional"> section, add this field:
<field>
<dc-schema>dc</dc-schema>
<dc-element>date</dc-element>
<dc-qualifier>available</dc-qualifier>
<label>Embargo Lift Date</label>
<input-type>date</input-type>
<hint>Enter the date after which this item will become publicly accessible</hint>
<required>no</required>
</field>
Restart Tomcat to apply changes:
sudo systemctl restart tomcat7
During submission:
When an embargo date is set:
You can run the embargo-lifter manually or schedule it.
Run manually:
[dspace]/bin/dspace embargo-lifter
Automate with Cron: Edit crontab:
crontab -e
Add this line to run daily at 2 AM:
0 2 * * * /home/dspace/dspace/bin/dspace embargo-lifter >> /home/dspace/embargo.log 2>&1
After the embargo date passes, run:
[dspace]/bin/dspace embargo-lifter