Re: [Dspace-tech] dspace-rdf feature - generating ORE RDF

2009-07-03 Thread Mark Diggory
Joan,

I saw your email to me earlier, sorry I've been a bit swamped to
respond quickly.  I will try to give you the quick answer. caution,
this is not a stable addon for dspace and so its installation may
require some further "back and forth" to get right.

On Thu, Jul 2, 2009 at 11:42 PM, Joan Caparros wrote:
> Dspace-rdf is an addon that generates ORE RDF.
> I want to use this feature in my Dspace, Anyone know the steps to install it?
> in another post the developer comment that is needed to add some lines in the 
> sitemap.xmap file... but I think that's not all to make it works.
> Did you add this feature and can write the steps to add it? How did you 
> config your sitemap.xmap?

There are two addons that are neccessary, dspace-rdf and
dspace-xmlui-rdf-aspect the first just produces the rdf using OpenRDF
libraries, the second wires dspace-redf into the XMLUI Cocoon pipeline
so the rdf/xml can be resolved in the webapplication. You shouldn't
really need to check these out, but here are the sources.

http://scm.dspace.org/svn/repo/modules/dspace-rdf/trunk/
http://scm.dspace.org/svn/repo/modules/dspace-xmlui-rdf-aspect/trunk/

You are correct that currently they require configuring the sitemap and pom.xml

You will want to try the following configuration which should allow
your xmlui to be built with the supporting libraries:

1.) add the following dependencies to your /dspace/modules/xmlui/pom.xml

 
 org.dspace
 dspace-xmlui-rdf-aspect
 1.5.1-SNAPSHOT
  

  
 org.dspace
 dspace-rdf
 1.5.1-SNAPSHOT
  

2.) add the following lines to your
/dspace/modules/xmlui/src/main/webapp/WEB-INF/sitemap.xmap which you
will need to copy out of your
/dspace/target/dspace-1.5.1-...dir/webapps/xmlui/WEB-INF/sitemap.xmap

Under the "DRI matcher" you'll want to add the following:

  







 
 

   


 



I havn't had anyone want to install this on their site so I havn't
been improving its installation.  But, in dspace 1.5.2 and later, we
can deploy this without all the above sitemap.xmap work

Good luck and I'll be glad to answer any questions you may have about
this as your installing it.

Note, there are some other projects out there that produce ORE, the
TAMU harvester project provides a ORE crosswalk fro the OAI Gateway
you may have an interest in.

Cheers,
Mark
-- 
Mark R. Diggory
@mire - http://www.atmire.com

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


[Dspace-tech] Weird behavior while translating metadata labels

2009-07-03 Thread Ricardo Beltrán
Hello all,
I'm upgrading to DSpace 1.5.2 and I've installed a bilingual
(English/Spanish) instance. I've just added the language
switcher to the header.jsp in order to let the user switch languages at any
time. Everything works fine with the exception
of metadata labels at the item view (see for example
http://biiacs2.cide.edu/handle/10089/3502) .
If you click the English/Spanish language switcher everything  will
translated but not the metadata labels, with the
unique exception of the Date/Fecha label.
I've reviewed many times the Messages.properties and Messages_es.properties
files and I just can't see
an error.

Thanks for your help
Ricardo Beltran
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Weird behavior while translating metadata labels

2009-07-03 Thread François Parmentier
Hi.

I just went to the page you point, and got the metadata labels in
French (which is my preferred language in Firefox), whatever the
chosen interface.

My 2 cents,
--
François

2009/7/3 Ricardo Beltrán :
> Hello all,
> I'm upgrading to DSpace 1.5.2 and I've installed a bilingual
> (English/Spanish) instance. I've just added the language
> switcher to the header.jsp in order to let the user switch languages at any
> time. Everything works fine with the exception
> of metadata labels at the item view (see for example
> http://biiacs2.cide.edu/handle/10089/3502) .
> If you click the English/Spanish language switcher everything  will
> translated but not the metadata labels, with the
> unique exception of the Date/Fecha label.
> I've reviewed many times the Messages.properties and Messages_es.properties
> files and I just can't see
> an error.
>
> Thanks for your help
> Ricardo Beltran
>
> --
>
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>

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


[Dspace-tech] Unable to use the feedback system and send out emails

2009-07-03 Thread Martyn Yap Bao Yu (UniSIM)
Hi All,

I have setup DSpace successfully, but it seems that I am unable to get the mail 
setting to work correctly as well as the feedback system.

Are there any other configurations required apart from setting the dspace.cfg 
to include the mail server? I managed to ping and access to our internal mail 
server.

Attached is the error log.

Many Thanks!

2009-07-03 15:28:00,583 WARN  org.dspace.app.webui.servlet.InternalErrorServlet 
@ :session_id=DD4089D937F7C331CF6E98603B242614:internal_error:-- URL Was: 
http://sst.unisim.edu.sg:8080/dspace/feedback
-- Method: GET
-- Parameters were:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1949)
at 
org.dspace.app.webui.servlet.FeedbackServlet.doDSGet(FeedbackServlet.java:95)
at 
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:151)
at 
org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:636)


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


Re: [Dspace-tech] Weird behavior while translating metadata labels

2009-07-03 Thread Claudia Jürgen
Hi Ricardo,

you got to check the section in the Messages*.properties which starts 
with "metadata."
The default labels supplied are:

metadata.dc.contributor.*   = Authors
metadata.dc.contributor.author  = Authors
metadata.dc.contributor.editor  = Editors
metadata.dc.date.issued = Issue Date
metadata.dc.description = Description
metadata.dc.description.abstract= Abstract
metadata.dc.identifier  = Other Identifiers
metadata.dc.identifier.citation = Citation
metadata.dc.identifier.govdoc   = Gov't Doc #
metadata.dc.identifier.isbn = ISBN
metadata.dc.identifier.ismn = ISMN
metadata.dc.identifier.issn = ISSN
metadata.dc.identifier.uri  = URI
metadata.dc.publisher   = Publisher
metadata.dc.relation.ispartofseries = Series/Report no.
metadata.dc.subject = Keywords
metadata.dc.title   = Title
metadata.dc.title.alternative   = Other Titles

If you do use any other metdatafield in the default item display, you 
got to make an entry:
metadata.[schema].[element] (for an unqualified metdata field)
metadata.[schema].[element].* (for all metdata fields with this schema 
and element)
metadata.[schema].[element].[qualifier] (for a qualified metadata field)

If you do use customize versions of the message catalogues, put these in
[dspace-source]/dspace/modules/jspui/src/main/resources
run mvn package and ant update and redeploy.

Hope that helps

Claudia Jürgen




Ricardo Beltrán schrieb:
> Hello all,
> I'm upgrading to DSpace 1.5.2 and I've installed a bilingual
> (English/Spanish) instance. I've just added the language
> switcher to the header.jsp in order to let the user switch languages at any
> time. Everything works fine with the exception
> of metadata labels at the item view (see for example
> http://biiacs2.cide.edu/handle/10089/3502) .
> If you click the English/Spanish language switcher everything  will
> translated but not the metadata labels, with the
> unique exception of the Date/Fecha label.
> I've reviewed many times the Messages.properties and Messages_es.properties
> files and I just can't see
> an error.
> 
> Thanks for your help
> Ricardo Beltran
> 
> 
> 
> 
> 
> --
> 
> 
> 
> 
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

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


[Dspace-tech] Re :Error In Feedback And E-Mail

2009-07-03 Thread Hardik Mishra
Hi Friend

I can only say  from error code you have posted is that , it seems to have
problems in Host name in Dspace.cfg file.
So, can you post your dspace.cfg 's part which contains e-mail
configuration.

-- 
*Best Regards
Hardik Mishra
Jr. Software Engineer
*
*Twitter : webinito*
*WebInito Technologies - Ahmedabad - Gujarat (India).

Give a man a fish, and you feed him for a day. Teach a man to catch fish and
you feed him for a lifetime.
*
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Another sql query question

2009-07-03 Thread George Hamilton
Hi Mika

I'm not suggesting this is the best way of doing it but this works for 
me. Just replace the two 'test's with the name of the community.

SELECT name, handle FROM collection col, handle h, (SELECT collection_id 
FROM community2collection com2col, (SELECT c.community_id FROM community 
c WHERE c.name = 'test' UNION SELECT child_comm_id FROM 
community2community WHERE parent_comm_id = (SELECT c.community_id FROM 
community c WHERE c.name = 'test')) t1 WHERE com2col.community_id = 
t1.community_id) t2 WHERE col.collection_id = t2.collection_id AND 
col.collection_id = h.resource_id AND h.resource_type_id = 3;

George

mikan.d.dspace listmail wrote:
> Im trying to create SQL query that would retrieve all collections and
> their handles from the given community. This means that collections
> under subcommunities of the given root community would be returned as
> well. Would someone have a script for this?
>
> Below is something that I've come up so far. It works fairly well,
> allthough it doesnt include the collections under subcommunities of
> the given root community.
>
> create temp view testi as (
> SELECT collection.name, collection.collection_id  FROM collection,
> community2collection
> WHERE ((community2collection.collection_id = collection.collection_id) AND
>
> (community2collection.community_id IN (SELECT community.community_id
> FROM community,
>
> community2community WHERE ((community2community.child_comm_id =
> community.community_id) AND
>
> (community2community.parent_comm_id = 52) ORDER BY collection.name);
> select name, handle from testi, handle
> where handle.resource_id = testi.collection_id;
>
>
> Thanks for any help,
> Mika
>
> --
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
>   


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


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


Re: [Dspace-tech] Emetsger Embargo Patch on an Existing Database -- Browse

2009-07-03 Thread Sean Carte
2009/7/2 Halliday, James Leonard 
>
> > I have a similar problem, but no newly defined field: I can't browse
> > by author or subject, as I get a java.lang.NullPointerException very
> > similar (or so it seems to me) to Lyn's error. (I've included the
> > cocoon and java stacktraces below.)
>
> The same thing happened to me when I was implementing Embargoes (Author and 
> Subject browse stopped working), and here is the problem that I uncovered; 
> hopefully the same fix will work for you. (Note: I have only worked with the 
> 1.5.1 patch, but presumably the same fix will work for you.) I don't think 
> it's related to patching an existing database vs. using a fresh one, because 
> the error happens even on a fresh database, once you add data that includes 
> subject or author information.
>
> Your patch file is not patching the DSpace code correctly. Check the 
> dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java class and the 
> patch file. It looks like the patch file is patching the BrowseByValue 
> method, instead of patching the BrowseByItem method, which it should be 
> patching. The two methods look very similar, so the patch is getting 
> confused. Double-check that class against the patch file manually, and make 
> sure the appropriate changes are being made. Once I did that, all of my 
> browsing problems were fixed.
>
> Another note: this bug is hard to find because the stack trace is coming from 
> the wrong place. There is a bug in the core DSpace class 
> org.dspace.app.xmlui.aspect.artifactbrowser.ConfigurableBrowse.java, in the 
> getValidity() method that is causing a null pointer exception when the 
> validity should be null (the last line for logging should include a null 
> pointer check).
>
> Jim Halliday

Ugh! Reading Java makes my brain hurt.

You do appear to be correct! The patched
dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java has the
embargo stuff in the browseByValue method from line 536 (of the
patched file). I've copied those lines (536-566) to a similar spot in
the preceding browseByItem method (line 366) and commented them out in
the browseByValue method.

I can now browse by Author, Subject as well as Titles.

Thank you Jim!

Sean
--
Sean Carte
esAL Library Systems Manager
+27 72 898 8775
+27 31 373 2490
fax: 0866741254
http://esal.dut.ac.za/

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