[Dspace-tech] Custom Javascript in Structural.xsl

2009-02-04 Thread mikan.d.dspace listmail
Im trying to add some custom Javscript code for our DSpace 1.5
instances. The problem is though, that when compiling the source I get
SAX errors because of '' signs on Javascript code. Should I encode
the code somehow or how could I get around this?

The line that causes the problem is the following:

var addr = 'http://my.site.org/run?_render=json_callback=trythis';

org.xml.sax.SAXParseException: The reference to entity _render must
end with the ';' delimiter.
context:/file:/usr/local/jetty/jetty-6.1.12rc1/webapps/dikk/themes/TDS/./../dri2xhtml/structural.xsl
- 226:98

Cocoon stacktrace [hide]
The reference to entity _render must end with the ';' delimiter.
context:/file:/usr/local/jetty/jetty-6.1.12rc1/webapps/dikk/themes/TDS/./../dri2xhtml/structural.xsl
- 226:98

Thanks for any tips,
Mika

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Filtering OAI ListRecords

2009-02-04 Thread Mr Havercamp
I was hoping to retrieve records from DSpace via OAI that match a 
particular subject (dc.subject). I've reviewed the OAI documentation and 
was wondering if there is some way of doing this via ListRecords as 
there does not seem to be a SearchRecords or similar verb.

I can filter by set (i.e. collection handle) and using a start and end 
date but that seems to be it.

Is there any way to achieve this in DSpace's OAI implementation?

Any help much appreciated.


Hayden

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Filtering OAI ListRecords

2009-02-04 Thread Claudia Jürgen
Hi Hayden,

if you want to search, use SRW/U.

Hope that helps

Claudia Jürgen


Mr Havercamp schrieb:
 I was hoping to retrieve records from DSpace via OAI that match a 
 particular subject (dc.subject). I've reviewed the OAI documentation and 
 was wondering if there is some way of doing this via ListRecords as 
 there does not seem to be a SearchRecords or similar verb.
 
 I can filter by set (i.e. collection handle) and using a start and end 
 date but that seems to be it.
 
 Is there any way to achieve this in DSpace's OAI implementation?
 
 Any help much appreciated.
 
 
 Hayden
 
 --
 Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code to
 build responsive, highly engaging applications that combine the power of local
 resources and data with the reach of the web. Download the Adobe AIR SDK and
 Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Custom Javascript in Structural.xsl

2009-02-04 Thread mikan.d.dspace listmail
Thanks Adnreas,

This seems to fix the problem with '' signs etc. But now Im getting
the following Javascript errors.
This is strange since the same piece of code works fine in dummy HTML
page. Something seems to go wrong when adding JS to XSL. What am I
missing here?

missing ) after for-loop control
for (var i=0; ilt;feed.value.items.length; i++) {\n

getFeed() function not found

Mika



2009/2/4 Andreas Geyrecker andreas.geyrec...@gmail.com:
 Mika,

 try using a ![CDATA[ ... ]] section for your javascript code.

 see also http://www.dpawson.co.uk/xsl/sect4/N9745.html

 Andi


 2009/2/4 mikan.d.dspace listmail mikan.dsp...@gmail.com

 Im trying to add some custom Javscript code for our DSpace 1.5
 instances. The problem is though, that when compiling the source I get
 SAX errors because of '' signs on Javascript code. Should I encode
 the code somehow or how could I get around this?

 The line that causes the problem is the following:

 var addr = 'http://my.site.org/run?_render=json_callback=trythis';

 org.xml.sax.SAXParseException: The reference to entity _render must
 end with the ';' delimiter.

 context:/file:/usr/local/jetty/jetty-6.1.12rc1/webapps/dikk/themes/TDS/./../dri2xhtml/structural.xsl
 - 226:98

 Cocoon stacktrace [hide]
 The reference to entity _render must end with the ';' delimiter.

 context:/file:/usr/local/jetty/jetty-6.1.12rc1/webapps/dikk/themes/TDS/./../dri2xhtml/structural.xsl
 - 226:98

 Thanks for any tips,
 Mika


 --
 Create and Deploy Rich Internet Apps outside the browser with
 Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code
 to
 build responsive, highly engaging applications that combine the power of
 local
 resources and data with the reach of the web. Download the Adobe AIR SDK
 and
 Ajax docs to start building applications
 today-http://p.sf.net/sfu/adobe-com
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-04 Thread Reuben Pasquini
I like to use Mercurial to track our local mods.
   http://www.selenic.com/mercurial/wiki/

There are some nice tools to support that:
  
http://www.selenic.com/mercurial/wiki/index.cgi/WorkingWithSubversion


I just do a simple setup though - keep a few copies of the code
around.
   *. /dspace-pure/...  - straight dspace-checkout
   *. /local-release/...  - realease-ready code
   *./work/...- work area

When I have something in /work/ ready for release, then
 'hg push' 
form work/ to local-release/ and run pre-release tests.
When we're ready to pull in updates from dspace-repo,
then 
  svn update
in dspace-pure/
 hg pull
the dspace-pure stuff into /work.
Something like that.

Long term dspace should consider moving to Mercurial for
source control.  Systems like Mercurial and Git (used by the Linux
kernel team)
make it easy to maintain local branches and repositories independent
of the central master repository.

I was disappointed to find that the dspace code base does not
include a suite of JUnit regression tests - which complicates the
update, merge process and forces add hock system-level testing.

The current system's fragile design makes it difficult to add
regression tests:

   *. use of classes instead of interfaces in the API makes it
difficult to
mock out subsystems

   *. extensive use of global (static) variables rather than dependency
injection
   makes it difficult to isolate individual test cases. 

   *. strong tie to database schema rather than object model 
with ORM mapping hidden away 

*. custom code rather than building on top of a J2EE platform
(JBoss, Glassfish, Geronimo are all free)
that provides database connection management, 
pluggable authentication, object-relational database mapping,
logging, mail session management, transactions, etc. out of the
box.

I hope future versions of dspace include design changes,
and introduce a suite of regression tests.

Cheers,
Reuben

BTW - There are some great tools out there to help:
 http://code.google.com/p/google-guice/ 
 http://www.junit.org/ 
 http://www.easymock.org/ 
 http://www.hibernate.org/ 

http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html

 http://jboss.org/ 
 http://geronimo.apache.org/ 
 https://glassfish.dev.java.net/ 
 http://java.sun.com/docs/books/effective/ 



 Diggory Mark mdigg...@gmail.com 2/3/2009 4:24 PM 
Or to be more explicit you add the pom at

{dspace-source}/dspace/modules/custom-api/pom.xml

and modify the following with modulecustom-api/module

{dspace-source}/dspace/modules/pom.xml

And add custom-api as a dependency in

{dspace-source}/dspace/pom.xml

Mark

On Feb 3, 2009, at 2:14 PM, Diggory Mark wrote:

 no

 On Feb 3, 2009, at 2:06 PM, Thornton, Susan M. (LARC-B702)[NCI  
 INFORMATION SYSTEMS] wrote:

 Do I need to modify {dspace-source}/pom.xml ??

 From: Diggory Mark [mailto:mdigg...@gmail.com] 
 Sent: Tuesday, February 03, 2009 4:10 PM
 To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
 Cc: dspace-tech
 Subject: Re: [Dspace-tech] Local modifications to DSpace .java  
 programs, in 1.5.1

 Susan,

 The way to do it without altering the code in place requires  
 creating a custom maven project within the dspace/modules/  
 directory, wiring it into the dspace/pom.xml and dspace/modules/ 
 pom.xml so that it compiles into the build process.

 At this point, I'm seeing community member using both approaches,  
 and I'm unsure which I would most recommend. But here's what I try 

 to approach as a best practice.

 1.) I don't like to alter code in place in dspace-api, dspace-xmlui 

 or any of those projects unless I intend to contribute it into the 

 next release of DSpace 1.5.x

 2.) Keeping all those projects around lengthens the build process  
 and if your not using all of them (dspace-sword, lni, etc) thats a 

 lot of compile time for nothing.

 3.) Once configured properly, your changes in dspace/modules/xxx  
 will always be separate from the rest of the codebase, but you will 

 still need to verify that upgrades don't break your customizations 

 by comparing your code to the original.  Something we continue to  
 strive to get away from.

 So I would recommend the following steps:

 a.) create a dspace/modules/custom-api/pom.xml for your api  
 changes. That looks something like the attached pom.xml


 ~
 Mark R. Diggory
 http://purl.org/net/mdiggory/homepage 




~
Mark R. Diggory
http://purl.org/net/mdiggory/homepage 




--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. 

Re: [Dspace-tech] question about deploying dspace-sword

2009-02-04 Thread Debashree Pati
Thanks Hayden for the reply.

I had added the context path for Dspace SWORD user like you've mentioned. 
And, yes I am able to browse to both jspui and xmlui.

Another thing I noticed is that under 

C:\Program Files\apache-tomcat-6.0.18\work\Catalina\localhost\sword
There is only a single file called SESSIONS.ser. I believe this must be what
Tomcat is attempting to deploy. All the other subdirectories like
[Tomcat]\work\Catalina\localhost\jspui or xmlui have whole bunch of various
files. How does your directory content under sword look like?

Tomcat logs two SEVERE errors in catalina.log file: (but I am not able to
figure out how to resolve them)



INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart
Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

SEVERE: Context [/dspace-sword] startup failed due to previous errors
Feb 4, 2009 10:37:48 AM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive sword-client.war
Feb 4, 2009 10:37:49 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 4, 2009 10:37:49 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 4, 2009 10:37:49 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Feb 4, 2009 10:37:49 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3594 ms

---

Thanks for any help.
-Deb


-Original Message-
From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
Sent: Wednesday, February 04, 2009 10:05 AM
To: Debashree Pati
Cc: DSpace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] question about deploying dspace-sword

I was able to get sword working by adding the context;

Context path=/dspace-sword docBase=/path/to/dspace/webapps/sword 
debug=0 reloadable=true cachingAllowed=false allowLinking=true/

If you are able to browe jspui and/or xmlui I'm assuming you may have 
done this; if so, is Tomcat logging any additional errors?

Cheers


Hayden

Debashree Pati wrote:

 Hi,

 The DSpace 1.5 documentation (3.4 Windows Installation - Installation 
 Steps - step 10) states:

 10. Browse to either |http://localhost:8080/jspui| or 
 |http://localhost:8080/xmlui|. You should see the DSpace home page for 
 either the JSPUI or XMLUI, respectively.

 What about the dspace-sword instance? The documentation does not 
 mention it anywhere.

 The installation step in README under the download 
 *dspace-sword-6-11-2007/dspace-sword* states:

 7/ When deployed you should be able to view your service document at

 the following url:

 http://[dspace.hostname]/dspace-sword/servicedocument

 But, it just gives me the 404 message of resource not found.

 Can someone please help me in getting this to work?

 Thanks,

 Deb

 



--
 Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code
to
 build responsive, highly engaging applications that combine the power of
local
 resources and data with the reach of the web. Download the Adobe AIR SDK
and
 Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
 

 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
   


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] question about deploying dspace-sword

2009-02-04 Thread Mr Havercamp
No, there should be more files than that. If you look in the sword 
directory you should see the sub directories META-INF/ and WEB-INF/.

What about in oai/ and lni/?

Were there any errors during installation?

Cheers


Hayden

Debashree Pati wrote:
 Thanks Hayden for the reply.

 I had added the context path for Dspace SWORD user like you've mentioned. 
 And, yes I am able to browse to both jspui and xmlui.

 Another thing I noticed is that under 

 C:\Program Files\apache-tomcat-6.0.18\work\Catalina\localhost\sword
 There is only a single file called SESSIONS.ser. I believe this must be what
 Tomcat is attempting to deploy. All the other subdirectories like
 [Tomcat]\work\Catalina\localhost\jspui or xmlui have whole bunch of various
 files. How does your directory content under sword look like?

 Tomcat logs two SEVERE errors in catalina.log file: (but I am not able to
 figure out how to resolve them)
 
 
   
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

 SEVERE: Error listenerStart
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

 SEVERE: Context [/dspace-sword] startup failed due to previous errors
 Feb 4, 2009 10:37:48 AM org.apache.catalina.startup.HostConfig deployWAR

 INFO: Deploying web application archive sword-client.war
 Feb 4, 2009 10:37:49 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Feb 4, 2009 10:37:49 AM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Feb 4, 2009 10:37:49 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/31  config=null
 Feb 4, 2009 10:37:49 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 3594 ms
 
 ---

 Thanks for any help.
 -Deb


 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
 Sent: Wednesday, February 04, 2009 10:05 AM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 I was able to get sword working by adding the context;

 Context path=/dspace-sword docBase=/path/to/dspace/webapps/sword 
 debug=0 reloadable=true cachingAllowed=false allowLinking=true/

 If you are able to browe jspui and/or xmlui I'm assuming you may have 
 done this; if so, is Tomcat logging any additional errors?

 Cheers


 Hayden

 Debashree Pati wrote:
   
 Hi,

 The DSpace 1.5 documentation (3.4 Windows Installation - Installation 
 Steps - step 10) states:

 10. Browse to either |http://localhost:8080/jspui| or 
 |http://localhost:8080/xmlui|. You should see the DSpace home page for 
 either the JSPUI or XMLUI, respectively.

 What about the dspace-sword instance? The documentation does not 
 mention it anywhere.

 The installation step in README under the download 
 *dspace-sword-6-11-2007/dspace-sword* states:

 7/ When deployed you should be able to view your service document at

 the following url:

 http://[dspace.hostname]/dspace-sword/servicedocument

 But, it just gives me the 404 message of resource not found.

 Can someone please help me in getting this to work?

 Thanks,

 Deb

 


 
 
 --
   
 Create and Deploy Rich Internet Apps outside the browser with
 
 Adobe(R)AIR(TM)
   
 software. With Adobe AIR, Ajax developers can use existing skills and code
 
 to
   
 build responsive, highly engaging applications that combine the power of
 
 local
   
 resources and data with the reach of the web. Download the Adobe AIR SDK
 
 and
   
 Ajax docs to start building applications
 
 today-http://p.sf.net/sfu/adobe-com
   
 

 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
   
 

   


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Custom Javascript in Structural.xsl

2009-02-04 Thread Thomas A McGee
Wouldn't it be more efficient anyway to simply reference an external .js file? 
Structural.xsl already has an example chunk of code:

!-- Add javascipt  --
xsl:for-each 
select=/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='javascript']
script type=text/javascript
xsl:attribute name=src
xsl:value-of 
select=/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='contextPath'][not(@qualifier)]/
xsl:text/themes//xsl:text
xsl:value-of 
select=/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='theme']...@qualifier='path']/
xsl:text//xsl:text
xsl:value-of select=./
/xsl:attribute
#160;
/script
/xsl:for-each

--Tom



_
Tom McGee
Senior Digital Media Specialist
Seton Hall University
400 South Orange Ave., South Orange, NJ 07079
973.275.2992



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Custom Javascript in Structural.xsl

2009-02-04 Thread Walker, David
You could just write the Javascript in a seperate .js file and import it into 
the HTML using a script tag.  That would free you from the constraints of 
XSLT, and makes things cleaner anway.

--Dave
==
David Walker
Library Web Services Manager
California State University
http://xerxes.calstate.edu

From: mikan.d.dspace listmail [mikan.dsp...@gmail.com]
Sent: Wednesday, February 04, 2009 6:46 AM
To: Andreas Geyrecker
Cc: dspace-t...@lists.sourceforge.net.
Subject: Re: [Dspace-tech] Custom Javascript in Structural.xsl

Thanks Adnreas,

This seems to fix the problem with '' signs etc. But now Im getting
the following Javascript errors.
This is strange since the same piece of code works fine in dummy HTML
page. Something seems to go wrong when adding JS to XSL. What am I
missing here?

missing ) after for-loop control
for (var i=0; ilt;feed.value.items.length; i++) {\n

getFeed() function not found

Mika



2009/2/4 Andreas Geyrecker andreas.geyrec...@gmail.com:
 Mika,

 try using a ![CDATA[ ... ]] section for your javascript code.

 see also http://www.dpawson.co.uk/xsl/sect4/N9745.html

 Andi


 2009/2/4 mikan.d.dspace listmail mikan.dsp...@gmail.com

 Im trying to add some custom Javscript code for our DSpace 1.5
 instances. The problem is though, that when compiling the source I get
 SAX errors because of '' signs on Javascript code. Should I encode
 the code somehow or how could I get around this?

 The line that causes the problem is the following:

 var addr = 'http://my.site.org/run?_render=json_callback=trythis';

 org.xml.sax.SAXParseException: The reference to entity _render must
 end with the ';' delimiter.

 context:/file:/usr/local/jetty/jetty-6.1.12rc1/webapps/dikk/themes/TDS/./../dri2xhtml/structural.xsl
 - 226:98

 Cocoon stacktrace [hide]
 The reference to entity _render must end with the ';' delimiter.

 context:/file:/usr/local/jetty/jetty-6.1.12rc1/webapps/dikk/themes/TDS/./../dri2xhtml/structural.xsl
 - 226:98

 Thanks for any tips,
 Mika


 --
 Create and Deploy Rich Internet Apps outside the browser with
 Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code
 to
 build responsive, highly engaging applications that combine the power of
 local
 resources and data with the reach of the web. Download the Adobe AIR SDK
 and
 Ajax docs to start building applications
 today-http://p.sf.net/sfu/adobe-com
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Using local URIs in place of CNRI Handles

2009-02-04 Thread Schoppet, Chuck

Is there a How to for DSpace 1.5 for running DSpace using local URIs
in place of CNRI Handles?

I want to use DSpace for a private intranet repository. 

Chuck Schoppet

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] question about deploying dspace-sword

2009-02-04 Thread Debashree Pati
Yes, in my [Dspace]/webapps/sword/ there are WEB-INF/ and META-INF/ with
contents. 
Also, the lni/ and oai/ have folders and files. 

But, [Tomcat]/work/Catalina/localhost/oai is empty. There isn't any lni
subdirectory here. I don't remember of any error while installing Tomcat. 

Shouldn't these web apps. supposed to be under [Tomcat]/webapps? - Here I
only have the folders - docs, examples, host-manager, manager, ROOT,
sword-client, and sword-client.war(put by me). Why doesn't it have the
jspui, xmlui, etc.? I am reading up some Tomcat tutorial to figure out
what's going on. Will appreciate any help.

Thanks,
Deb


-Original Message-
From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
Sent: Wednesday, February 04, 2009 11:09 AM
To: Debashree Pati
Cc: DSpace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] question about deploying dspace-sword

No, there should be more files than that. If you look in the sword 
directory you should see the sub directories META-INF/ and WEB-INF/.

What about in oai/ and lni/?

Were there any errors during installation?

Cheers


Hayden

Debashree Pati wrote:
 Thanks Hayden for the reply.

 I had added the context path for Dspace SWORD user like you've mentioned. 
 And, yes I am able to browse to both jspui and xmlui.

 Another thing I noticed is that under 

 C:\Program Files\apache-tomcat-6.0.18\work\Catalina\localhost\sword
 There is only a single file called SESSIONS.ser. I believe this must be
what
 Tomcat is attempting to deploy. All the other subdirectories like
 [Tomcat]\work\Catalina\localhost\jspui or xmlui have whole bunch of
various
 files. How does your directory content under sword look like?

 Tomcat logs two SEVERE errors in catalina.log file: (but I am not able to
 figure out how to resolve them)


 
   
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

 SEVERE: Error listenerStart
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

 SEVERE: Context [/dspace-sword] startup failed due to previous errors
 Feb 4, 2009 10:37:48 AM org.apache.catalina.startup.HostConfig deployWAR

 INFO: Deploying web application archive sword-client.war
 Feb 4, 2009 10:37:49 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Feb 4, 2009 10:37:49 AM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Feb 4, 2009 10:37:49 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/31  config=null
 Feb 4, 2009 10:37:49 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 3594 ms


 ---

 Thanks for any help.
 -Deb


 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
 Sent: Wednesday, February 04, 2009 10:05 AM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 I was able to get sword working by adding the context;

 Context path=/dspace-sword docBase=/path/to/dspace/webapps/sword 
 debug=0 reloadable=true cachingAllowed=false allowLinking=true/

 If you are able to browe jspui and/or xmlui I'm assuming you may have 
 done this; if so, is Tomcat logging any additional errors?

 Cheers


 Hayden

 Debashree Pati wrote:
   
 Hi,

 The DSpace 1.5 documentation (3.4 Windows Installation - Installation 
 Steps - step 10) states:

 10. Browse to either |http://localhost:8080/jspui| or 
 |http://localhost:8080/xmlui|. You should see the DSpace home page for 
 either the JSPUI or XMLUI, respectively.

 What about the dspace-sword instance? The documentation does not 
 mention it anywhere.

 The installation step in README under the download 
 *dspace-sword-6-11-2007/dspace-sword* states:

 7/ When deployed you should be able to view your service document at

 the following url:

 http://[dspace.hostname]/dspace-sword/servicedocument

 But, it just gives me the 404 message of resource not found.

 Can someone please help me in getting this to work?

 Thanks,

 Deb

 


 


 --
   
 Create and Deploy Rich Internet Apps outside the browser with
 
 Adobe(R)AIR(TM)
   
 software. With Adobe AIR, Ajax developers can use existing skills and
code
 
 to
   
 build responsive, highly engaging applications that combine the power of
 
 local
   
 resources and data with the reach of the web. Download the Adobe AIR SDK
 
 and
   
 Ajax docs to start building applications
 
 today-http://p.sf.net/sfu/adobe-com
   
 

 ___
 DSpace-tech mailing list
 

Re: [Dspace-tech] Custom Javascript in Structural.xsl

2009-02-04 Thread Tim Donohue
I'd recommend the separate .js file route.  In fact, if you create a 
separate .js, you can have it load automatically by a simple edit of 
your Theme's sitemap.xmap file.   If you look in that file, you'll see 
IncludePageMeta sections like this:

map:transform type=IncludePageMeta
   map:parameter name=stylesheet.screen#1 value=lib/style.css/
   map:parameter name=stylesheet.screen#2 value=lib/style-ie.css/
/map:transform

As you can see from the above, it's loading two CSS files for this 
theme.  You can do the same for Javascript files:

map:transform type=IncludePageMeta
   map:parameter name=stylesheet.screen#1 value=lib/style.css/
   map:parameter name=stylesheet.screen#2 value=lib/style-ie.css/
   map:parameter name=javascript#1 value=lib/myscript.js/
   map:parameter name=javascript#2 value=lib/anotherscript.js/
/map:transform

In the above example, you are telling your Theme that your *.js files 
are in a lib/ subdirectory in your Theme.  So, the path you give is 
always *relative* to the directory of your Theme.

[Side Note:]  If you look closely at the structural.xsl buildHead 
template, you'll see a section that says !--Add javascript-- below 
the hardcoded javascript code.  This section is actually looping through 
all the javascript files that are being loaded by the call to 
IncludePageMeta in your sitemap.xmap.  This means that if you place 
them in the sitemap.xmap (as I noted above), you will NOT need to modify 
the structural.xsl.

The advantage to loading these in your sitemap.xmap is that it allows 
you to load *different* javascript files for *different* web browsers. 
So, you could potentially load different javascript code for I.E. than 
you load for Firefox, etc.

- Tim

Walker, David wrote:
 You could just write the Javascript in a seperate .js file and import it into 
 the HTML using a script tag.  That would free you from the constraints of 
 XSLT, and makes things cleaner anway.
 
 --Dave
 ==
 David Walker
 Library Web Services Manager
 California State University
 http://xerxes.calstate.edu
 
 From: mikan.d.dspace listmail [mikan.dsp...@gmail.com]
 Sent: Wednesday, February 04, 2009 6:46 AM
 To: Andreas Geyrecker
 Cc: dspace-t...@lists.sourceforge.net.
 Subject: Re: [Dspace-tech] Custom Javascript in Structural.xsl
 
 Thanks Adnreas,
 
 This seems to fix the problem with '' signs etc. But now Im getting
 the following Javascript errors.
 This is strange since the same piece of code works fine in dummy HTML
 page. Something seems to go wrong when adding JS to XSL. What am I
 missing here?
 
 missing ) after for-loop control
 for (var i=0; ilt;feed.value.items.length; i++) {\n
 
 getFeed() function not found
 
 Mika
 
 
 
 2009/2/4 Andreas Geyrecker andreas.geyrec...@gmail.com:
 Mika,

 try using a ![CDATA[ ... ]] section for your javascript code.

 see also http://www.dpawson.co.uk/xsl/sect4/N9745.html

 Andi


 2009/2/4 mikan.d.dspace listmail mikan.dsp...@gmail.com
 Im trying to add some custom Javscript code for our DSpace 1.5
 instances. The problem is though, that when compiling the source I get
 SAX errors because of '' signs on Javascript code. Should I encode
 the code somehow or how could I get around this?

 The line that causes the problem is the following:

 var addr = 'http://my.site.org/run?_render=json_callback=trythis';

 org.xml.sax.SAXParseException: The reference to entity _render must
 end with the ';' delimiter.

 context:/file:/usr/local/jetty/jetty-6.1.12rc1/webapps/dikk/themes/TDS/./../dri2xhtml/structural.xsl
 - 226:98

 Cocoon stacktrace [hide]
 The reference to entity _render must end with the ';' delimiter.

 context:/file:/usr/local/jetty/jetty-6.1.12rc1/webapps/dikk/themes/TDS/./../dri2xhtml/structural.xsl
 - 226:98

 Thanks for any tips,
 Mika


 --
 Create and Deploy Rich Internet Apps outside the browser with
 Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code
 to
 build responsive, highly engaging applications that combine the power of
 local
 resources and data with the reach of the web. Download the Adobe AIR SDK
 and
 Ajax docs to start building applications
 today-http://p.sf.net/sfu/adobe-com
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

 
 --
 Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code to
 build responsive, highly engaging applications that combine the power of local
 resources and data with the reach of the web. Download the Adobe AIR SDK and
 Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
 

Re: [Dspace-tech] Custom Javascript in Structural.xsl

2009-02-04 Thread Andreas Geyrecker
Mika,

try using a ![CDATA[ ... ]] section for your javascript code.

see also http://www.dpawson.co.uk/xsl/sect4/N9745.html

Andi


2009/2/4 mikan.d.dspace listmail mikan.dsp...@gmail.com

 Im trying to add some custom Javscript code for our DSpace 1.5
 instances. The problem is though, that when compiling the source I get
 SAX errors because of '' signs on Javascript code. Should I encode
 the code somehow or how could I get around this?

 The line that causes the problem is the following:

 var addr = 'http://my.site.org/run?_render=json_callback=trythis';

 org.xml.sax.SAXParseException: The reference to entity _render must
 end with the ';' delimiter.

 context:/file:/usr/local/jetty/jetty-6.1.12rc1/webapps/dikk/themes/TDS/./../dri2xhtml/structural.xsl
 - 226:98

 Cocoon stacktrace [hide]
 The reference to entity _render must end with the ';' delimiter.

 context:/file:/usr/local/jetty/jetty-6.1.12rc1/webapps/dikk/themes/TDS/./../dri2xhtml/structural.xsl
 - 226:98

 Thanks for any tips,
 Mika


 --
 Create and Deploy Rich Internet Apps outside the browser with
 Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code
 to
 build responsive, highly engaging applications that combine the power of
 local
 resources and data with the reach of the web. Download the Adobe AIR SDK
 and
 Ajax docs to start building applications today-
 http://p.sf.net/sfu/adobe-com
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] question about deploying dspace-sword

2009-02-04 Thread Debashree Pati
Hi,

 

The DSpace 1.5 documentation (3.4 Windows Installation - Installation Steps
- step 10) states:

10.  Browse to either http://localhost:8080/jspui or
http://localhost:8080/xmlui. You should see the DSpace home page for either
the JSPUI or XMLUI, respectively.

What about the dspace-sword instance? The documentation does not mention it
anywhere. 

 

The installation step in README  under the download
dspace-sword-6-11-2007/dspace-sword states:

 

7/ When deployed you should be able to view your service document at

   the following url:

   

   http://[dspace.hostname]/dspace-sword/servicedocument

 

But, it just gives me the 404 message of resource not found. 

 

Can someone please help me in getting this to work? 

 

Thanks,

Deb

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Problems with IP Authentication

2009-02-04 Thread Eric Luhrs
After setting the log level to DEBUG, I was able to verify that users
from my subnet are getting added to the on-campus special IPAuth
group that I defined dspace.cfg.

However, before authentication, the special group is not assigned:

2009-02-04 12:08:57,647 DEBUG
org.apache.catalina.authenticator.AuthenticatorBase @ Security
checking request GET /handle/10385/102
2009-02-04 12:08:57,647 DEBUG
org.apache.catalina.authenticator.AuthenticatorBase @  Not subject to
any constraint
2009-02-04 12:08:57,648 DEBUG org.dspace.authenticate.IPAuthentication
@ 
anonymous:session_id=3FD40D1479088A5CEE4507C6979DA4F8:authenticated:special_groups=

The special group is only assigned after a successful LDAP login (and
oddly, the check continues to pass even after logout):

2009-02-04 12:10:31,027 DEBUG
org.apache.catalina.authenticator.AuthenticatorBase @ Security
checking request GET /community-list
2009-02-04 12:10:31,027 DEBUG
org.apache.catalina.authenticator.AuthenticatorBase @  Not subject to
any constraint
2009-02-04 12:10:31,030 DEBUG org.dspace.authenticate.IPAuthentication
@ 
anonymous:session_id=8DEB65E4CD326752374D90503281F4F4:authenticated:special_groups=78
2009-02-04 12:10:31,030 DEBUG org.dspace.app.xmlui.utils.ContextUtil @
Adding Special Group id=78

This appears to be the same bug reported here:

http://sourceforge.net/tracker/?func=detailatid=119984aid=2088431group_id=19984

Has anyone found a work-around for this?

Eric Luhrs
Lafayette College

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] question about deploying dspace-sword

2009-02-04 Thread Mr Havercamp
Debashree Pati wrote:
 Yes, in my [Dspace]/webapps/sword/ there are WEB-INF/ and META-INF/ with
 contents. 
 Also, the lni/ and oai/ have folders and files. 

 But, [Tomcat]/work/Catalina/localhost/oai is empty. There isn't any lni
 subdirectory here. I don't remember of any error while installing Tomcat. 
   
Yes, checking my Catalina/localhost/ directory I see similar directories 
to you.
 Shouldn't these web apps. supposed to be under [Tomcat]/webapps? - Here I
 only have the folders - docs, examples, host-manager, manager, ROOT,
 sword-client, and sword-client.war(put by me). Why doesn't it have the
 jspui, xmlui, etc.? I am reading up some Tomcat tutorial to figure out
 what's going on. Will appreciate any help.
   
You can either deploy the generated war files from 
/your/build/path/build/dspace-1.5.1-release/dspace/modules/oai/target/ 
to the tomcat webapps directory, or you can reference the dspace app 
directly from /usr/local/dspace/webapps/ (these are the unpacked war 
files, all dropping them into tomcat/webapps will do is unpack them from 
there instead).

Without the error logs above SEVERE: Error listenerStart it's hard to 
diagnose.

One thing I had to do was set TOMCAT5_SECURITY=no. Not sure where this 
setting is on a Windows platform.

Could you also provide your Tomcat context config?
 Thanks,
 Deb


 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
 Sent: Wednesday, February 04, 2009 11:09 AM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 No, there should be more files than that. If you look in the sword 
 directory you should see the sub directories META-INF/ and WEB-INF/.

 What about in oai/ and lni/?

 Were there any errors during installation?

 Cheers


 Hayden

 Debashree Pati wrote:
   
 Thanks Hayden for the reply.

 I had added the context path for Dspace SWORD user like you've mentioned. 
 And, yes I am able to browse to both jspui and xmlui.

 Another thing I noticed is that under 

 C:\Program Files\apache-tomcat-6.0.18\work\Catalina\localhost\sword
 There is only a single file called SESSIONS.ser. I believe this must be
 
 what
   
 Tomcat is attempting to deploy. All the other subdirectories like
 [Tomcat]\work\Catalina\localhost\jspui or xmlui have whole bunch of
 
 various
   
 files. How does your directory content under sword look like?

 Tomcat logs two SEVERE errors in catalina.log file: (but I am not able to
 figure out how to resolve them)

 
 
   
 
  
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

 SEVERE: Error listenerStart
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

 SEVERE: Context [/dspace-sword] startup failed due to previous errors
 Feb 4, 2009 10:37:48 AM org.apache.catalina.startup.HostConfig deployWAR

 INFO: Deploying web application archive sword-client.war
 Feb 4, 2009 10:37:49 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Feb 4, 2009 10:37:49 AM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Feb 4, 2009 10:37:49 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/31  config=null
 Feb 4, 2009 10:37:49 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 3594 ms

 
 
   
 ---

 Thanks for any help.
 -Deb


 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
 Sent: Wednesday, February 04, 2009 10:05 AM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 I was able to get sword working by adding the context;

 Context path=/dspace-sword docBase=/path/to/dspace/webapps/sword 
 debug=0 reloadable=true cachingAllowed=false allowLinking=true/

 If you are able to browe jspui and/or xmlui I'm assuming you may have 
 done this; if so, is Tomcat logging any additional errors?

 Cheers


 Hayden

 Debashree Pati wrote:
   
 
 Hi,

 The DSpace 1.5 documentation (3.4 Windows Installation - Installation 
 Steps - step 10) states:

 10. Browse to either |http://localhost:8080/jspui| or 
 |http://localhost:8080/xmlui|. You should see the DSpace home page for 
 either the JSPUI or XMLUI, respectively.

 What about the dspace-sword instance? The documentation does not 
 mention it anywhere.

 The installation step in README under the download 
 *dspace-sword-6-11-2007/dspace-sword* states:

 7/ When deployed you should be able to view your service document at

 the following url:

 http://[dspace.hostname]/dspace-sword/servicedocument

 But, it just gives me the 404 message of resource not found.

 Can someone please help me in getting this to work?

 

Re: [Dspace-tech] question about deploying dspace-sword

2009-02-04 Thread Debashree Pati
Thank you very much for keeping up with my postings. I decided to do a fresh
install of dspace in my linux machine and go from there. Hopefully, things
will work well there. If not, I'll be back to posting again. 

- deb

-Original Message-
From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
Sent: Wednesday, February 04, 2009 1:30 PM
To: Debashree Pati
Cc: DSpace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] question about deploying dspace-sword

Debashree Pati wrote:
 Yes, in my [Dspace]/webapps/sword/ there are WEB-INF/ and META-INF/ with
 contents. 
 Also, the lni/ and oai/ have folders and files. 

 But, [Tomcat]/work/Catalina/localhost/oai is empty. There isn't any lni
 subdirectory here. I don't remember of any error while installing Tomcat. 
   
Yes, checking my Catalina/localhost/ directory I see similar directories 
to you.
 Shouldn't these web apps. supposed to be under [Tomcat]/webapps? - Here I
 only have the folders - docs, examples, host-manager, manager, ROOT,
 sword-client, and sword-client.war(put by me). Why doesn't it have the
 jspui, xmlui, etc.? I am reading up some Tomcat tutorial to figure out
 what's going on. Will appreciate any help.
   
You can either deploy the generated war files from 
/your/build/path/build/dspace-1.5.1-release/dspace/modules/oai/target/ 
to the tomcat webapps directory, or you can reference the dspace app 
directly from /usr/local/dspace/webapps/ (these are the unpacked war 
files, all dropping them into tomcat/webapps will do is unpack them from 
there instead).

Without the error logs above SEVERE: Error listenerStart it's hard to 
diagnose.

One thing I had to do was set TOMCAT5_SECURITY=no. Not sure where this 
setting is on a Windows platform.

Could you also provide your Tomcat context config?
 Thanks,
 Deb


 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
 Sent: Wednesday, February 04, 2009 11:09 AM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 No, there should be more files than that. If you look in the sword 
 directory you should see the sub directories META-INF/ and WEB-INF/.

 What about in oai/ and lni/?

 Were there any errors during installation?

 Cheers


 Hayden

 Debashree Pati wrote:
   
 Thanks Hayden for the reply.

 I had added the context path for Dspace SWORD user like you've mentioned.

 And, yes I am able to browse to both jspui and xmlui.

 Another thing I noticed is that under 

 C:\Program Files\apache-tomcat-6.0.18\work\Catalina\localhost\sword
 There is only a single file called SESSIONS.ser. I believe this must be
 
 what
   
 Tomcat is attempting to deploy. All the other subdirectories like
 [Tomcat]\work\Catalina\localhost\jspui or xmlui have whole bunch of
 
 various
   
 files. How does your directory content under sword look like?

 Tomcat logs two SEVERE errors in catalina.log file: (but I am not able to
 figure out how to resolve them)

 


   
 
  
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

 SEVERE: Error listenerStart
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

 SEVERE: Context [/dspace-sword] startup failed due to previous errors
 Feb 4, 2009 10:37:48 AM org.apache.catalina.startup.HostConfig deployWAR

 INFO: Deploying web application archive sword-client.war
 Feb 4, 2009 10:37:49 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Feb 4, 2009 10:37:49 AM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Feb 4, 2009 10:37:49 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/31  config=null
 Feb 4, 2009 10:37:49 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 3594 ms

 


   
 ---

 Thanks for any help.
 -Deb


 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
 Sent: Wednesday, February 04, 2009 10:05 AM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 I was able to get sword working by adding the context;

 Context path=/dspace-sword docBase=/path/to/dspace/webapps/sword 
 debug=0 reloadable=true cachingAllowed=false allowLinking=true/

 If you are able to browe jspui and/or xmlui I'm assuming you may have 
 done this; if so, is Tomcat logging any additional errors?

 Cheers


 Hayden

 Debashree Pati wrote:
   
 
 Hi,

 The DSpace 1.5 documentation (3.4 Windows Installation - Installation 
 Steps - step 10) states:

 10. Browse to either |http://localhost:8080/jspui| or 
 |http://localhost:8080/xmlui|. You should see the DSpace home page for 
 either the JSPUI or XMLUI, 

Re: [Dspace-tech] question about deploying dspace-sword

2009-02-04 Thread Mr Havercamp
Sounds good. I can give a bit more assistance for Linux installs as I 
have never installed dspace on a windows machine.

Good luck.

Debashree Pati wrote:
 Thank you very much for keeping up with my postings. I decided to do a fresh
 install of dspace in my linux machine and go from there. Hopefully, things
 will work well there. If not, I'll be back to posting again. 

 - deb

 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
 Sent: Wednesday, February 04, 2009 1:30 PM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 Debashree Pati wrote:
   
 Yes, in my [Dspace]/webapps/sword/ there are WEB-INF/ and META-INF/ with
 contents. 
 Also, the lni/ and oai/ have folders and files. 

 But, [Tomcat]/work/Catalina/localhost/oai is empty. There isn't any lni
 subdirectory here. I don't remember of any error while installing Tomcat. 
   
 
 Yes, checking my Catalina/localhost/ directory I see similar directories 
 to you.
   
 Shouldn't these web apps. supposed to be under [Tomcat]/webapps? - Here I
 only have the folders - docs, examples, host-manager, manager, ROOT,
 sword-client, and sword-client.war(put by me). Why doesn't it have the
 jspui, xmlui, etc.? I am reading up some Tomcat tutorial to figure out
 what's going on. Will appreciate any help.
   
 
 You can either deploy the generated war files from 
 /your/build/path/build/dspace-1.5.1-release/dspace/modules/oai/target/ 
 to the tomcat webapps directory, or you can reference the dspace app 
 directly from /usr/local/dspace/webapps/ (these are the unpacked war 
 files, all dropping them into tomcat/webapps will do is unpack them from 
 there instead).

 Without the error logs above SEVERE: Error listenerStart it's hard to 
 diagnose.

 One thing I had to do was set TOMCAT5_SECURITY=no. Not sure where this 
 setting is on a Windows platform.

 Could you also provide your Tomcat context config?
   
 Thanks,
 Deb


 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
 Sent: Wednesday, February 04, 2009 11:09 AM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 No, there should be more files than that. If you look in the sword 
 directory you should see the sub directories META-INF/ and WEB-INF/.

 What about in oai/ and lni/?

 Were there any errors during installation?

 Cheers


 Hayden

 Debashree Pati wrote:
   
 
 Thanks Hayden for the reply.

 I had added the context path for Dspace SWORD user like you've mentioned.
   

   
 And, yes I am able to browse to both jspui and xmlui.

 Another thing I noticed is that under 

 C:\Program Files\apache-tomcat-6.0.18\work\Catalina\localhost\sword
 There is only a single file called SESSIONS.ser. I believe this must be
 
   
 what
   
 
 Tomcat is attempting to deploy. All the other subdirectories like
 [Tomcat]\work\Catalina\localhost\jspui or xmlui have whole bunch of
 
   
 various
   
 
 files. How does your directory content under sword look like?

 Tomcat logs two SEVERE errors in catalina.log file: (but I am not able to
 figure out how to resolve them)

 
   
 
   
   
 
 
 
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

 SEVERE: Error listenerStart
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext start

 SEVERE: Context [/dspace-sword] startup failed due to previous errors
 Feb 4, 2009 10:37:48 AM org.apache.catalina.startup.HostConfig deployWAR

 INFO: Deploying web application archive sword-client.war
 Feb 4, 2009 10:37:49 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Feb 4, 2009 10:37:49 AM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Feb 4, 2009 10:37:49 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/31  config=null
 Feb 4, 2009 10:37:49 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 3594 ms

 
   
 
   
   
 
 ---

 Thanks for any help.
 -Deb


 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com] 
 Sent: Wednesday, February 04, 2009 10:05 AM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 I was able to get sword working by adding the context;

 Context path=/dspace-sword docBase=/path/to/dspace/webapps/sword 
 debug=0 reloadable=true cachingAllowed=false allowLinking=true/

 If you are able to browe jspui and/or xmlui I'm assuming you may have 
 done this; if so, is Tomcat logging any additional errors?

 Cheers


 Hayden

 Debashree Pati 

Re: [Dspace-tech] [Dspace-general] opening a collection to submission to allregistered users

2009-02-04 Thread Kim Shepherd
Hi Wayne,

 

[replying to dspace-tech rather than dspace-general, since it’s a slightly 
techie answer]

 

It might come down to what pattern matching you can do on e-people to figure 
out who is a grad student and who isn’t...

StackableAuthentication can be made to do some cool stuff... MIT do something 
similar to what you’re suggesting, where they match certain email address 
domains, and give special group membership based on that. If there’s anything 
common to grad students that Dspace knows about (eg. email, phone extension) or 
can find out about (eg. IP address range), then StackableAuthentication can 
help.

 

If you have student accounts in AD,  perhaps it’s worth looking at LDAP to get 
more group membership info.

 

I’ve only scratched the surface with this stuff, so I can’t give any meaningful 
advice, sorry, just throwing some ideas out there.

 

Stackable Auth: http://wiki.dspace.org/index.php/StackableAuthenticationMethods

http://dspace.svn.sourceforge.net/viewvc/dspace/trunk/dspace/docs/configure.html#authentication

 

LDAP: 
http://blog.stuartlewis.com/2008/08/18/test-ldap-service-upgraded-now-with-branches/

 

Shibboleth: https://gabriel.lse.ac.uk/twiki/bin/view/Projects/LseDspaceInstall 

 

Cheers,

 

Kim

 

From: dspace-general-boun...@mit.edu [mailto:dspace-general-boun...@mit.edu] On 
Behalf Of Wayne Johnston
Sent: Thursday, 5 February 2009 9:23 a.m.
To: dspace-gene...@mit.edu
Subject: [Dspace-general] opening a collection to submission to allregistered 
users

 

Is there a simple way to enable all registered users to submit to a given 
collection?
For our e-thesis collection all graduating students will be submitters.
Rather than having each one register and request to be added to the submitter 
group, it would be nice if DSpace recognized each student as a valid submitter 
as soon as she/he registers.
Am I overlooking a simple solution?
If not, I'm thinking about a nightly routine to add any new users to the 
submitter group.

We are using DSpace 1.5, xmlui/manakin.

Thanks.

w

-- 

Wayne Johnston 
Digital Initiatives Librarian, University of Guelph 
519.824.4120 x56900 
wajoh...@uoguelph.ca 



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] question about deploying dspace-sword

2009-02-04 Thread Mr Havercamp
I can confirm that renaming dspace-sword to sword fixes the 404 not 
available error.

Kim Shepherd wrote:
 Hi Deb,

 In addition to the other suggestions give here, I would make sure you are 
 using either jspui or xmlui as the ROOT webapp in your Tomcat installation. 
 This causes less problems for SWORD deposits, and is as easy as renaming your 
 jspui (or xmlui) webapp dir/war to ROOT.

 If you do not want to/can't use jspui or xmlui as ROOT, you can edit 
 dspace.cfg to configure your own deposit URL, eg:

 sword.deposit.url = http://www.yoursitename.com/sword/deposit

 This was one trick that got me when I first started using SWORD, though as I 
 recall I didn't have trouble with getting initial service documents..

 If the 1.5 documentation is telling you to use 'dspace-sword' as a webapp 
 name, it must be out of date -- by default, the webapp is just called sword 
 now.

 Cheers,

 Kim.

   
 -Original Message-
 From: Debashree Pati [mailto:dp...@oln.org]
 Sent: Thursday, 5 February 2009 8:00 a.m.
 To: 'Mr Havercamp'
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 Thank you very much for keeping up with my postings. I decided to do a
 fresh
 install of dspace in my linux machine and go from there. Hopefully,
 things
 will work well there. If not, I'll be back to posting again.

 - deb

 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com]
 Sent: Wednesday, February 04, 2009 1:30 PM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 Debashree Pati wrote:
 
 Yes, in my [Dspace]/webapps/sword/ there are WEB-INF/ and META-INF/
   
 with
 
 contents.
 Also, the lni/ and oai/ have folders and files.

 But, [Tomcat]/work/Catalina/localhost/oai is empty. There isn't any
   
 lni
 
 subdirectory here. I don't remember of any error while installing
   
 Tomcat.
 
 Yes, checking my Catalina/localhost/ directory I see similar
 directories
 to you.
 
 Shouldn't these web apps. supposed to be under [Tomcat]/webapps? -
   
 Here I
 
 only have the folders - docs, examples, host-manager, manager, ROOT,
 sword-client, and sword-client.war(put by me). Why doesn't it have
   
 the
 
 jspui, xmlui, etc.? I am reading up some Tomcat tutorial to figure
   
 out
 
 what's going on. Will appreciate any help.

   
 You can either deploy the generated war files from
 /your/build/path/build/dspace-1.5.1-release/dspace/modules/oai/target/
 to the tomcat webapps directory, or you can reference the dspace app
 directly from /usr/local/dspace/webapps/ (these are the unpacked war
 files, all dropping them into tomcat/webapps will do is unpack them
 from
 there instead).

 Without the error logs above SEVERE: Error listenerStart it's hard to
 diagnose.

 One thing I had to do was set TOMCAT5_SECURITY=no. Not sure where this
 setting is on a Windows platform.

 Could you also provide your Tomcat context config?
 
 Thanks,
 Deb


 -Original Message-
 From: Mr Havercamp [mailto:mrhaverc...@gmail.com]
 Sent: Wednesday, February 04, 2009 11:09 AM
 To: Debashree Pati
 Cc: DSpace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] question about deploying dspace-sword

 No, there should be more files than that. If you look in the sword
 directory you should see the sub directories META-INF/ and WEB-INF/.

 What about in oai/ and lni/?

 Were there any errors during installation?

 Cheers


 Hayden

 Debashree Pati wrote:

   
 Thanks Hayden for the reply.

 I had added the context path for Dspace SWORD user like you've
 
 mentioned.

 
 And, yes I am able to browse to both jspui and xmlui.

 Another thing I noticed is that under

 C:\Program Files\apache-tomcat-6.0.18\work\Catalina\localhost\sword
 There is only a single file called SESSIONS.ser. I believe this must
 
 be
 
 what

   
 Tomcat is attempting to deploy. All the other subdirectories like
 [Tomcat]\work\Catalina\localhost\jspui or xmlui have whole bunch of

 
 various

   
 files. How does your directory content under sword look like?

 Tomcat logs two SEVERE errors in catalina.log file: (but I am not
 
 able to
 
 figure out how to resolve them)


 
 ---
 -
 
 

 INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext
 
 start
 
 SEVERE: Error listenerStart
 Feb 4, 2009 10:37:46 AM org.apache.catalina.core.StandardContext
 
 start
 
 SEVERE: Context [/dspace-sword] startup failed due to previous
 
 errors
 
 Feb 4, 2009 10:37:48 AM org.apache.catalina.startup.HostConfig
 
 deployWAR
 
 INFO: Deploying web application archive sword-client.war
 Feb 4, 2009 10:37:49 AM 

[Dspace-tech] Dspace ports Firewall

2009-02-04 Thread Jewel
I am wanting to create some IPSec rules for Dspace. Regarding the handle 
I know I need to have ports 8000 and 2541 open but to what extent?  Do 
both need to be open going in and out and is there a way to limit these 
on what they are listening to?

-- 
JM


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-04 Thread Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
I think I'm still missing a piece of the puzzle though since my modified
.java program is NOT making it into the dspace-api-1.5.1.jar file in
/dspace/lib.

 

I have added the new sub-directory custom-api and file pom.xml file
under {dspace-source}/dspace/modules.

I added the following to {dspace-source}/dspace/modules/pom.xml:
modulecustom-api/module (I also commented out the xmlui, lni, oai,
and sword modules in this pom.xml file (for the time being until we are
using them, as per your suggestion)).

I added the following to {dspace-source}/dspace/pom.xml:

profile

 idcustom-api/id

 activation

file

   exists../custom-api/pom.xml/exists

/file

 /activation

 modules

module../custom-api/module

 /modules

  /profile

 

I think the trick is WHERE to put my custom .java program so that it
will be picked up and put in the right place in the application once
it's compiled.

 

 

Take this example:

 

Let's say I make a modification to:

 

 
dspace-1.5.1-src-release/dspace-api/src/main/java/org/dspace/app/mediafi
lter/PDFFilter.java  

 

Do I put it in:

 
Dspace-1.5.1-src-release/dspace/modules/src/main/java/org/dspace/app/med
iafilter/PDFFilter.java

 

 

And is the package in my new PDFFilter.java still package
org.dspace.app.mediafilter;

 

I'm thinking maybe not since I just saw this in the pom.xml file you
attached to your email last night:
groupIdorg.dspace.modules/groupId

 

Do I need to create a {dspace-source}/custom-api directory??

 

Please forgive me - this is the first time I have worked with pom.xml
files!

 

Thanks!

Sue





From: Diggory Mark [mailto:mdigg...@gmail.com] 
Sent: Tuesday, February 03, 2009 5:24 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java programs,
in 1.5.1

 

Or to be more explicit you add the pom at

 

{dspace-source}/dspace/modules/custom-api/pom.xml

 

and modify the following with modulecustom-api/module

 

{dspace-source}/dspace/modules/pom.xml

 

And add custom-api as a dependency in 

 

{dspace-source}/dspace/pom.xml

 

Mark

 

On Feb 3, 2009, at 2:14 PM, Diggory Mark wrote:





no

 

On Feb 3, 2009, at 2:06 PM, Thornton, Susan M. (LARC-B702)[NCI
INFORMATION SYSTEMS] wrote:





Do I need to modify {dspace-source}/pom.xml ??

 



From: Diggory Mark [mailto:mdigg...@gmail.com] 
Sent: Tuesday, February 03, 2009 4:10 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java programs,
in 1.5.1

 

Susan,

 

The way to do it without altering the code in place requires creating a
custom maven project within the dspace/modules/ directory, wiring it
into the dspace/pom.xml and dspace/modules/pom.xml so that it compiles
into the build process.

 

At this point, I'm seeing community member using both approaches, and
I'm unsure which I would most recommend. But here's what I try to
approach as a best practice.

 

1.) I don't like to alter code in place in dspace-api, dspace-xmlui or
any of those projects unless I intend to contribute it into the next
release of DSpace 1.5.x

 

2.) Keeping all those projects around lengthens the build process and if
your not using all of them (dspace-sword, lni, etc) thats a lot of
compile time for nothing.

 

3.) Once configured properly, your changes in dspace/modules/xxx will
always be separate from the rest of the codebase, but you will still
need to verify that upgrades don't break your customizations by
comparing your code to the original.  Something we continue to strive to
get away from.

 

So I would recommend the following steps:

 

a.) create a dspace/modules/custom-api/pom.xml for your api changes.
That looks something like the attached pom.xml

 

 

~

Mark R. Diggory

http://purl.org/net/mdiggory/homepage

 

 

 

 

~

Mark R. Diggory

http://purl.org/net/mdiggory/homepage

 

 

 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-04 Thread Diggory Mark


On Feb 4, 2009, at 3:47 PM, Thornton, Susan M. (LARC-B702)[NCI  
INFORMATION SYSTEMS] wrote:


I think I’m still missing a piece of the puzzle though since my  
modified .java program is NOT making it into the dspace- 
api-1.5.1.jar file in /dspace/lib.


I have added the new sub-directory custom-api and file pom.xml file  
under {dspace-source}/dspace/modules.
I added the following to {dspace-source}/dspace/modules/pom.xml:   
modulecustom-api/module (I also commented out the xmlui, lni,  
oai, and sword modules in this pom.xml file (for the time being  
until we are using them, as per your suggestion)).

I added the following to {dspace-source}/dspace/pom.xml:
profile
 idcustom-api/id
 activation
file
   exists../custom-api/pom.xml/exists
/file
 /activation
 modules
module../custom-api/module
 /modules
  /profile


this is where you are getting caught.  what you need here is not a  
profile with module, but a dependency, which will look like


dependency
artifactIdcustom-api/artifactId
groupIdorg.dspace.modules/groupId
version1.5.1/version
/dependency

within the dependencies section. This will cause the custom- 
api-1.5.1.jar to added within your lib





I think the trick is WHERE to put my custom .java program so that it  
will be picked up and put in the right place in the application once  
it’s compiled.



Take this example:

Let’s say I make a modification to:

dspace-1.5.1-src-release/dspace-api/src/main/java/org/ 
dspace/app/mediafilter/PDFFilter.java


Do I put it in:
Dspace-1.5.1-src-release/dspace/modules/src/main/java/ 
org/dspace/app/mediafilter/PDFFilter.java



And is the package in my new PDFFilter.java still package  
org.dspace.app.mediafilter;


I’m thinking maybe not since I just saw this in the pom.xml file you  
attached to your email last night:  groupIdorg.dspace.modules/ 
groupId


Do I need to create a {dspace-source}/custom-api directory??

Please forgive me – this is the first time I have worked with  
pom.xml files!


Thanks for experimenting with this. It can be a challenge at first.   
no, you do not need to create that second project {dspace-source}/ 
custom-api.


Likewise, initially, just use the same package name for the moment.  
Lets just verify you get what you want in {dspace-source}/dspace/ 
target/dspace-1.5.1-build.dir/lib


Mark




Thanks!
Sue

From: Diggory Mark [mailto:mdigg...@gmail.com]
Sent: Tuesday, February 03, 2009 5:24 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java  
programs, in 1.5.1


Or to be more explicit you add the pom at

{dspace-source}/dspace/modules/custom-api/pom.xml

and modify the following with modulecustom-api/module

{dspace-source}/dspace/modules/pom.xml

And add custom-api as a dependency in

{dspace-source}/dspace/pom.xml

Mark

On Feb 3, 2009, at 2:14 PM, Diggory Mark wrote:


no

On Feb 3, 2009, at 2:06 PM, Thornton, Susan M. (LARC-B702)[NCI  
INFORMATION SYSTEMS] wrote:



Do I need to modify {dspace-source}/pom.xml ??

From: Diggory Mark [mailto:mdigg...@gmail.com]
Sent: Tuesday, February 03, 2009 4:10 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java  
programs, in 1.5.1


Susan,

The way to do it without altering the code in place requires  
creating a custom maven project within the dspace/modules/  
directory, wiring it into the dspace/pom.xml and dspace/modules/ 
pom.xml so that it compiles into the build process.


At this point, I'm seeing community member using both approaches,  
and I'm unsure which I would most recommend. But here's what I try  
to approach as a best practice.


1.) I don't like to alter code in place in dspace-api, dspace-xmlui  
or any of those projects unless I intend to contribute it into the  
next release of DSpace 1.5.x


2.) Keeping all those projects around lengthens the build process  
and if your not using all of them (dspace-sword, lni, etc) thats a  
lot of compile time for nothing.


3.) Once configured properly, your changes in dspace/modules/xxx  
will always be separate from the rest of the codebase, but you will  
still need to verify that upgrades don't break your customizations  
by comparing your code to the original.  Something we continue to  
strive to get away from.


So I would recommend the following steps:

a.) create a dspace/modules/custom-api/pom.xml for your api changes.  
That looks something like the attached pom.xml



~
Mark R. Diggory
http://purl.org/net/mdiggory/homepage




~
Mark R. Diggory
http://purl.org/net/mdiggory/homepage





~
Mark R. Diggory
http://purl.org/net/mdiggory/homepage



--
Create and Deploy Rich Internet Apps outside the 

Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-04 Thread Kim Shepherd
Hi Sue,

 

I’m pretty new at this stuff myself, but I’ve had a quick go at it too, to get 
a feel for it. I’m sure Mark will correct me if I’m wrong..

 

Going by these instructions, and assuming your compile was successful, I 
believe the key step is (c), adding appropriate dependencies.

Before trying some, have a look in 
[dspace-source]/dspace/modules/custom-api/target   -- you *should* see 
custom-api-1.5.1.jar or similar.

 

In my testing, I made a trivial change, set up the module poms, compiled with a 
new custom api module, then copied my new jar over to [dspace]/lib and the 
WEB-INF/lib folders in my webapps. It worked just fine. Adding appropriate 
dependencies from the start would have meant that update_webapps and 
update_code would have done that for me, if my understanding is correct.

 

For what it’s worth, I think that I’ll keep just using SVN for my 
testing/development source trees, and manage my small changes in the main 
source, but when I do deploy a patch live on an institution’s Dspace instance, 
I’ll use the custom project approach – it seems as though rapidly 
deploying/removing custom code would be quicker and less error-prone than 
altering code in place.

 

Cheers,

 

Kim.

 

From: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS] 
[mailto:susan.m.thorn...@nasa.gov] 
Sent: Thursday, 5 February 2009 12:47 p.m.
To: Diggory Mark
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java programs,in 1.5.1

 

I think I’m still missing a piece of the puzzle though since my modified .java 
program is NOT making it into the dspace-api-1.5.1.jar file in /dspace/lib.

 

I have added the new sub-directory custom-api and file pom.xml file under 
{dspace-source}/dspace/modules.

I added the following to {dspace-source}/dspace/modules/pom.xml:  
modulecustom-api/module (I also commented out the xmlui, lni, oai, and 
sword modules in this pom.xml file (for the time being until we are using them, 
as per your suggestion)).

I added the following to {dspace-source}/dspace/pom.xml:

profile

 idcustom-api/id

 activation

file

   exists../custom-api/pom.xml/exists

/file

 /activation

 modules

module../custom-api/module

 /modules

  /profile

 

I think the trick is WHERE to put my custom .java program so that it will be 
picked up and put in the right place in the application once it’s compiled.

 

 

Take this example:

 

Let’s say I make a modification to:

 


dspace-1.5.1-src-release/dspace-api/src/main/java/org/dspace/app/mediafilter/PDFFilter.java
  

 

Do I put it in:


Dspace-1.5.1-src-release/dspace/modules/src/main/java/org/dspace/app/mediafilter/PDFFilter.java


 

 

And is the package in my new PDFFilter.java still package 
org.dspace.app.mediafilter;

 

I’m thinking maybe not since I just saw this in the pom.xml file you attached 
to your email last night:  groupIdorg.dspace.modules/groupId

 

Do I need to create a {dspace-source}/custom-api directory??

 

Please forgive me – this is the first time I have worked with pom.xml files!

 

Thanks!

Sue





From: Diggory Mark [mailto:mdigg...@gmail.com] 
Sent: Tuesday, February 03, 2009 5:24 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java programs, in 
1.5.1

 

Or to be more explicit you add the pom at

 

{dspace-source}/dspace/modules/custom-api/pom.xml

 

and modify the following with modulecustom-api/module

 

{dspace-source}/dspace/modules/pom.xml

 

And add custom-api as a dependency in 

 

{dspace-source}/dspace/pom.xml

 

Mark

 

On Feb 3, 2009, at 2:14 PM, Diggory Mark wrote:

 

no

 

On Feb 3, 2009, at 2:06 PM, Thornton, Susan M. (LARC-B702)[NCI INFORMATION 
SYSTEMS] wrote:

 

Do I need to modify {dspace-source}/pom.xml ??

 



From: Diggory Mark [mailto:mdigg...@gmail.com] 
Sent: Tuesday, February 03, 2009 4:10 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java programs, in 
1.5.1

 

Susan,

 

The way to do it without altering the code in place requires creating a custom 
maven project within the dspace/modules/ directory, wiring it into the 
dspace/pom.xml and dspace/modules/pom.xml so that it compiles into the build 
process.

 

At this point, I'm seeing community member using both approaches, and I'm 
unsure which I would most recommend. But here's what I try to approach as a 
best practice.

 

1.) I don't like to alter code in place in dspace-api, dspace-xmlui or any of 
those projects unless I intend to contribute it into the next release of DSpace 
1.5.x

 

2.) Keeping all those projects around lengthens the build process and if your 
not using all of them (dspace-sword, lni, 

[Dspace-tech] DSpace and SRW

2009-02-04 Thread Mr Havercamp
I was wondering if anyone has successfully installed the Search and 
Retrieve Web/URL (SRW/U) service for DSpace.

I've managed to get it to successfully run by installing thew SRW server 
and SRW/DSpace interface from http://code.google.com/p/oclcsrw/ and 
http://code.google.com/p/oclcsrwdspacelucene/ but the configuration 
requires a file called DSpace.SRWDatabase.props which I cannot find 
anywhere.

If anyone has successfully installed it and has it querying their DSpace 
instance, I was wondering if;

1. I am retrieving the SRW source files from the correct location

2. Where I obtain a copy of the DSpace.SRWDatabase.props file

3. Whether the configuration details on the googlecode site 
(http://code.google.com/p/oclcsrw/wiki/ConfigurationFiles) are correct, 
and if not where the correct configuration details can be found.

Any help would be much appreciated.

Cheers


Hayden

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech