Re: [Dspace-tech] Using DRI during processing mets.xml

2013-04-11 Thread helix84
It's actually trivial because the data is already available in the SFXLink variable. So just insert where you need it within this template (assuming the Mirage theme): https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/ite

Re: [Dspace-tech] Using DRI during processing mets.xml

2013-04-10 Thread margaret_vail
Hi Helix, I am trying to do what you explained, I want the sfx link to appear in the metadata section. Where the sfx link data is only available at the DRI level. Could you please expand your answer a bit, i'm not sure where I should place the code examples. I am using a custom theme based off of

Re: [Dspace-tech] Using DRI during processing mets.xml

2013-02-13 Thread Vlastimil Krejcir
So, I played with it a bit today, however, using Xinclude (so during XSL traformation use together with xpointer and setting up into sitemap.xmap) leads to the same behaviour as before (= weird timeouting). We solved our task using a different way (populating mets.xml with what we need

Re: [Dspace-tech] Using DRI during processing mets.xml

2013-02-12 Thread helix84
On Tue, Feb 12, 2013 at 12:51 PM, helix84 wrote: > http://cocoon.apache.org/2.0/faq/faq-xslt.html#faq-6 That broken link there refers to this email: http://marc.info/?l=xml-cocoon-users&m=102617106411067 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspac

Re: [Dspace-tech] Using DRI during processing mets.xml

2013-02-12 Thread helix84
Vlastik, if you want to study the details (I didn't get that far) of using Xinclude instead of document(), I suggest you to start here: http://cocoon.apache.org/2.0/faq/faq-xslt.html#faq-6 If you figure out something useful, I'd love to know! Regards, ~~helix84 Compulsory reading: DSpace Maili

Re: [Dspace-tech] Using DRI during processing mets.xml

2013-02-12 Thread Vlastimil Krejcir
Your example is useful only in certain context (there is a trouble with variable visibility). The second solution is pass the neccessary DRI data as a paramater. However, it is not so elegant as use the DRI directly (I mean the code is more complicated passing it as a parameter). Vlastik

Re: [Dspace-tech] Using DRI during processing mets.xml

2013-02-12 Thread helix84
Hi Vlastik, unfortunately, I don't know the correct way. I'd like to know that, too, so hopefully someone here can point it out. Meanwhile, I wanted to share with you the workaround I use - while processing DIM, save the value, element or tree fragment you need to a variable. Then access the vari

[Dspace-tech] Using DRI during processing mets.xml

2013-02-12 Thread Vlastimil Krejcir
Hi all, I have a trouble with using xpath "document($pathtodri)". Assume we have e template which process a mets.xml. Inside such template I want to use some data from a DRI document. Using "cocoon://path_to_DRI_doc" causes weird behaviour - timeouting without an end (processor, network a