Re: [Dspace-tech] XMLUI Question - Identifying embargo/restricted thumbnails in XSLT (DSpace 3.1)

2013-10-01 Thread Terry Brady
Ivan, Thank you for the encouragement to take a look at the java code. I think I found a simple solution which I will submit as a pull request. The XSLT code changes that take advantage of this data are a bit messy, and I am not certain that they would be applicable for others. 1, Set

Re: [Dspace-tech] XMLUI Question - Identifying embargo/restricted thumbnails in XSLT (DSpace 3.1)

2013-10-01 Thread Muilwijk, M. (Marina)
Hi, we have taken a different approach. In our case, we only wanted this kind of functionality in one theme (of the three we use), so editing the original Java code was not an option. Instead, I wrote a little utility that is called from within that one theme. It uses the ResourcePolicy class

Re: [Dspace-tech] XMLUI Question - Identifying embargo/restricted thumbnails in XSLT (DSpace 3.1)

2013-10-01 Thread helix84
Marina's advice solves the same goal, but does most of the processing in Java rather than XSLT. Which approach you'll take depends only on which technology you're more comfortable with. But as I said, time-based resource policies are currently missing from METS and should be added anyway, so you

Re: [Dspace-tech] XMLUI Question - Identifying embargo/restricted thumbnails in XSLT (DSpace 3.1)

2013-09-30 Thread helix84
Hi Terry, you're right, that information is not there. Arguably, it should, since we have all the other permissions information there. The reason it isn't is that simple embargo (embargo expressed as time-based resource policies) was a new feature in 3.0. One more similar omission is that this

[Dspace-tech] XMLUI Question - Identifying embargo/restricted thumbnails in XSLT (DSpace 3.1)

2013-09-03 Thread Terry Brady
In XMLUI, is there a way to detect that a thumbnail is restricted when generating an item reference? Currently, when a user views a list of items, the thumbnail references are returned. If a thumbnail is restricted, the image is not returned because the request is redirected to the login screen.

Re: [Dspace-tech] XMLUI Question - Identifying embargo/restricted thumbnails in XSLT (DSpace 3.1)

2013-09-03 Thread helix84
Hi Terry, thumbnails in XMLUI are not put in by Java code. There's XSL which processes the METS file's (METS example [1], called here [2], actual template here [3]) fileSec section and links to the thumbnail bitstream. As you can see, there's not access rights information in that section, though.