[Dspace-tech] Change the way the collection list is displayed in submit link with JSPUI

2009-07-13 Thread Lozeau Patrick Michael
Hi,

 

I'm trying to modify how the collection list is displayed in the first step of 
the submission process. 

 

I'm aware of the Manakin solution proposed on the DSpace wiki: 
(http://wiki.dspace.org/index.php/Change_the_way_the_collection_list_is_displayed_in_submit_link_%28Manakin%29).
 

 

But we are currently running DSpace 1.5.1 with the JSPUI interface and have a 
different problem.

 

We are implementing mandatory ETD submission in the fall and will be increasing 
the number of Thesis & Dissertations collections in the repository. There will 
be a collection for each faculty or department administrative process. (I would 
say around 25 different collections.)

 

We currently repeat the name of the community in the collection name for all 
the other collections in the repository. (i.e. "Faculty/Department XYZ - 
Publications")

 

I was thinking of inverting this so that all thesis collections start with 
"Thesis & Dissertations - Faculty/Department XYZ". That way, they would all 
show up at the end of the collection list grouped together. (Easier for the 
students to find.)

 

So, any solutions or ideas on displaying the list of collections in a better 
way would be appreciated. If you see any future problems with my proposed 
solution, I would appreciate the heads up.

 

Thanks for reading 'till the end! :o)

 

Patrick M. Lozeau, M.I.S.

Librarian · Digital Libraries

Direction des bibliothèques

Université de Montréal

 

514-343-6111 #5225

pm.loz...@umontreal.ca  

 

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-devel] [Dspace-general] show HTML data

2009-07-13 Thread Patrick K. Etienne

Mark,

Many thanks for your comments!

And to the audience at large, for what it's worth, I'm certainly in  
agreement with Mark and Alan concerning the use of html within  
metadata fields. I believe the only reason we have this going on in  
our repository is due to a messy recovery we had to manage after one  
of our servers was compromised. I'm aiming to have our data cleaned up  
so we no longer have html content in metadata fields. If all goes  
well, we'll be back to best practices rather than messy hacks.


 - Patrick

On Jul 13, 2009, at 4:41 PM, Mark Diggory wrote:

On Mon, Jul 13, 2009 at 7:07 AM, Antonio Cuomo> wrote:
Dear Mark, it's the common behavior with all the DSpace  
installation i have

seen (MIT included).

The problem is that all the data in the field dc.description are  
saved as

plain text for security issues.


I understand now, this is a discussion about Item metadata fields, not
Community Collection descriptions where html content is allowed. I
agree with Alan's assessment here:

1.) I really do not advise placing html content into metadata fields.
this will cause much difficulty downstream in the application when
those fields are rendered into things like  fields, oai records and other xml centric serializations

2.) Placing html into metadata fields suggests that they are more than
content, but also presentation. Overall this is a very bad practice
and I do not recommend doing it.

If you do feel it necessary to approach doing this you might approach
some of Patricks comments, but I will heavily caution that if the user
inputs ill-formed xml, it will break the rendering pipeline and result
in a 500 error page being rendered. The concern here is that the field
value is parsed into the sax stream before the i18n and serialization
transformations occur and thus needs to be well formed for those
stages to occur.

Another alternative might be to look at using JTidy to cleanup the
value prior to having saxon or xalan parse it. See for instance

http://scm.dspace.org/svn/repo/modules/dspace-rdf/trunk/src/main/java/org/dspace/adapters/rdf/DSpaceObjectAdapter.java

Mark

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

--
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited  
time,
vendors submitting new applications to BlackBerry App World(TM) will  
have
the opportunity to enter the BlackBerry Developer Challenge. See  
full prize

details at: http://p.sf.net/sfu/Challenge
___
Dspace-devel mailing list
dspace-de...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel


---
Patrick K. Étienne
Systems Analyst
Digital Library Development
Library and Information Center
Georgia Institute of Technology
email: patrick.etie...@library.gatech.edu
phone: 404.385.8121

"Mediocre Writers Borrow; Great Writers Steal" - T.S. Eliot

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Trying to access to SWORD's interface

2009-07-13 Thread Stuart Lewis
Hi Joan,

SWORD is designed to be a machine to machine interface, so there is not
a lot see from your browser. The one URL that should work for you is:

http://www.your-dspace.com/sword/servicedocument 

Your browser should prompt you for a username and password. Enter a
valid DSpace account username and password from your DSpace instance.
You will be returned a page of xml - a SWORD (atom) service document.
This will contain information about the DSpace collections that the user
is allowed to deposit into. It will also list the deposit URLs for
performing the deposits. If you try to visit one of these deposit URLs
in your browser then you will only receive an error message as the URLs
are expecting to receive packages rather than requests from a browser.

Hope that helps,



Stuart Lewis
IT Innovations Analyst and Developer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: 64 9 373-7599 x81928
http://www.library.auckland.ac.nz/



-Original Message-
From: Joan Caparros [mailto:jcapar...@cesca.es] 
Sent: Tuesday, 14 July 2009 1:00 a.m.
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Trying to access to SWORD's interface

Today I've tried to access to the Sword interface of my dspace 1.5.2
Like jmlui and xmlui interfaces I have added



into my server.xml of my Tomcat.

But that seems to be not enough, I'm missing something?
right now I'm recieving the following message :

*message* _/sword/_

*description* _The requested resource (/sword/) is not available.


_

_Thank you_

_Joan
_





--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,

vendors submitting new applications to BlackBerry App World(TM) will
have
the opportunity to enter the BlackBerry Developer Challenge. See full
prize  
details at: http://p.sf.net/sfu/Challenge
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-devel] [Dspace-general] show HTML data

2009-07-13 Thread Mark Diggory
On Mon, Jul 13, 2009 at 7:07 AM, Antonio Cuomo wrote:
> Dear Mark, it's the common behavior with all the DSpace installation i have
> seen (MIT included).
>
> The problem is that all the data in the field dc.description are saved as
> plain text for security issues.

I understand now, this is a discussion about Item metadata fields, not
Community Collection descriptions where html content is allowed. I
agree with Alan's assessment here:

1.) I really do not advise placing html content into metadata fields.
this will cause much difficulty downstream in the application when
those fields are rendered into things like  fields, oai records and other xml centric serializations

2.) Placing html into metadata fields suggests that they are more than
content, but also presentation. Overall this is a very bad practice
and I do not recommend doing it.

If you do feel it necessary to approach doing this you might approach
some of Patricks comments, but I will heavily caution that if the user
inputs ill-formed xml, it will break the rendering pipeline and result
in a 500 error page being rendered. The concern here is that the field
value is parsed into the sax stream before the i18n and serialization
transformations occur and thus needs to be well formed for those
stages to occur.

Another alternative might be to look at using JTidy to cleanup the
value prior to having saxon or xalan parse it. See for instance

http://scm.dspace.org/svn/repo/modules/dspace-rdf/trunk/src/main/java/org/dspace/adapters/rdf/DSpaceObjectAdapter.java

Mark

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

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-devel] [Dspace-general] show HTML data

2009-07-13 Thread Patrick K. Etienne
I'm going to chime in here as I've also recently been working with an  
issue related to (read: learning about) html content within dc tags  
and the rendering thereof within Manakin (cocoon).


Antonio, you and I are in the same situation. We both have "html" data  
(actually stored with entity references) within our databases that we  
need our end users' browsers to render as html. The trouble is that  
there is only one "parsing" step between our databases and what the  
user sees on his/her browser (that step would be the browser engine's  
actual parsing of the content, if I haven't missed my mark).


Parsing: transforms "<" to "<" and "<" to interpretation as an  
actual node ().

Serializing: transforms nodes into "<" and "<" into "<".
Two steps each way.

Since our source is of entity references and there is only one parsing  
step, it means that in order to have the browser understand our  
intention of outputting "nodes", we need to add another parsing step.  
Since DSpace uses Cocoon and Cocoon uses Xerces, that means Exslt (at  
least, that's the only extensions package I'm aware of for Xerces).


I think there are two potential ways to go about this.

1)  dyn:evaluate()
This would function like Saxon's saxon:parse() (I think). This is  
probably not the way to go unless it's the only option, as it can get  
to be a very expensive operation fairly quickly.


2) str:replace()
This is probably the way to go, but it might require adding a  
transformer (step 2.5) to the theme's sitemap.xmap to replace the  
entity references with actual symbols before it goes any further down  
the chain. It's possible that a transformer wouldn't be necessary and  
you could just add it in the xslt stylesheet, but I think the  
transformer might keep things more simplified.


Of course the third option would be to not have html data using entity  
references within the database, but for you that presents a security  
risk and for me it's just content I have very little control over.


Other than that, if anyone has any further comments on this issue or  
parsing/serializing as it relates to cocoon/dspace, the feedback would  
be appreciated!


 - Patrick

P.S. - Antonio, there's a good chance that I'll be exploring the  
options I listed above over the next couple weeks, but I'll be out  
most of this week, if you like I can keep you informed



On Jul 13, 2009, at 10:07 AM, Antonio Cuomo wrote:

Dear Mark, it's the common behavior with all the DSpace installation  
i have seen (MIT included).


The problem is that all the data in the field dc.description are  
saved as plain text for security issues.


so the data must to be reconverted in html before being pushed to  
the UI.


so, do you know what is the java class that retrieve the information  
from the database and pass it to the UI?



thank you very much
Antonio



On Mon, Jul 13, 2009 at 9:16 AM, Mark Diggory   
wrote:

Antonio,

It is unclear why your case is not working.  I can assure you that a
default installation of DSpace Manakin XMLUI will allow you to place
html in the form fields for any Community/Collection and that will
render as HTML in the Community/collection views without being
escaped, this is expected behavior.  IT shouldn't require altering the
xslt templates to correct for your problem, there is apparently
something else going wrong with your installation.  HTML escaping is
not used when the content is stored in the database, it is stored as
plain old unescaped html text.  I suspect that there is something
concerning your environment different from a typical default
installation running on tomcat/linux that is giving rise to this
problem.

> the "problem" that the data inside the database are saved as text  
and

> special character are added to avoid SQL-injection

Are you running some sort of sql-injection filtering in-front of  
DSpace?


Mark

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

On Sat, Jul 11, 2009 at 3:33 AM, Antonio Cuomo> wrote:

> Dear Mark, thank you for your reply,
>
> unfortunately i didn't worked.
>
> The problem is:
> cocoon throught a java class take the data from the data base and  
pass them

> directly to manakin without any change.
>
> manakin build up the layout the sent it to the browser with the  
data cocoon

> passed
>
>
> the "problem" that the data inside the database are saved as text  
and

> special character are added to avoid SQL-injection
> so if i write:
>  Ciaoforever
>
> the data appears in the data base in this way
>
> 

Ciao


for ever

> > and so what the browser receive is > >

Ciao


for ever

> > that is visualized as > Ciaoforever > > what i need is to decode this special carachers < and > in < and > > > to do this i can try to modify the xsl DIM-Handler (do u know how?) > > or the java cocoon class (do you know witch one and how?) > > Thank you very much > Antonio > > > On Sat, Jul 11, 2009 at 3:02 AM, Mark Diggory wrote: >> >


Re: [Dspace-tech] AJP Errors

2009-07-13 Thread Mark H. Wood
On Mon, Jul 13, 2009 at 11:42:01AM -0400, Mark H. Wood wrote:
> Yup, we have that too now.  This seems to be related to:
> 
>   http://www.mail-archive.com/us...@cocoon.apache.org/msg42803.html
> 
> and the gist of it seems to be that the app. isn't a block and now
> must be, but I don't see anything in that thread about how to make it
> so.  Can someone tell me where the servlet:context element is
> documented?  I've only found it mentioned in the schema so far, and
> that contains no help at all.

Progress, of a sort:  servlet:context is recognized by
org.apache.cocoon.servletservice.spring.ServletDecorator.  Anyway, the
thread mentioned above says that the app. needs to be a block so that
it has a block context.  It appears that the way to do that is
something like:

Index: dspace-xmlui/dspace-xmlui-webapp/pom.xml
===
--- dspace-xmlui/dspace-xmlui-webapp/pom.xml(revision 503)
+++ dspace-xmlui/dspace-xmlui-webapp/pom.xml(working copy)
@@ -46,6 +46,11 @@
 maven-war-plugin
 
false
+  
+
+  ${pom.artifactId}
+
+  

WEB-INF/lib/*.jar
WEB-INF/lib/*.jar

which *should* then allow us to write a context-path like
"blockcontext:/dspace-xmlui-webapp/".  However this then leads to:

2009-07-13 13:55:26,949 ERROR org.springframework.web.context.ContextLoader @ 
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dspace.org.myApplication': Invocation of init method failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Could not create configuration for TreeProcesoor; nested exception is
java.net.MalformedURLException: unknown protocol: blockcontext
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)

which I haven't yet figured out.

...

Oh, rot, the Cocoon-Block-Name doesn't seem to be copied into the
actual installed webapp.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.


pgpSQwSGmN90H.pgp
Description: PGP signature
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] AJP Errors

2009-07-13 Thread Mark H. Wood
On Mon, Jul 13, 2009 at 10:53:58AM +0300, Timo Aalto wrote:
> Hi,
> I tried this patch to see if it would help dealing with a overzealous web
> crawler. Trouble is, when I apply this patch, XMLUI breaks when I start my
> Jetty (6.1.19) servlet container. I'm running XMLUI as root webapp by making
> a symlink "root" in [jetty]/webapps to [dspace]/webapps/xmlui/.
[...]
> 2009-07-13 10:29:07.753::WARN:  Failed startup of context 
> org.mortbay.jetty.webapp.webappcont...@457414c8{,file:/home/dspace/jetty-6.1.19/webapps/root/}
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'dspace.org.myApplication': Invocation of init method failed; 
> nested exception is org.springframework.beans.factory.BeanCreationException: 
> Could not create configuration for TreeProcesoor; nested exception is 
> java.net.MalformedURLException: no protocol: /

Yup, we have that too now.  This seems to be related to:

  http://www.mail-archive.com/us...@cocoon.apache.org/msg42803.html

and the gist of it seems to be that the app. isn't a block and now
must be, but I don't see anything in that thread about how to make it
so.  Can someone tell me where the servlet:context element is
documented?  I've only found it mentioned in the schema so far, and
that contains no help at all.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.


pgpVU3NYKLoM0.pgp
Description: PGP signature
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Question about adding new servlet

2009-07-13 Thread George Kozak
Hi...

I am working on my migration from DSpace 1.4.2 to 1.5.2.  In 1.4.2, I 
had a locally created servlet.  Besides creating the jsps for it and the 
java code, I defined the servlet in /etc/dspace-web.xml.

Where do I do that in DSpace 1.5.2? 

-- 
***
George Kozak
Digital Library Specialist
Division of Library Information Technologies (DLIT), Digital Media Group
501 Olin Library
Cornell University
607-255-8924
***
g...@cornell.edu


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-devel] [Dspace-general] show HTML data

2009-07-13 Thread Lewatle Phaladi
Hi Guys, I am very new to Dspace, I am using ubuntu 9.4, my aim is to install 
dspace 1.5.2 on ubuntu desktop box please help me i tried the online manual 
without success.


-Original Message-
From: Antonio Cuomo [mailto:anto...@parliaments.info]
Sent: Mon 7/13/2009 4:07 PM
To: Mark Diggory
Cc: dspace-tech; dspace-de...@lists.sourceforge.net
Subject: Re: [Dspace-tech] [Dspace-devel] [Dspace-general] show HTML data
 
Dear Mark, it's the common behavior with all the DSpace installation i have
seen (MIT included).

The problem is that all the data in the field dc.description are saved as
plain text for security issues.

so the data must to be reconverted in html before being pushed to the UI.

so, do you know what is the java class that retrieve the information from
the database and pass it to the UI?


thank you very much
Antonio



On Mon, Jul 13, 2009 at 9:16 AM, Mark Diggory  wrote:

> Antonio,
>
> It is unclear why your case is not working.  I can assure you that a
> default installation of DSpace Manakin XMLUI will allow you to place
> html in the form fields for any Community/Collection and that will
> render as HTML in the Community/collection views without being
> escaped, this is expected behavior.  IT shouldn't require altering the
> xslt templates to correct for your problem, there is apparently
> something else going wrong with your installation.  HTML escaping is
> not used when the content is stored in the database, it is stored as
> plain old unescaped html text.  I suspect that there is something
> concerning your environment different from a typical default
> installation running on tomcat/linux that is giving rise to this
> problem.
>
> > the "problem" that the data inside the database are saved as text and
> > special character are added to avoid SQL-injection
>
> Are you running some sort of sql-injection filtering in-front of DSpace?
>
> Mark
>
> --
> Mark R. Diggory
> @mire - http://www.atmire.com
>
> On Sat, Jul 11, 2009 at 3:33 AM, Antonio Cuomo
> wrote:
> > Dear Mark, thank you for your reply,
> >
> > unfortunately i didn't worked.
> >
> > The problem is:
> > cocoon throught a java class take the data from the data base and pass
> them
> > directly to manakin without any change.
> >
> > manakin build up the layout the sent it to the browser with the data
> cocoon
> > passed
> >
> >
> > the "problem" that the data inside the database are saved as text and
> > special character are added to avoid SQL-injection
> > so if i write:
> >  Ciaoforever
> >
> > the data appears in the data base in this way
> >
> > 

Ciao


for ever

> > > > and so what the browser receive is > > > >

Ciao


for ever

> > > > that is visualized as > > Ciaoforever > > > > what i need is to decode this special carachers < and > in < and > > > > > > to do this i can try to modify the xsl DIM-Handler (do u know how?) > > > > or the java cocoon class (do you know witch one and how?) > > > > Thank you very much > > Antonio > > > > > > On Sat, Jul 11, 2009 at 3:02 AM, Mark Diggory > wrote: > >> > >> Use well formed xml here and try to wrap content with a or > >> tag and it should work better for you. You shouldn't require > >> alteration of the xslt for this. > >> > >> > >> hello > >> it is a description > >> > >> > >> Mark > >> > >> -- > >> Mark R. Diggory > >> @mire - http://www.atmire.com > >> > >> 2009/7/10 Antonio Cuomo : > >> > dear D-Space developer/user > >> > > >> > i have a question: > >> > > >> > i have some html code in my Database in the description field, of > course > >> > the > >> > html have been transformed in plain text. > >> > so the database entry is: > >> > hello it is a description > >> > > >> > when DSpace shows the database content it actually shows the text: > >> > hello it is a description > >> > > >> > while i wuold like to say the html resoults instead: > >> > > >> > hello > >> > it is a description > >> > > >> > > >> > > >> > How can i do it? > >> > > >> > i see two possibilities: > >> > > >> > - Overwrite the java class that take data from the database and send > >> > them > >> > to manakin in order to decode the html > >> > > >> > > >> > - working at Mankin level(but it seems me pretty much more > >> > complicated):in > >> > the file DIM-Handler.xsl > >> > > >> > > >> > ... > >> > <-- call > >> > some > >> > html decoder here > >> > ... > >> > > >> > > >> > > >> > I'm sure i'm not the first one who had this need... and i can see some > >> > security issues concerned with the solution > >> > can somebody give me some indication or "a solution"? > >> > > >> > Thank you very much > >> > Antonio > >> > > >> > > >> > ___ > >> > Dspace-general mailing list > >> > dspace-gene...@mit.edu > >> > http://mailman.mit.edu/mailman/listinfo/dspace-general > >> > > >> > > >> > >> > >> > --


[Dspace-tech] Dspace don’t show items when cli ck link author

2009-07-13 Thread Nguyen Hung Thanh
Hi all
After I install DSpace 1.52, I create a collection and submit 1 document (by
vietnamese). When browse by Author  Dspace show all author, but when I click
on the Authors, Dspace don't link to the document. But when I enter data by
English, Dspace run well.
Thanks,
Nguyen Hung Thanh
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-devel] [Dspace-general] show HTML data

2009-07-13 Thread Antonio Cuomo
Dear Mark, it's the common behavior with all the DSpace installation i have
seen (MIT included).

The problem is that all the data in the field dc.description are saved as
plain text for security issues.

so the data must to be reconverted in html before being pushed to the UI.

so, do you know what is the java class that retrieve the information from
the database and pass it to the UI?


thank you very much
Antonio



On Mon, Jul 13, 2009 at 9:16 AM, Mark Diggory  wrote:

> Antonio,
>
> It is unclear why your case is not working.  I can assure you that a
> default installation of DSpace Manakin XMLUI will allow you to place
> html in the form fields for any Community/Collection and that will
> render as HTML in the Community/collection views without being
> escaped, this is expected behavior.  IT shouldn't require altering the
> xslt templates to correct for your problem, there is apparently
> something else going wrong with your installation.  HTML escaping is
> not used when the content is stored in the database, it is stored as
> plain old unescaped html text.  I suspect that there is something
> concerning your environment different from a typical default
> installation running on tomcat/linux that is giving rise to this
> problem.
>
> > the "problem" that the data inside the database are saved as text and
> > special character are added to avoid SQL-injection
>
> Are you running some sort of sql-injection filtering in-front of DSpace?
>
> Mark
>
> --
> Mark R. Diggory
> @mire - http://www.atmire.com
>
> On Sat, Jul 11, 2009 at 3:33 AM, Antonio Cuomo
> wrote:
> > Dear Mark, thank you for your reply,
> >
> > unfortunately i didn't worked.
> >
> > The problem is:
> > cocoon throught a java class take the data from the data base and pass
> them
> > directly to manakin without any change.
> >
> > manakin build up the layout the sent it to the browser with the data
> cocoon
> > passed
> >
> >
> > the "problem" that the data inside the database are saved as text and
> > special character are added to avoid SQL-injection
> > so if i write:
> >  Ciaoforever
> >
> > the data appears in the data base in this way
> >
> > 

Ciao


for ever

> > > > and so what the browser receive is > > > >

Ciao


for ever

> > > > that is visualized as > > Ciaoforever > > > > what i need is to decode this special carachers < and > in < and > > > > > > to do this i can try to modify the xsl DIM-Handler (do u know how?) > > > > or the java cocoon class (do you know witch one and how?) > > > > Thank you very much > > Antonio > > > > > > On Sat, Jul 11, 2009 at 3:02 AM, Mark Diggory > wrote: > >> > >> Use well formed xml here and try to wrap content with a or > >> tag and it should work better for you. You shouldn't require > >> alteration of the xslt for this. > >> > >> > >> hello > >> it is a description > >> > >> > >> Mark > >> > >> -- > >> Mark R. Diggory > >> @mire - http://www.atmire.com > >> > >> 2009/7/10 Antonio Cuomo : > >> > dear D-Space developer/user > >> > > >> > i have a question: > >> > > >> > i have some html code in my Database in the description field, of > course > >> > the > >> > html have been transformed in plain text. > >> > so the database entry is: > >> > hello it is a description > >> > > >> > when DSpace shows the database content it actually shows the text: > >> > hello it is a description > >> > > >> > while i wuold like to say the html resoults instead: > >> > > >> > hello > >> > it is a description > >> > > >> > > >> > > >> > How can i do it? > >> > > >> > i see two possibilities: > >> > > >> > - Overwrite the java class that take data from the database and send > >> > them > >> > to manakin in order to decode the html > >> > > >> > > >> > - working at Mankin level(but it seems me pretty much more > >> > complicated):in > >> > the file DIM-Handler.xsl > >> > > >> > > >> > ... > >> > <-- call > >> > some > >> > html decoder here > >> > ... > >> > > >> > > >> > > >> > I'm sure i'm not the first one who had this need... and i can see some > >> > security issues concerned with the solution > >> > can somebody give me some indication or "a solution"? > >> > > >> > Thank you very much > >> > Antonio > >> > > >> > > >> > ___ > >> > Dspace-general mailing list > >> > dspace-gene...@mit.edu > >> > http://mailman.mit.edu/mailman/listinfo/dspace-general > >> > > >> > > >> > >> > >> > -- > >> Enter the BlackBerry Developer Challenge > >> This is your chance to win up to $100,000 in prizes! For a limited time, > >> vendors submitting new applications to BlackBerry App World(TM) will > have > >> the opportunity to enter the BlackBerry Developer Challenge. See full > >> prize > >> details at: http://p.sf.net/sfu/Challenge > >> _


[Dspace-tech] Trying to access to SWORD's interface

2009-07-13 Thread Joan Caparros
Today I've tried to access to the Sword interface of my dspace 1.5.2
Like jmlui and xmlui interfaces I have added



into my server.xml of my Tomcat.

But that seems to be not enough, I'm missing something?
right now I'm recieving the following message :

*message* _/sword/_

*description* _The requested resource (/sword/) is not available.


_

_Thank you_

_Joan
_




--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] AJP Errors

2009-07-13 Thread Timo Aalto
Hi,
I tried this patch to see if it would help dealing with a overzealous web
crawler. Trouble is, when I apply this patch, XMLUI breaks when I start my
Jetty (6.1.19) servlet container. I'm running XMLUI as root webapp by making
a symlink "root" in [jetty]/webapps to [dspace]/webapps/xmlui/.

I've attached the stacktrace that Jetty spat out during startup.

Cheers,
T

2009/7/11, Mark Diggory :
>
> I spent a little more time organizing the dependencies in xmlui-wing
> and cleared up a small conflict in the dependency tree, here is a
> patch for 1.5.2 that does this.
>
> Cheers,
>
> Mark
>
> --
> Mark R. Diggory
> @mire - http://www.atmire.com
>
>
> --
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
>


-- 
-- 
Timo Aalto
Planning Officer
University of Helsinki Library Coordination Unit
timo dot j dot aalto at helsinki dot fi
2009-07-13 10:29:03.848::INFO:  jetty-6.1.19
2009-07-13 10:29:04.158::INFO:  Extract 
file:/home/dspace/jetty-6.1.19/webapps/cometd.war to 
/tmp/Jetty_0_0_0_0_8080_cometd.war__cometd__.t2qfkl/webapp
0[main] INFO  org.dspace.core.ConfigurationManager  - Loading provided 
config file: /home/dspace/tuotanto/dspace/config/dspace.cfg
14   [main] INFO  org.dspace.core.ConfigurationManager  - Using dspace provided 
log configuration (log.init.config)
14   [main] INFO  org.dspace.core.ConfigurationManager  - Loading: 
/home/dspace/tuotanto/dspace/config/log4j.properties
2009-07-13 10:29:05.344::INFO:  Initializing Spring root WebApplicationContext
2009-07-13 10:29:06.656::INFO:  Apache Cocoon Spring Configurator v1.0.2 is 
running in mode 'prod'.
Loading catalog: 
file:/tmp/Jetty_0_0_0_0_8080_xmlui___.j2q33b/cocoon_xml_resolver_entities/catalog
2009-07-13 10:29:07.753::WARN:  Failed startup of context 
org.mortbay.jetty.webapp.webappcont...@457414c8{,file:/home/dspace/jetty-6.1.19/webapps/root/}
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dspace.org.myApplication': Invocation of init method failed; nested 
exception is org.springframework.beans.factory.BeanCreationException: Could not 
create configuration for TreeProcesoor; nested exception is 
java.net.MalformedURLException: no protocol: /
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at 
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
at 
org.mortbay.jetty.handler.ContextHandl

[Dspace-tech] Dspace in swahili

2009-07-13 Thread Timothy Gitonga
hi all,
just wanted to ask, is there a language pack for dspace in kiswahili?
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech