Amit, You could take the approach you described to submit an item to DSpace from another webapp.
You could also use the DSpace SWORD server to submit an Item and its metadata in a zip package using the SWORD protocol: There are great tutorials on using the SWORD protocol on the SWORD website at: http://swordapp.org/the-sword-course/ DSpace supports the SWORD protocol. Information on setting up the DSpace SWORD server is in our documentation at: https://wiki.duraspace.org/display/DSDOC18/SWORDv1+Server But, again, it is up to you how you wish to submit items to DSpace. You are welcome to generate the "Simple Archive Format" packages (with the dublin_core.xml metadata) if you find that to be easier. SWORD is just a more 'standard' way of submitting content to a repository, and many other repositories (not just DSpace) also support SWORD. - Tim On 4/12/2012 7:23 AM, Shanu Jha wrote: > Hi, > > Please let me know is that the correct approach to submit the item(From > other web apps): > > 1. Getting matadat through form. > 2. creating dublin_core.xml using form data. > 3. uploading files in a location. > 4. calling import class from struts action. > > Please suggest if there is other way to accomplish this. > > Amit > > > > > > On Thu, Apr 12, 2012 at 5:16 PM, helix84 <[email protected] > <mailto:[email protected]>> wrote: > > On Thu, Apr 12, 2012 at 12:37, Shanu Jha <[email protected] > <mailto:[email protected]>> wrote: > > I am using import class to submit items.Is there any way by which > I can get > > the handle for last submitted item? > > One way to get the gandle is to generate a mapfile when calling the > importer, which is a text file containg your handle (see > [dspace]/bin/dspace import -h). > > If you want to get the handle from within the ItemImport class, I > believe you can find the handles in the dircontents array in the > addItems() method. But don't take my word for it, I don't use this > importer. > > Regards, > ~~helix84 > > > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > > > > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

