Re: [Dspace-tech] Help with DIM xsl

2012-05-29 Thread helix84
OK, I found the problem. First, I looked up how to display a single record: http://berstein.cadiretes.cesca.cat:8080/oai/request?verb=GetRecord&metadataPrefix=sample-crosswalk-DIM2DC&identifier=oai:berstein.cadiretes.cesca.cat:123456789/18 You can also view the source DIM here: http://berstein.ca

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread Ricard de la Vega
I swap and... the same. ok, I try to make another thing with this to do it.   About your improvement, now I'm going to make de "like" intothe JIRA.   Thank's very much for your time and help   See you, Ricard  On May 29, 2012 at 1:01 AM helix84 wrote: > OK, I didn't notice it before, bu

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread helix84
OK, I didn't notice it before, but you had the arguments of contains() swapped. Therefore it worked if the strings were equal, but not with a substring. This is the correct order (haystack, needle): or even better: On Tue, May 29, 2012 at 12:48 AM, Ricard de la Vega wrote: > It's a good job! I

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread Ricard de la Vega
On May 29, 2012 at 12:05 AM helix84 wrote: > On Mon, May 28, 2012 at 11:41 PM, Ricard de la Vega > wrote: > > Uhmmm... in the second record (that have a --- in the title, > > http://berstein.cadiretes.cesca.cat:8080/xmlui/handle/123456789/18), I see: > > > > http://purl.org/dc/elements/1.1/";

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread helix84
On Mon, May 28, 2012 at 11:41 PM, Ricard de la Vega wrote: > Uhmmm... in the second record (that have a --- in the title, > http://berstein.cadiretes.cesca.cat:8080/xmlui/handle/123456789/18), I see: > > http://purl.org/dc/elements/1.1/";>hello, That indicates the xsl:when part is invoked, but fo

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread Ricard de la Vega
Uhmmm... in the second record (that have a --- in the title, http://berstein.cadiretes.cesca.cat:8080/xmlui/handle/123456789/18), I see:   http://purl.org/dc/elements/1.1/";>hello,   but I want to see:   http://purl.org/dc/elements/1.1/";>hehttp://hdl.handle.net/123456789/16llo,   or better:   http

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread helix84
On Mon, May 28, 2012 at 11:26 PM, Ricard de la Vega wrote: > Not in the first the record, but in the second and in others yes...  :( I don't understand. Is it working on records which contain the "---" substring in title? Regards, ~~helix84 --

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread Ricard de la Vega
Not in the first the record, but in the second and in others yes...  :( On May 28, 2012 at 11:19 PM helix84 wrote: > On Mon, May 28, 2012 at 11:14 PM, Ricard de la Vega > wrote: > > Oops, I forget a pair of lines at the begining, the code is: > > That was not a problem. The problem is the titl

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread helix84
On Mon, May 28, 2012 at 11:14 PM, Ricard de la Vega wrote: > Oops, I forget a pair of lines at the begining, the code is: That was not a problem. The problem is the title of the item in the link you sent me doesn't contain the "---" substring. Otherwise it works as expected. Regards, ~~helix84

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread Ricard de la Vega
Oops, I forget a pair of lines at the begining, the code is: http://www.w3.org/1999/XSL/Transform"                xmlns:dspace="http://www.dspace.org/xmlns/dspace/dim";                 xmlns:dc="http://purl.org/dc/elements/1.1/";                 xmlns:dcterms="http://purl.org/dc/terms/";          

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread helix84
On Mon, May 28, 2012 at 10:42 PM, Ricard de la Vega wrote: > Uhmmm, I'm making something more wrong, becouse I don't see nothing if I > put: > > "hello", I only can see "hello". :( I copied and pasted your complete code and it works as expected. If you're looking at an item with title "---" you s

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread Ricard de la Vega
Uhmmm, I'm making something more wrong, becouse I don't see nothing if I put:  "hello", I only can see "hello". :(     The complete code is this:     http://www.w3.org/1999/XSL/Transform"                xmlns:dspace="http://www.dspace.org/xmlns/dspace/dim"                xmlns:dc="http://purl.org/

Re: [Dspace-tech] Help with DIM xsl

2012-05-28 Thread helix84
Hi Ricard, basically, you should be able to do this: If you want to see all parent collections, try to replace value-of with: (just for testing, "/" shouldn't be used in production code) Regards, ~~helix84 ---

[Dspace-tech] Help with DIM xsl

2012-05-28 Thread Ricard de la Vega
Hello,   I'm modifying the sample-crosswalk.DIM2DC to change the title value if this are "xxx". I want to put in this case the name of the collection. For exemple, in the following code I want to write "Collection Example Name" instead of "???".           ???               Is this possible? I ca