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.
You can find it in the amdSec section above (rightsMD elements), so you
need to find the thumbnail's ID (e.g. ID="file_24") and look up the access
rights in the corresponding <mets:rightsMD
ID="rightsMD_file_25_METSRIGHTS">.

I've done something similar on the item page, so maybe it will help - code
[4], explanation [5].

This work would most likely be suitable for inclusion into DSpace, so
please submit a pull request if you manage to do it.

[1]
http://demo.dspace.org/xmlui/metadata/handle/10673/4/mets.xml?rightsMDTypes=METSRIGHTS
[2]
https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt/aspect/artifactbrowser/discovery.xsl#L178
[3]
https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt/aspect/artifactbrowser/item-list.xsl#L150
[4] https://github.com/DSpace/DSpace/pull/74/files
[5] https://jira.duraspace.org/browse/DS-1193


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to