Hi Sarah,
At the UB (Universitat de Barcelona) we have modified the file
EmbargoManager.java to do what you suggest. We have Dspace 1.8 running.
The file is available at
dspace-1.x-src-release/dspace-api/src/main/java/org/dspace/embargo/EmbargoManager.java
At the section where there is the liftEmbargo instruction we have added a
couple of lines:
>>>> public static void liftEmbargo(Context context, Item item)
>>>> throws SQLException, AuthorizeException, IOException
>>>> {
>>>> init();
>>>> lifter.liftEmbargo(context, item);
>>>> item.clearMetadata(lift_schema, lift_element, lift_qualifier,
Item.ANY);
>>>>
>>>> // set the dc.date.available value to right now
>>>> item.clearMetadata(MetadataSchema.DC_SCHEMA, "date",
>>>> "available", Item.ANY);
>>>> item.addMetadata(MetadataSchema.DC_SCHEMA, "date",
>>>> "available", null, DCDate.getCurrent().toString());
>>>>
NEW LiNES ADDED:
>>>> // set the dc.rights.accessRights to right open
>>>> item.clearMetadata(MetadataSchema.DC_SCHEMA, "rights",
>>>> "accessRights" , Item.ANY);
>>>> item.addMetadata(MetadataSchema.DC_SCHEMA, "rights",
>>>> "accessRights", null, "info:eu-repo/semantics/openAccess");
>>>>
>>>>
>>>> log.info("Lifting embargo on Item "+item.getHandle());
>>>> item.update();
>>>> }
I hope it will help you,
Best
Ignasi Labastida
Universitat de Barcelona
2013/5/3 Sarah Potvin <[email protected]>
> Thank you for these very helpful responses!
>
> Has anyone linked embargo lift dates in the metadata to a change in the
> dc.rights field about the state of the embargo? I.e., is there the
> possibility of some mechanism whereby, after June 3, 2013, an item with a
> local.embargo.terms value of "2013-06-02" will shift its dc.rights value
> from "Embargoed Access" to "Open Access"?
>
> All best,
> Sarah
>
> Sarah Potvin
> Assistant Professor
> Metadata Librarian
> Digital Services & Scholarly Communication
> University Libraries
> Texas A&M University
> [email protected]
>
> Evans Library Annex 501K
> 5000 TAMU | College Station, TX 77843-5000 979.458.2662
>
>
>
>
>
>
>
> On 5/3/13 3:18 AM, "helix84" <[email protected]> wrote:
>
> >Hi Sarah,
> >
> >Leif Longva hit the nail right on the head metadata-wise. I wanted to
> >add that in the new OAI in DSpace 3.0, you could additionally make
> >different sets of your items accessible to different harvesters, e.g.
> >if the harvester is interested only in open access items, you could
> >expose only that set to that harverster by pointing it to a special
> >URL (context). These sets can be easily defined in terms of metadata
> >field values, so if you go ahead and use e.g. dc.rights =
> >info:eu-repo/semantics/openAccess, you could filter your items by this
> >field to create the open access set. In addition, contexts for Driver
> >and OpenAIRE are pre-defined out-of-the-box.
> >
> >I hope my explanation was understandable. In any case, here is the
> >official documentation:
> >https://wiki.duraspace.org/display/DSDOC3x/OAI+2.0+Server
> >
> >
> >Regards,
> >~~helix84
> >
> >Compulsory reading: DSpace Mailing List Etiquette
> >https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Dspace-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-general
>
>
> Aquest correu electrònic i els annexos poden contenir informació
> confidencial o protegida legalment i està adreçat exclusivament a la
> persona o entitat destinatària. Si no sou el destinatari final o la persona
> encarregada de rebre’l, no esteu autoritzat a llegir-lo, retenir-lo,
> modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si heu
> rebut aquest correu electrònic per error, us preguem que n’informeu al
> remitent i que elimineu del sistema el missatge i el material annex que
> pugui contenir. Gràcies per la vostra col·laboració.
>
> Este correo electrónico y sus anexos pueden contener información
> confidencial o legalmente protegida y está exclusivamente dirigido a la
> persona o entidad destinataria. Si usted no es el destinatario final o la
> persona encargada de recibirlo, no está autorizado a leerlo, retenerlo,
> modificarlo, distribuirlo, copiarlo ni a revelar su contenido. Si ha
> recibido este mensaje electrónico por error, le rogamos que informe al
> remitente y elimine del sistema el mensaje y el material anexo que pueda
> contener. Gracias por su colaboración.
>
> This email message and any documents attached to it may contain
> confidential or legally protected material and are intended solely for the
> use of the individual or organization to whom they are addressed. We remind
> you that if you are not the intended recipient of this email message or the
> person responsible for processing it, then you are not authorized to read,
> save, modify, send, copy or disclose any of its contents. If you have
> received this email message by mistake, we kindly ask you to inform the
> sender of this and to eliminate both the message and any attachments it
> carries from your account. Thank you for your collaboration.
>
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Dspace-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-general