Re: [Dspace-tech] How to set up scripts and parameters in launcher.xml in DSpace 1.7.1

2011-06-22 Thread Thornton, Susan M. (LARC-B702)[LITES]
Actually what I’m looking for is confirmation that the following is correct 
under the new and proper way to set up a script with parameters in launcher.xml 
in DSpace 1.7.1:



command

nameimport/name

descriptionImport items into DSpace/description

step passuserargs=true  
 ßDo I need the ‘passuserargs=”true”’ or is this only if you are 
going to specify addt’l

classorg.dspace.app.itemimport.ItemImport/class 
  parameters when the script is executed, like “./dspace import -t” 
(test)

   argument-a/argument

   
argument-e=susan.m.thorn...@nasa.gov/argumentmailto:-e=susan.m.thorn...@nasa.gov%3c/argument

   argument-c=2121/39071/argument

   argument-s=/dspace/tmp/imported/articles/argument

   
argument-m=/dspace/outfiles/imports/20090326_Articles.map/argument

   
argument/dspace/outfiles/imports/20090326_Articles.out/argument   ß Is 
this the correct place to put this?  I’m trying to write the output

/step 
   from the script 
execution into a file.

/command



Perhaps some detailed documentation could be provided in the Users’ Manual?  J

Thanks,

Sue





Sue Walker-Thornton

Software Developer/Database Administrator

NASA Langley Research Center|LITES Contract

(757) 224-4074





From: mdigg...@gmail.com [mailto:mdigg...@gmail.com] On Behalf Of Mark Diggory
Sent: Tuesday, June 21, 2011 7:49 PM
To: Stuart Lewis
Cc: Thornton, Susan M. (LARC-B702)[LITES]; dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] How to set up scripts and parameters in launcher.xml 
in DSpace 1.7.1



Seems like your just asking for



./dspace import --add 
--eperson=susan.m.thorn...@nasa.govmailto:susan.m.thorn...@nasa.gov 
--collection=2121/39071 --source=/dspace/tmp/imported/articles

--mapfile=/dspace/outfiles/imports/20090326_Articles.map  
/dspace/outfiles/imports/20090326_Articles.out



Mark



On Tue, Jun 21, 2011 at 2:27 PM, Stuart Lewis 
s.le...@auckland.ac.nzmailto:s.le...@auckland.ac.nz wrote:

Hi Sue,

Have you tried using the argument options?

  command
   namestat-general/name
   descriptionCompile the general statistics/description
   step passuserargs=false
   classorg.dspace.app.statistics.CreateStatReport/class
   argument-r/argument
   argumentstat-general/argument
   /step
   /command

You should be able to pass in command line options, and state whether or not 
you allow further parameters to be passed from the user calling the script.

Thanks,


Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928tel:%2B64%20%280%299%20373%207599%20x81928




On 22/06/2011, at 4:47 AM, Thornton, Susan M. (LARC-B702)[LITES] wrote:

 Can someone please give me an example of how you would set up the execution 
 of a script, for example “import”, in /dspace/config/launcher.xml?  The 
 software comes delivered with the following:

 command
 nameimport/name
 descriptionImport items into DSpace/description
 step
 classorg.dspace.app.itemimport.ItemImport/class
 /step
 /command

 Here is the command line from our “import” script in DSpace 1.5.1:

 ./dsrun org.dspace.app.itemimport.ItemImport --add 
 --eperson=susan.m.thorn...@nasa.govmailto:susan.m.thorn...@nasa.gov 
 --collection=2121/39071 --source=/dspace/tmp/imported/articles
 --mapfile=/dspace/outfiles/imports/20090326_Articles.map  
 /dspace/outfiles/imports/20090326_Articles.out
 How do I set all this up in launcher.xml?

 Note also that I am writing the output of the script into 
 /dspace/outfiles/imports/20090326_Articles.out.  How do I do this in 
 launcher.xml?

 Thanks in advance,
 Sue


 Sue Walker-Thornton
 Software Developer/Database Administrator
 NASA Langley Research Center|LITES Contract
 SGT, Inc.|130 Research Drive
 Hampton, Va.  23666
 Office: (757) 224-4074tel:%28757%29%20224-4074
 Mobile: (757) 506-9903tel:%28757%29%20506-9903
 Fax: (757) 224-4001tel:%28757%29%20224-4001
 susan.m.thorn...@nasa.govmailto:susan.m.thorn...@nasa.gov


 --
 EditLive Enterprise is the world's most technically advanced content
 authoring tool. Experience the power of Track Changes, Inline Image
 Editing and ensure content is compliant with Accessibility Checking.
 http://p.sf.net/sfu/ephox-dev2dev___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.netmailto:DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech




[Dspace-tech] How to set up scripts and parameters in launcher.xml in DSpace 1.7.1

2011-06-21 Thread Thornton, Susan M. (LARC-B702)[LITES]
Can someone please give me an example of how you would set up the execution of 
a script, for example “import”, in /dspace/config/launcher.xml?  The software 
comes delivered with the following:



command

nameimport/name

descriptionImport items into DSpace/description

step

classorg.dspace.app.itemimport.ItemImport/class

/step

/command



Here is the command line from our “import” script in DSpace 1.5.1:



./dsrun org.dspace.app.itemimport.ItemImport --add 
--eperson=susan.m.thorn...@nasa.gov --collection=2121/39071 
--source=/dspace/tmp/imported/articles

--mapfile=/dspace/outfiles/imports/20090326_Articles.map  
/dspace/outfiles/imports/20090326_Articles.out

How do I set all this up in launcher.xml?



Note also that I am writing the output of the script into 
/dspace/outfiles/imports/20090326_Articles.out.  How do I do this in 
launcher.xml?



Thanks in advance,

Sue





Sue Walker-Thornton

Software Developer/Database Administrator

NASA Langley Research Center|LITES Contract

SGT, Inc.|130 Research Drive

Hampton, Va.  23666

Office: (757) 224-4074

Mobile: (757) 506-9903

Fax: (757) 224-4001

susan.m.thorn...@nasa.gov



--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] How to set up scripts and parameters in launcher.xml in DSpace 1.7.1

2011-06-21 Thread Stuart Lewis
Hi Sue,

Have you tried using the argument options?

   command
namestat-general/name
descriptionCompile the general statistics/description
step passuserargs=false
classorg.dspace.app.statistics.CreateStatReport/class
argument-r/argument
argumentstat-general/argument
/step
/command

You should be able to pass in command line options, and state whether or not 
you allow further parameters to be passed from the user calling the script.

Thanks,


Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928



On 22/06/2011, at 4:47 AM, Thornton, Susan M. (LARC-B702)[LITES] wrote:

 Can someone please give me an example of how you would set up the execution 
 of a script, for example “import”, in /dspace/config/launcher.xml?  The 
 software comes delivered with the following:
  
 command
 nameimport/name
 descriptionImport items into DSpace/description
 step
 classorg.dspace.app.itemimport.ItemImport/class
 /step
 /command
  
 Here is the command line from our “import” script in DSpace 1.5.1:
  
 ./dsrun org.dspace.app.itemimport.ItemImport --add 
 --eperson=susan.m.thorn...@nasa.gov --collection=2121/39071 
 --source=/dspace/tmp/imported/articles
 --mapfile=/dspace/outfiles/imports/20090326_Articles.map  
 /dspace/outfiles/imports/20090326_Articles.out
 How do I set all this up in launcher.xml?
  
 Note also that I am writing the output of the script into 
 /dspace/outfiles/imports/20090326_Articles.out.  How do I do this in 
 launcher.xml?
  
 Thanks in advance,
 Sue
  
  
 Sue Walker-Thornton
 Software Developer/Database Administrator
 NASA Langley Research Center|LITES Contract
 SGT, Inc.|130 Research Drive
 Hampton, Va.  23666
 Office: (757) 224-4074
 Mobile: (757) 506-9903
 Fax: (757) 224-4001
 susan.m.thorn...@nasa.gov
  
 --
 EditLive Enterprise is the world's most technically advanced content
 authoring tool. Experience the power of Track Changes, Inline Image
 Editing and ensure content is compliant with Accessibility Checking.
 http://p.sf.net/sfu/ephox-dev2dev___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech



--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] How to set up scripts and parameters in launcher.xml in DSpace 1.7.1

2011-06-21 Thread Mark Diggory
Seems like your just asking for

./dspace import *--add* *--eperson*=susan.m.thorn...@nasa.gov *--collection*
=2121/39071 *--source*=/dspace/tmp/imported/articles

*--mapfile*=/dspace/outfiles/imports/20090326_Articles.map 
/dspace/outfiles/imports/20090326_Articles.out

Mark

On Tue, Jun 21, 2011 at 2:27 PM, Stuart Lewis s.le...@auckland.ac.nzwrote:

 Hi Sue,

 Have you tried using the argument options?

   command
namestat-general/name
descriptionCompile the general statistics/description
step passuserargs=false
classorg.dspace.app.statistics.CreateStatReport/class
argument-r/argument
argumentstat-general/argument
/step
/command

 You should be able to pass in command line options, and state whether or
 not you allow further parameters to be passed from the user calling the
 script.

 Thanks,


 Stuart Lewis
 Digital Development Manager
 Te Tumu Herenga The University of Auckland Library
 Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
 Ph: +64 (0)9 373 7599 x81928



 On 22/06/2011, at 4:47 AM, Thornton, Susan M. (LARC-B702)[LITES] wrote:

  Can someone please give me an example of how you would set up the
 execution of a script, for example “import”, in /dspace/config/launcher.xml?
  The software comes delivered with the following:
 
  command
  nameimport/name
  descriptionImport items into DSpace/description
  step
  classorg.dspace.app.itemimport.ItemImport/class
  /step
  /command
 
  Here is the command line from our “import” script in DSpace 1.5.1:
 
  ./dsrun org.dspace.app.itemimport.ItemImport --add --eperson=
 susan.m.thorn...@nasa.gov --collection=2121/39071
 --source=/dspace/tmp/imported/articles
  --mapfile=/dspace/outfiles/imports/20090326_Articles.map 
 /dspace/outfiles/imports/20090326_Articles.out
  How do I set all this up in launcher.xml?
 
  Note also that I am writing the output of the script into
 /dspace/outfiles/imports/20090326_Articles.out.  How do I do this in
 launcher.xml?
 
  Thanks in advance,
  Sue
 
 
  Sue Walker-Thornton
  Software Developer/Database Administrator
  NASA Langley Research Center|LITES Contract
  SGT, Inc.|130 Research Drive
  Hampton, Va.  23666
  Office: (757) 224-4074
  Mobile: (757) 506-9903
  Fax: (757) 224-4001
  susan.m.thorn...@nasa.gov
 
 
 --
  EditLive Enterprise is the world's most technically advanced content
  authoring tool. Experience the power of Track Changes, Inline Image
  Editing and ensure content is compliant with Accessibility Checking.
 
 http://p.sf.net/sfu/ephox-dev2dev___
  DSpace-tech mailing list
  DSpace-tech@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/dspace-tech




 --
 EditLive Enterprise is the world's most technically advanced content
 authoring tool. Experience the power of Track Changes, Inline Image
 Editing and ensure content is compliant with Accessibility Checking.
 http://p.sf.net/sfu/ephox-dev2dev
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech




-- 
Mark R. Diggory
@mire - www.atmire.com
2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010
Esperantolaan 4 - Heverlee 3001 - Belgium
--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech