Hi Vika,

I guess the "SimpleArchiveFormat" structure isn't too strict, or overly
defined, its simple after all.

As far as DSpace is concerned, it takes your Simple Archive Format (parent)
directory, and then iterates over the list of subfolders, processing each
folder as an Item. If your in to code:
https://github.com/DSpace/DSpace/blob/93fc28277e2414ffe8da4f9c5da453bc597104bc/dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java#L768


        String[] dircontents = d.list(directoryFilter);
        Arrays.sort(dircontents);
        for (int i = 0; i < dircontents.length; i++)
        {
            addItem(c, mycollections, sourceDir, dircontents[i],
mapOut, template);



So, they don't even have to be numbered, just unique (filesystem
requirement), but if your using a tool to generate the SAF package, a
simple way to make unique, is to increment a number.

You can find a description on SAFPackager (a tool I use to create
batch packages):
https://wiki.duraspace.org/display/DSPACE/Simple+Archive+Format+Packager
Official docs for DSpace Item Import (that uses a SAF Package):
https://wiki.duraspace.org/display/DSDOC4x/Importing+and+Exporting+Items+via+Simple+Archive+Format



Peter Dietz


On Thu, Feb 13, 2014 at 8:56 AM, Vika Zafrin <[email protected]> wrote:

> Thanks, Claudia! This is brilliant news. How do I make a request that
> this be made clear in the documentation? I've been batch uploading to
> DSpace for five years now, and didn't know this.
>
> -Vika
>
> --
> Vika Zafrin
> Institutional Repository Librarian
> Boston University
> +1 617.358.6370 | http://open.bu.edu/
>
>
> Claudia Jürgen wrote:
> > Hello Vika,
> >
> > this form was only choosen for illustration purpose. You need one
> > directory per item, that's all. How you name the directories is up to
> you.
> >
> > Hope this helps
> >
> > Claudia
> >
> >
> > Am 13.02.2014 14:15, schrieb Vika Zafrin:
> >> Hello list,
> >>
> >> Recently I batch-imported some items via the CLI without changing the
> >> item directory names to item_000, item_001, etc. This was a mistake, but
> >> to my great surprise, it worked.
> >>
> >> I've searched the archives and documentation, but can't actually come up
> >> with the answer to whether this is legitimately permissible. Is it? If
> >> yes, my map files become MUCH more useful. Was the convention item_000,
> >> item_001, etc adopted in the documentation for illustration purposes, or
> >> do I actually HAVE to name my item folders according to this scheme?
> >>
> >> Thanks,
> >> -Vika
> >>
> >
>
>
> ------------------------------------------------------------------------------
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience.  Start now.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&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
>
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&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

Reply via email to