[Dspace-tech] Simple Archive Format item directory names
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 -- Vika Zafrin Institutional Repository Librarian Boston University +1 617.358.6370 | http://open.bu.edu/ -- 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=124407151iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Simple Archive Format item directory names
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 -- Claudia Juergen Eldorado Technische Universität Dortmund Universitätsbibliothek Vogelpothsweg 76 44227 Dortmund Tel.: +49 231-755 40 43 Fax: +49 231-755 40 32 claudia.juer...@ub.tu-dortmund.de www.ub.tu-dortmund.de Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank. Unbeschadet der Korrespondenz per E-Mail sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen. Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax. -- 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=124407151iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Simple Archive Format item directory names
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=124407151iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Simple Archive Format item directory names
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 vzaf...@bu.edu 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=124407151iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net 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=124407151iu=/4140/ostg.clktrk___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette