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.
I have written some jQuery code to hide these thumbnails on page load.
jQuery("a.image-link img,div.artifact-preview
img").error(function(){jQuery(this).hide();});
I would prefer to not create the img tag at the time that the page is
created. When I look at the METS XML, I do not see any markup related to
access.
My jQuery solution works well until a user logs in. Once a user logs into
the system, they are automatically redirected to the last restricted
thumbnail that they tried to access. If you have any advice on this issue,
I would appreciate it!
Thanks, Terry
--
Terry Brady
Applications Programmer Analyst
Lauinger Information Technology
202-687-7053
------------------------------------------------------------------------------
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