Nada,
There could be a few different strategies to enforce this:
1.) Write a Consumer that would map the item to the other collection when
it is archived after workflow.
2.) Use Configurable Workflow and write a non-interactive step that would
map the item to the collection
3.) Write a CurationTask that would automatically map the Item to the
collection, associate it with a legacy workflow step for the collection.
In all three cases, you'll need create a class in java and write the code
to complete the mapping.
The basic code for mapping would look something like:
* Context context = ...;*
* int itemID = ...;*
* int collectionID = ...;*
* Collection toCollection = Collection.find(context,collectionID);*
* Item item = Item.find(context, itemID);*
* if (!Arrays.asList(item.getCollections()).contains(toCollection))*
* {*
* toCollection.addItem(item);*
* }*
* context.commit();*
Regards,
Mark
On Sun, Nov 30, 2014 at 3:36 AM, Nada Abo-Eita <[email protected]> wrote:
>
>
> Hi all,
>
> Is it possible to map items in DSpace automatically. What I mean, If a
> user submit item into collection A, can dspace map this item into another
> collection (B) automatically, without the need to do that manually?
>
> Regards,
> Nada Abo-Eita
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
[image: @mire Inc.]
*Mark Diggory*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
http://www.atmire.com
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette