[Dspace-tech] Need Help for Dspace Rest API

2011-06-01 Thread dhaivat dave
Hi,

I am trying to get the data from dspace using REST Api...I am able to GET
Data related communities,Collection and so on..
But when i am trying to create new Collection using POST Data it gives me
syntax error on tomcat...
I am using the following page as guidance..
https://wiki.duraspace.org/display/DSPACE/REST+API#RESTAPI-rcodes

Can you have an idea about how do i post data for creating the collection or
community...?

Thanks

Dhaivat Dave
--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Need Help for Dspace Rest API

2011-06-01 Thread Bojan Suzic
Hi Dave,

can you post the detailed request you have made? Are you using json or xml?

Bojan


 I am trying to get the data from dspace using REST Api...I am able to
 GET Data related communities,Collection and so on..
 But when i am trying to create new Collection using POST Data it gives
 me syntax error on tomcat...
 I am using the following page as guidance..
 https://wiki.duraspace.org/display/DSPACE/REST+API#RESTAPI-rcodes

 Can you have an idea about how do i post data for creating the
 collection or community...?

 Thanks

 Dhaivat Dave


--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Need Help for Dspace Rest API

2011-06-01 Thread dhaivat dave
Hi Bojan,

I am using Xml ..i have attached a java file which sends the request to REST
API and get the response ...


Dhaivat


RestTest.java
Description: Binary data
--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Need Help for Dspace Rest API

2011-06-01 Thread Bojan Suzic

Hi Dhaivat,

I tested it now, there is no input to the script provided. Only xml and 
json are supported.
Later in the day I will try to provide an example how to make a post/put 
request.

Regards
Bojan


 I am using Xml ..i have attached a java file which sends the request to
 REST API and get the response ...


 Dhaivat


--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Looking for XMLUI translations

2011-06-01 Thread Alexandre Magaz Graça
Hello,

I'm looking for the Catalan translation for XMLUI but I can't find it. 
The documentation[1] doesn't point to any place to download them, the 
wiki[2] suggests to check out the full DSpace SVN only to get the 
language packs (!) or to get them from the SourceForge download section, 
but I can only see old JSPUI Messages.properties there.

Please, could someone point me to the right place?

[1] 
http://www.dspace.org/1_7_1Documentation/XMLUI%20Configuration%20and%20Customization.html#XMLUIConfigurationandCustomization-MultilingualSupport
[2] 
https://wiki.duraspace.org/display/DSPACE/I18nSupport#I18nSupport-LanguagepacksnowstoredandmanagedinSVN

Thanks,
Àlex

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Need Help for Dspace Rest API

2011-06-01 Thread Peter Dietz
Also,

The test code is expecting a HTTP 200 (OK) result for everything. Thats fine
for a GET, but when you create something 201 (Created) is the usual
response. So you can either make the test smarter so that when you create
something it expects a 201, or to not throw errors for anything 20x.
Peter Dietz



On Wed, Jun 1, 2011 at 5:16 AM, Bojan Suzic bojan.su...@gmail.com wrote:


 Hi Dhaivat,

 I tested it now, there is no input to the script provided. Only xml and
 json are supported.
 Later in the day I will try to provide an example how to make a post/put
 request.

 Regards
 Bojan


  I am using Xml ..i have attached a java file which sends the request to
  REST API and get the response ...
 
 
  Dhaivat



 --
 Simplify data backup and recovery for your virtual environment with
 vRanger.
 Installation's a snap, and flexible recovery options mean your data is
 safe,
 secure and there when you need it. Data protection magic?
 Nope - It's vRanger. Get your free trial download today.
 http://p.sf.net/sfu/quest-sfdev2dev
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Where should personalized themes live?

2011-06-01 Thread Jennifer Whitney
Hi Mark,

Most of what we've changed in existing aspects has been very straight-forward.  
I'm reluctant to add or customize essential information (contacts, feedback 
forms, help pages, etc.) in the theme layer.  I'd prefer this information to be 
available should we need to change themes or revert to a default.   Maybe 
that's over-cautious.

What's been more difficult is working out how to manage our local code.  
Threads like this  Mark W.' s point, in a previous reply, about pluggables 
being developed outside the DSpace tree  configured in as needed, have been 
helpful -- we're relatively new to DSpace  have limited experience with Java.  

We haven't yet upgraded to 1.7 but I don't anticipate much grief, since our 
mods are simple  can be added back in as/where needed, post-upgrade, to the 
broken-out browse  search components. 

Thanks again,

Jen Whitney
Electronic Text Centre, UNB Libraries
University of New Brunswick
jwhit...@unb.ca

On 2011-05-31, at 2:50 PM, Mark Diggory wrote:

 Jennifer,
 
 On Mon, May 30, 2011 at 8:17 AM, Jennifer Whitney jwhit...@unb.ca wrote:
 Bit late to the party but I thought I'd share our approach for keeping XMLUI 
 customizations separated from DSpace source.  Recipe #1 has worked well for 
 us, so far, when we've needed to modify 1.6.2: 
 
 https://wiki.duraspace.org/display/DSPACE/BuildCookbook
 
 So, for example, we've cloned the vanilla ArtifactBrowser aspect in our 
 project:
 
 myrepo-xmlui/myrepo-xmlui-api/src/main/resources/aspects/MyArtifactBrowser
 
 ... and modified the sitemap.xmap, as needed, to point to classes in our 
 projects, which mirror the structures of DSpace projects in the source 
 release.  We add dependencies on our projects to the relevant POMs, build  
 deploy as usual.   
 
 Yes, this is fine.  We do it as well (and as MarkW points out, this project 
 can live outside the dspace/modules directory), we generally make that 
 division when dealing with packaging more that one dspace instance off the 
 same addon codebase, for instance in a consortia setting, where the same set 
 of features need to be deployed on multiple dspaces, but there need to also 
 be local customizations maintained to each instance (dspace/modules/...) as 
 well.
 
  what would be interesting is to analyze how upgrades now impact your work.  
 For instance, I can say we've been reworking parts of the ArtifactBrowser 
 aspect to break out the Browse and Search Components and to make it possible 
 to truly drop either of those two features in favor of turning on Discovery. 
 Has this impacted your addon?  Ideally, it shouldn't have.
 
 Likewise, I would be curious about what were the changes you sought out to do 
 to ArtifactBrowser, knowing what those look like would inform us as to how to 
 improve the parts of the codebase that can be replaced locally in the manner 
 you are doing.
  
 
 I think, since we're working in our own projects, that we'd avoid the kind of 
 Maven repository contamination discussed below (something that didn't occur 
 to me, previously).
 
 You wouldn't need to worry about it because you are releasing your 
 customizations as your own addon to DSpace. Well done.
 
 Best,
 Mark
  
 -- 
 Mark R. Diggory
 @mire - www.atmire.com
 2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010
 Esperantolaan 4 - Heverlee 3001 - Belgium

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Solr stats and XMLUI

2011-06-01 Thread George S Kozak
Hi...

I have written to the group in the past about 2 particular problems: my Solr 
Statistics not working right and using the XMLUI interface not working 
properly...in particular the Home page would not display.

I just wanted to report that these problems now appear to be fixed.   We just 
upgraded to DSpace 1.7.1 and I upgraded Tomcat to 7.0.14 and the problems that 
I had with DSpace 1.6.2 running under Tomcat 5.5.26 have gone away.

My message here is that if you are having problems with Solr or with the XMLUI, 
I think you might consider upgrading the latest Tomcat.


--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Bitstream Description in Batch import

2011-06-01 Thread Joseph
New Related question.
On the web interface you can specify a thumbnail for a bitstream.
Can you specify this in the contents file...for multiple bitstreams?

For example, in the contents file we have the following
bitstream1
bitstream1_thumb
bistream2
bistream2_thumb

I noticed that in the METS.xml for an item with a bitstream:bitstream_thumb
pair, there is something called a GroupID
And I believe this is how the two files are paired.
Is there any way to specify this?  Is it implied when you have consecutive
entries, where one is in the CONTENT bundle and the other is in the
THUMBNAIL?
I haven't seen anything to indicate this but I could have missed it.

Thanks Again,
Joseph



On Wed, May 25, 2011 at 14:29, Stuart Lewis s.le...@auckland.ac.nz wrote:

 Hi Joseph,

  I know you can add a description to a bitstream when you upload it
 through the XMLUI
  Can you do this when you do a batch upload using the CLI?
  dspace import

 Try adding :

  - \tdescription: my description

 Other options are \tpermissions: and \tprimary:true

  Also,
  dspace import -h
  shows an option -z for a zip file.
  The Documentation doesn't describe how to use this option, (or mention
 it)
 
 http://www.dspace.org/1_7_1Documentation/System%20Administration.html#SystemAdministration-ItemImporterandExporter
  Does anyone have experience using this option?

 If you perform an export via the web user interface, it downloads as a zip
 file.  There is also a 'give this to me as a zip file' option in the CLI
 exporter.

 Inside the zip file is the normal import structure or directories 1.. / 2..
 / 3.. etc, each with metadata files and content files.  The zip option makes
 it easier to import these without first unzipping them.

 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


--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] problem with google docs viewer

2011-06-01 Thread Nemiz, Elvi S.
Hello Peter,

I followed your instructions in
https://wiki.duraspace.org/display/DSPACE/Document+Preview+with+Google+Docs+viewer.
Pdf links are working when I tested it on http://docs.google.com/viewer. Is
it normal that the file name is not included? Maybe my urls were improperly
encoded? or how can I include file name. I checked that the bitstream ID was
grabbed properly. In our repository for example,
http://repository.seafdec.org.ph/handle/123456789/38, the preview link
points to
http://docs.google.com/viewer?url=http://repository.seafdec.org.ph/bitstream/id/136embedded=trueand
it says Sorry, this type of document is not supported for viewing.
The
link to the bitstream is working properly when viewed at google docs:
http://docs.google.com/viewer?url=http://repository.seafdec.org.ph/bitstream/id/136/adsea91p024-031.pdf.
The only difference that I can see is that the filename is not included in
the url in our dspace instance. Please help. Thanks and regards.
-- 
Sincerely,
Elvi S. Nemiz
Information Assistant
Library and Data Bank Services Section
Training and Information Division
SEAFDEC Aquaculture Department
Tigbauan, Iloilo
Philippines
--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Looking for XMLUI translations

2011-06-01 Thread paulo



  Hi Alexandre

  you can find the language translations for xmluj at:

  http://dspace-sandbox.googlecode.com/svn/modules

  and I think you can configure catalan in dspace.cfg so it will be  
included in the webapp


  I hope it helps

  Paulo

  - Mensagem de alexandre.ma...@udl.cat -
    Data: Wed, 01 Jun 2011 11:52:59 +0200
    De: Alexandre Magaz Graça alexandre.ma...@udl.cat
Endereço para Resposta (Reply-To): Alexandre Magaz Graça  
alexandre.ma...@udl.cat

Assunto: [Dspace-tech] Looking for XMLUI translations
      Para: Dspace Tech dspace-tech@lists.sourceforge.net


Hello,

I'm looking for the Catalan translation for XMLUI but I can't find it.
The documentation[1] doesn't point to any place to download them, the
wiki[2] suggests to check out the full DSpace SVN only to get the
language packs (!) or to get them from the SourceForge download section,
but I can only see old JSPUI Messages.properties there.

Please, could someone point me to the right place?

[1]
http://www.dspace.org/1_7_1Documentation/XMLUI%20Configuration%20and%20Customization.html#XMLUIConfigurationandCustomization-MultilingualSupport
[2]
https://wiki.duraspace.org/display/DSPACE/I18nSupport#I18nSupport-LanguagepacksnowstoredandmanagedinSVN

Thanks,
Àlex

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech



- Final da mensagem de alexandre.ma...@udl.cat -


--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] problem with google docs viewer

2011-06-01 Thread Peter Dietz
Hi Elvi,

For JSPUI implementation I was including the bitstream's filename, and
forgot to add the same for xmlui's implementation.

Google says format not recognized because it doesn't know what file:
.../id/136 is, but it does know what something.pdf is.
I added a dummy value for a PDF, and it will load the file, it didn't even
have to match the real file name.
https://docs.google.com/viewer?url=http://repository.seafdec.org.ph/bitstream/id/136/blank.pdfembedded=true

So, to get your viewer working quick-and-dirty, you could change the line:


xsl:textamp;embedded=true/xsl:text

to


xsl:text/something.pdfamp;embedded=true/xsl:text


And it would work.

However, for a normal system, you should use some xsl to use the real
filename, and properly url-encode it to remove spaces and such.


Peter Dietz



On Wed, Jun 1, 2011 at 10:44 PM, Nemiz, Elvi S. esne...@seafdec.org.phwrote:

 Hello Peter,

 I followed your instructions in
 https://wiki.duraspace.org/display/DSPACE/Document+Preview+with+Google+Docs+viewer.
 Pdf links are working when I tested it on http://docs.google.com/viewer.
 Is it normal that the file name is not included? Maybe my urls were
 improperly encoded? or how can I include file name. I checked that the
 bitstream ID was grabbed properly. In our repository for example,
 http://repository.seafdec.org.ph/handle/123456789/38, the preview link
 points to
 http://docs.google.com/viewer?url=http://repository.seafdec.org.ph/bitstream/id/136embedded=trueand
  it says Sorry, this type of document is not supported for viewing. The
 link to the bitstream is working properly when viewed at google docs:
 http://docs.google.com/viewer?url=http://repository.seafdec.org.ph/bitstream/id/136/adsea91p024-031.pdf.
 The only difference that I can see is that the filename is not included in
 the url in our dspace instance. Please help. Thanks and regards.
 --
 Sincerely,
 Elvi S. Nemiz
 Information Assistant
 Library and Data Bank Services Section
 Training and Information Division
 SEAFDEC Aquaculture Department
 Tigbauan, Iloilo
 Philippines

--
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Installation on a NAS box

2011-06-01 Thread Srijan Deshpande
Hi,

I'm new to this list and to DSpace. I work for a small independent audio 
archive in Mumbai, India and I'm doing some research about DSpace for our 
soon-to-begin digitization project.

I need to know whether DSpace can be directly installed on this NAS box: 
http://www.netgear.com/home/products/storage/work-and-play/RNDU6000.aspx

The idea is to have DSpace installed on this NAS box so that the repository can 
be accessed by the other terminals that are on our office network. Is this 
possible?

Thanks,
Srijan Deshpande --
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech