Re: [Dspace-tech] How to develop manually for importing an item to collection

2014-12-02 Thread Terry Brady
I included an echo of the my "dspace import" parameters.  I did not include
"dspace" in the echo.

In your contents file, try using "bundle:ORIGINAL" instead of "Bundle:
ORIGINAL".

Terry

On Tue, Dec 2, 2014 at 8:58 AM, P.Hadadan (NW) 
wrote:

> Dears,
>
>
>
> Unfortunately I can’t import any Item L.
>
>
>
> After unsuccessful importing, I do linux Dspace (ubuntu 14.04 LTS,Postgre)
> fresh installation and try it.
>
> Command:
>
>  /dspace/bin/dspace import -a -e knitosp...@gmail.com -c 123456789/8826
> -s /home/administrator/dspace-ingest -m
> /home/administrator/dspace-ingest/Importlog
>
>
>
> Log:
>
> Destination collections:
>
> Owning  Collection: import collection
>
> Adding items from directory: /home/administrator/dspace-ingest
>
> Generating mapfile: /home/administrator/dspace-ingest/Importlog
>
> Started: 1417525165741
>
> Ended: 1417525165941
>
> Elapsed time: 0 secs (200 msecs)
>
>
>
> The line after Generating mapfile… did not appear ! mapfile also is empty
> (size:0). The importing folder attached.
>
>
>
> Terry, Your command did not start by dspace why? What is your dspace
> version? I use dspace-4.2-src-release.
>
>
>
> How to develop manually for importing an item to collection?
>
>
>
>
>
>
>
> *From:* Terry Brady [mailto:terry.br...@georgetown.edu]
> *Sent:* Wednesday, November 26, 2014 7:44 PM
> *To:* P.Hadadan (NW)
> *Subject:* Re: [Dspace-tech] Importing command did not work
>
>
>
> Here are my results (excluding PubMed metadata).  Since I do not have the
> PubMed schema registered, I could not load that file.  I believe you will
> want to name it metadata_PubMed.xml.
>
>
>
> Command: import -a -e terry.br...@georgetown.edu -c 10822.1/707103 -s 
> /var/data/dspace/dspace-ingest/article3 -m 
> /var/www/batch-tools/mapfile/20141125_12.22.51
>
> Destination collections:
>
> Owning  Collection: 2014 October Terry
>
> Adding items from directory: /var/data/dspace/dspace-ingest/article3
>
> Generating mapfile: /var/www/batch-tools/mapfile/20141125_12.22.51
>
> Adding item from directory article
>
> Loading dublin core from 
> /var/data/dspace/dspace-ingest/article3/article/dublin_core.xml
>
> Schema: dc Element: title Qualifier: none Value: Amirkabir 
> International Journal of Electrical _ Electronics Engineering
>
> Schema: dc Element: date Qualifier: issued Value: 2009
>
> Processing contents file: 
> /var/data/dspace/dspace-ingest/article3/article/contents
>
> Bitstream: A Fast Localization and Feature Extract_.pdf  Bundle: 
> ORIGINAL
>
> Bitstream: A Fast Localization and Feature Extract_.xml  Bundle: 
> ORIGINAL
>
> Processing handle file: handle
>
> It appears there is no handle file -- generating one
>
> 0 article
>
>
>
> Here is my ingest folder structure...
>
>
>
> [dspace@dspace-dev-1 ~]$ find /var/data/dspace/dspace-ingest/article3 -type f 
> -p
>
> rint
>
> /var/data/dspace/dspace-ingest/article3/article/A Fast Localization and 
> Feature Extract_.pdf
>
> /var/data/dspace/dspace-ingest/article3/article/A Fast Localization and 
> Feature Extract_.xml
>
> /var/data/dspace/dspace-ingest/article3/article/contents
>
> /var/data/dspace/dspace-ingest/article3/article/dublin_core.xml
>
> I hope this helps.  Once you get one item to load, the rest are very easy!
>
>
>
> Terry
>
>
>
> On Wed, Nov 26, 2014 at 6:09 AM, P.Hadadan (NW) 
> wrote:
>
> By following this step, unfortunately my problem did not solved. Mapfile
> also is empty.
>
> I work on Dspace version 4.2 . how to resolve problem without any log?
> Requires certain settings? Are you using below command?
>
> dspace import --add --eperson=a...@b.com --collection=123456789/74
> --source=c:\Temp\article --mapfile=c:\Impoort
>
> the metadata_[PubMed].xml file contain metadata base on registered schema (
> http://www.ncbi.nlm.nih.gov/corehtml/query/static/PubMed.dtd) for
> concurrent importing, not for add to repository.My reference is
> https://wiki.duraspace.org/display/DSDOC4x/Importing+and+Exporting+Items+via+Simple+Archive+Format
>
>
>
> *From:* Terry Brady [mailto:terry.br...@georgetown.edu]
> *Sent:* Tuesday, November 25, 2014 9:00 PM
> *To:* P.Hadadan (NW); dspace-tech@lists.sourceforge.net
>
>
> *Subject:* Re: [Dspace-tech] Importing command did not work
>
>
>
> I realized that I did not CC the list on my last reply.  I am including
> the list.
>
>
>
> Looking at your sample zip file, I was able to add the item to my test
> repository by making the following changes.
>
>
>
> 1. rename contents.txt to contents
>
> 2. for each line in the contents file, add bundle:ORIGINAL
>
> 3. Make sure that you upload the items in a containing folder (one folder
> per item to be added)
>
> 4. Eliminate the metadata_[PubMed].xml file unless you intend to add it to
> the repository (in which case you will need to add it to contents)
>
>
>
> A Fast Localization and Feature Extract_.pdf bundle:ORIGINAL
>
> A Fast Localization and Feature Extract_.xml bundle:ORIGINAL
>
>
>
> Terr

Re: [Dspace-tech] How to develop manually for importing an item to collection

2014-12-02 Thread Pottinger, Hardy J.
Hi, just to add to Claudia's response, you don't have to "go it alone" when 
creating this SAF (Simple Archive Format) structure, there are several very 
nice tools to make this task much easier. Here are two, but I'm sure there are 
more:

http://georgetown-university-libraries.github.io/File-Analyzer/
https://github.com/peterdietz/SAFBuilder
File-Analyzer  is very handy if you're in need of a desktop application to help 
you visualize the process, SAFBuilder is a good fit if you're already in the 
habit of using CSV files for working with metadata.

--Hardy

From: Claudia Jürgen [claudia.juer...@ub.tu-dortmund.de]
Sent: Tuesday, December 02, 2014 8:54 AM
To: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] How to develop manually for importing an item to 
collection

Hello,

the item importer expects a certain structure for the source (-s) to be
imported. The source specified must contain one directory per item. Your
/home/administrator/dspace-ingest contains the files belonging to a
single import item.

e.g. just create
/home/administrator/dspace-ingest/001
and move the files contained in
/home/administrator/dspace-ingest to
/home/administrator/dspace-ingest/001

Then run the command as you've listed it below an it should work.

Hope this helps

Claudia Jürgen


Am 02.12.2014 um 14:58 schrieb P.Hadadan (NW):
> Dears,
>
> Unfortunately I can’t import any Item ☹.
>
> After unsuccessful importing, I do linux Dspace (ubuntu 14.04 LTS,Postgre) 
> fresh installation and try it.
> Command:
>   /dspace/bin/dspace import -a -e knitosp...@gmail.com -c 123456789/8826 -s 
> /home/administrator/dspace-ingest -m 
> /home/administrator/dspace-ingest/Importlog
>
> Log:
> Destination collections:
> Owning  Collection: import collection
> Adding items from directory: /home/administrator/dspace-ingest
> Generating mapfile: /home/administrator/dspace-ingest/Importlog
> Started: 1417525165741
> Ended: 1417525165941
> Elapsed time: 0 secs (200 msecs)
>
> The line after Generating mapfile… did not appear ! mapfile also is empty 
> (size:0). The importing folder attached.
>
> Terry, Your command did not start by dspace why? What is your dspace version? 
> I use dspace-4.2-src-release.
>
> How to develop manually for importing an item to collection?
>
>
>
> From: Terry Brady [mailto:terry.br...@georgetown.edu]
> Sent: Wednesday, November 26, 2014 7:44 PM
> To: P.Hadadan (NW)
> Subject: Re: [Dspace-tech] Importing command did not work
>
> Here are my results (excluding PubMed metadata).  Since I do not have the 
> PubMed schema registered, I could not load that file.  I believe you will 
> want to name it metadata_PubMed.xml.
>
>
> Command: import -a -e 
> terry.br...@georgetown.edu<mailto:terry.br...@georgetown.edu> -c 
> 10822.1/707103 -s /var/data/dspace/dspace-ingest/article3 -m 
> /var/www/batch-tools/mapfile/20141125_12.22.51
>
> Destination collections:
>
> Owning  Collection: 2014 October Terry
>
> Adding items from directory: /var/data/dspace/dspace-ingest/article3
>
> Generating mapfile: /var/www/batch-tools/mapfile/20141125_12.22.51
>
> Adding item from directory article
>
>  Loading dublin core from 
> /var/data/dspace/dspace-ingest/article3/article/dublin_core.xml
>
>  Schema: dc Element: title Qualifier: none Value: Amirkabir 
> International Journal of Electrical _ Electronics Engineering
>
>  Schema: dc Element: date Qualifier: issued Value: 2009
>
>  Processing contents file: 
> /var/data/dspace/dspace-ingest/article3/article/contents
>
>  Bitstream: A Fast Localization and Feature Extract_.pdf  Bundle: 
> ORIGINAL
>
>  Bitstream: A Fast Localization and Feature Extract_.xml  Bundle: 
> ORIGINAL
>
> Processing handle file: handle
>
> It appears there is no handle file -- generating one
>
> 0 article
>
>
>
> Here is my ingest folder structure...
>
>
>
> [dspace@dspace-dev-1 ~]$ find /var/data/dspace/dspace-ingest/article3 -type f 
> -p
>
> rint
>
> /var/data/dspace/dspace-ingest/article3/article/A Fast Localization and 
> Feature Extract_.pdf
>
> /var/data/dspace/dspace-ingest/article3/article/A Fast Localization and 
> Feature Extract_.xml
>
> /var/data/dspace/dspace-ingest/article3/article/contents
>
> /var/data/dspace/dspace-ingest/article3/article/dublin_core.xml
> I hope this helps.  Once you get one item to load, the rest are very easy!
>
> Terry
>
> On Wed, Nov 26, 2014 at 6:09 AM, P.Hadadan (NW) 
> mailto:p.hada...@notionwave.com>> wrote:
> By following this step, unfortunately my problem did not solved. Mapfile also

Re: [Dspace-tech] How to develop manually for importing an item to collection

2014-12-02 Thread Claudia Jürgen
Hello,

the item importer expects a certain structure for the source (-s) to be 
imported. The source specified must contain one directory per item. Your 
/home/administrator/dspace-ingest contains the files belonging to a 
single import item.

e.g. just create
/home/administrator/dspace-ingest/001
and move the files contained in
/home/administrator/dspace-ingest to
/home/administrator/dspace-ingest/001

Then run the command as you've listed it below an it should work.

Hope this helps

Claudia Jürgen


Am 02.12.2014 um 14:58 schrieb P.Hadadan (NW):
> Dears,
>
> Unfortunately I can’t import any Item ☹.
>
> After unsuccessful importing, I do linux Dspace (ubuntu 14.04 LTS,Postgre) 
> fresh installation and try it.
> Command:
>   /dspace/bin/dspace import -a -e knitosp...@gmail.com -c 123456789/8826 -s 
> /home/administrator/dspace-ingest -m 
> /home/administrator/dspace-ingest/Importlog
>
> Log:
> Destination collections:
> Owning  Collection: import collection
> Adding items from directory: /home/administrator/dspace-ingest
> Generating mapfile: /home/administrator/dspace-ingest/Importlog
> Started: 1417525165741
> Ended: 1417525165941
> Elapsed time: 0 secs (200 msecs)
>
> The line after Generating mapfile… did not appear ! mapfile also is empty 
> (size:0). The importing folder attached.
>
> Terry, Your command did not start by dspace why? What is your dspace version? 
> I use dspace-4.2-src-release.
>
> How to develop manually for importing an item to collection?
>
>
>
> From: Terry Brady [mailto:terry.br...@georgetown.edu]
> Sent: Wednesday, November 26, 2014 7:44 PM
> To: P.Hadadan (NW)
> Subject: Re: [Dspace-tech] Importing command did not work
>
> Here are my results (excluding PubMed metadata).  Since I do not have the 
> PubMed schema registered, I could not load that file.  I believe you will 
> want to name it metadata_PubMed.xml.
>
>
> Command: import -a -e 
> terry.br...@georgetown.edu -c 
> 10822.1/707103 -s /var/data/dspace/dspace-ingest/article3 -m 
> /var/www/batch-tools/mapfile/20141125_12.22.51
>
> Destination collections:
>
> Owning  Collection: 2014 October Terry
>
> Adding items from directory: /var/data/dspace/dspace-ingest/article3
>
> Generating mapfile: /var/www/batch-tools/mapfile/20141125_12.22.51
>
> Adding item from directory article
>
>  Loading dublin core from 
> /var/data/dspace/dspace-ingest/article3/article/dublin_core.xml
>
>  Schema: dc Element: title Qualifier: none Value: Amirkabir 
> International Journal of Electrical _ Electronics Engineering
>
>  Schema: dc Element: date Qualifier: issued Value: 2009
>
>  Processing contents file: 
> /var/data/dspace/dspace-ingest/article3/article/contents
>
>  Bitstream: A Fast Localization and Feature Extract_.pdf  Bundle: 
> ORIGINAL
>
>  Bitstream: A Fast Localization and Feature Extract_.xml  Bundle: 
> ORIGINAL
>
> Processing handle file: handle
>
> It appears there is no handle file -- generating one
>
> 0 article
>
>
>
> Here is my ingest folder structure...
>
>
>
> [dspace@dspace-dev-1 ~]$ find /var/data/dspace/dspace-ingest/article3 -type f 
> -p
>
> rint
>
> /var/data/dspace/dspace-ingest/article3/article/A Fast Localization and 
> Feature Extract_.pdf
>
> /var/data/dspace/dspace-ingest/article3/article/A Fast Localization and 
> Feature Extract_.xml
>
> /var/data/dspace/dspace-ingest/article3/article/contents
>
> /var/data/dspace/dspace-ingest/article3/article/dublin_core.xml
> I hope this helps.  Once you get one item to load, the rest are very easy!
>
> Terry
>
> On Wed, Nov 26, 2014 at 6:09 AM, P.Hadadan (NW) 
> mailto:p.hada...@notionwave.com>> wrote:
> By following this step, unfortunately my problem did not solved. Mapfile also 
> is empty.
> I work on Dspace version 4.2 . how to resolve problem without any log? 
> Requires certain settings? Are you using below command?
> dspace import --add --eperson=a...@b.com 
> --collection=123456789/74 --source=c:\Temp\article --mapfile=c:\Impoort
> the metadata_[PubMed].xml file contain metadata base on registered schema 
> (http://www.ncbi.nlm.nih.gov/corehtml/query/static/PubMed.dtd) for concurrent 
> importing, not for add to repository.My reference is 
> https://wiki.duraspace.org/display/DSDOC4x/Importing+and+Exporting+Items+via+Simple+Archive+Format
>
> From: Terry Brady 
> [mailto:terry.br...@georgetown.edu]
> Sent: Tuesday, November 25, 2014 9:00 PM
> To: P.Hadadan (NW); 
> dspace-tech@lists.sourceforge.net
>
> Subject: Re: [Dspace-tech] Importing command did not work
>
> I realized that I did not CC the list on my last reply.  I am including the 
> list.
>
> Looking at your sample zip file, I was able to add the item to my test 
> repository by making the following changes.
>
> 1. rename contents.txt to contents
> 2. for each line in the contents file, add bundle:ORIGINAL
> 3. Mak