Re: [Dspace-tech] Events triggered in dspace when Metadata is updated added or removed

2013-02-12 Thread helix84
On Mon, Feb 11, 2013 at 6:20 PM, Mckeane Thomas mckeane.tho...@gmail.com wrote: Are any events triggered when metadata is updated, added or removed in dspace. I want to update the webui submission form i.e add the entry updated removed or added to the web ui of the submission process and also

[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 as

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

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
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

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

2013-02-12 Thread helix84
On Tue, Feb 12, 2013 at 12:51 PM, helix84 heli...@centrum.sk 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-usersm=102617106411067 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette

[Dspace-tech] Getting mimetype from ancestor::mets:METS//mets:fileGrp[@USE='THUMBNAIL']...

2013-02-12 Thread Drover, Matt
Hi, I'm using this code to get the bitstream url: ancestor::mets:METS//mets:fileGrp[@USE='THUMBNAIL']/mets:file/mets:FLoca t[@LOCTYPE='URL']/@xlink:href I can't seem to find the mimetype for the bitstream. This is being used in item-list.xsl in xmlui. In item-view.xsl the code @MIMETYPE is

Re: [Dspace-tech] Getting mimetype from ancestor::mets:METS//mets:fileGrp[@USE='THUMBNAIL']...

2013-02-12 Thread helix84
On Tue, Feb 12, 2013 at 2:36 PM, Drover, Matt mattdro...@mun.ca wrote: Hi, I'm using this code to get the bitstream url: ancestor::mets:METS//mets:fileGrp[@USE='THUMBNAIL']/mets:file/mets:FLocat[@LOCTYPE='URL']/@xlink:href Hi Matt, I'm not familiar with the ancestor:: syntax, but assuming

Re: [Dspace-tech] Events triggered in dspace when Metadata is updated added or removed

2013-02-12 Thread Mckeane Thomas
Yes, I was talking about the metadata fields. Thanks for the clarification. On Tue, Feb 12, 2013 at 4:36 AM, helix84 heli...@centrum.sk wrote: On Mon, Feb 11, 2013 at 6:20 PM, Mckeane Thomas mckeane.tho...@gmail.com wrote: Are any events triggered when metadata is updated, added or removed

Re: [Dspace-tech] Getting mimetype from ancestor::mets:METS//mets:fileGrp[@USE='THUMBNAIL']...

2013-02-12 Thread Drover, Matt
HI, I tesed your code and it didn't display the mimetype. Here is what I have in my template now. It displays the proper thumbnail for the bitstream, or the default icon. I can can get all the details of the bitstream, except the mime type. If there any docs explaining how to use/read the mets

Re: [Dspace-tech] going from 3 to 1.8.2

2013-02-12 Thread Jose Blanco
Still not working. I had the sysadmin here recover .m2 from before I started working on 3.0, and jut tried rebuilding it, and I'm getting the same error. I'm wondering if it's something in the cofig directory since that is now changed every time a build is done. Any ideas? On Mon, Feb 11, 2013

Re: [Dspace-tech] Getting mimetype from ancestor::mets:METS//mets:fileGrp[@USE='THUMBNAIL']...

2013-02-12 Thread helix84
Sorry, my previous example was wrong. This should work in your example (assuming the thumbnail exists): xsl:value-of select=//mets:fileGrp[@USE='THUMBNAIL']/mets:file/@MIMETYPE/ Unrelated to your question, do you have a particular reason to use //? I understand it's less efficient than the

Re: [Dspace-tech] Events triggered in dspace when Metadata is updated added or removed

2013-02-12 Thread helix84
Thomas, this looks like a really ugly workaround. Do your metadata fields really change so often that it's worth to automate it? Only the admin can change them and the admin can usually also restart the servlet container. What kind of schema are you using that can't be defined once and stay the

Re: [Dspace-tech] going from 3 to 1.8.2

2013-02-12 Thread helix84
Hi Jose, I'm ignoring here the whole ~/.m2 discussion and replying only to your original problem (java.lang.IllegalStateException: DSpace kernel cannot be null). This might be a problem with you using configuration from a different DSpace version, as I explained here:

Re: [Dspace-tech] Getting mimetype from ancestor::mets:METS//mets:fileGrp[@USE='THUMBNAIL']...

2013-02-12 Thread Drover, Matt
Hi, This works perfect on my page (item-list) xsl:value-of select=//mets:fileGrp[@USE='THUMBNAIL']/mets:file/@MIMETYPE/ but when I try xsl:value-of select=$context/mets:fileSec/mets:fileGrp[@USE='THUMBNAIL']/mets:file/@MIMETYPE/ where context is set to . above, I get nothing. Here is

Re: [Dspace-tech] going from 3 to 1.8.2

2013-02-12 Thread Peter Dietz
Try running: mvn clean, and then do your normal build. I have to do that occasionally to clear out some old packages after changing some poms. i.e. internally going from elasticsearch-0.18.6 to elasticsearch-0.19.12 Deleting your .m2/repository is generally safe. It all gets redownloaded upon

Re: [Dspace-tech] going from 3 to 1.8.2

2013-02-12 Thread Jose Blanco
I restored the old config directory and it all works now. dspace 3 must change something in config that causes this error. I think I'll find out eventually what it is. On Tue, Feb 12, 2013 at 1:44 PM, Peter Dietz pdiet...@gmail.com wrote: Try running: mvn clean, and then do your normal build.

Re: [Dspace-tech] Getting mimetype from ancestor::mets:METS//mets:fileGrp[@USE='THUMBNAIL']...

2013-02-12 Thread Drover, Matt
Here is an update, the @THUMBNAIL is only available for bitstreams that have a thumbnail generated by the system. See this this mets xml: mets:fileSec mets:fileGrp USE=CONTENT mets:file CHECKSUMTYPE=MD5 GROUPID=group_file_5375 ID=file_5375 MIMETYPE=image/jpeg SIZE=4405