Kia ora koutou,

This seems to be my week for getting so close and yet so far….

We’re running v5.8 and Mirage2 and have got thumbnails beautifully displaying 
for most items, both in the web interface and the OAI feed.

The exception is where items have:

·         More than one ORIGINAL bitstream generating a thumbnail; and

·         One bitstream doesn’t have ANON READ permissions (eg permissions 
files which are admin-only); and

·         That bitstream is earlier in the bitstream order than a bitstream 
which does have ANON READ permissions
Essentially, the interfaces display whichever thumbnail comes first in the 
bitstream order, without regard for whether or not the user can view it.

I can think of two potential approaches to fix this:


1)      Change our XSL (in both item-view.xsl/item-list.xsl, and in oai_dc.xsl) 
to choose the thumbnail from the set of bitstreams with ANON READ permissions, 
rather than the full set of bitstreams. I have managed to do this in 
item-view.xsl/item-list.xsl based on the url’s isAllowed=y parameter which is 
calculated for the current user, which is great (and am happy to share the xsl 
if anyone else wants it!). But once I took a look at the OAI it became obvious 
the thumbnail urls don’t include that parameter there (I’d be hoping they would 
be based on the Anonymous user) or any other form of bitstream permissions 
data. Maybe this would be codable in the java?



2)      Change the bitstream order. Doing this manually through the web 
interface on an item-by-item basis is  p  a  i  n  f  u  l  l  y      
sloooooooooow – does anyone know a way to somehow do it in batch? (This may be 
wishful thinking: I’ve looked at the underlying database structure and I don’t 
even know the logic of what I want: somehow to have bitstreams with ANON READ 
permissions to be reassigned lower bitstream order numbers than other 
bitstreams.)

Honestly both sound like even if a solution is possible it would be painfully 
complex, but thought it worth a try!

Ngā mihi,

Deborah
––––––––––––––––––––––––––––––––––
Deborah Fitchett
Head of Department: Digital Services

––––––––––––––––––––––––––––––––––
Library, Teaching and Learning – Te Wharepūrākau
PO Box 85064, Lincoln University
Lincoln 7647, Christchurch, New Zealand
+64 3 423 0358
[email protected]<mailto:[email protected]>
ltl.lincoln.ac.nz

––––––––––––––––––––––––––––––––––
Lincoln University
Te Whare Wānaka o Aoraki
––––––––––––––––––––––––––––––––––


________________________________

"The contents of this e-mail (including any attachments) may be confidential 
and/or subject to copyright. Any unauthorised use, distribution, or copying of 
the contents is expressly prohibited. If you have received this e-mail in 
error, please advise the sender by return e-mail or telephone and then delete 
this e-mail together with all attachments from your system."

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to