Hi Jose,
DSpace displays a lock icon by default for any items which are access
restricted. If you are using the latest Embargo system (introduced in
3.0), then an embargo will actually place temporary access restrictions
on the file. Therefore the lock icon will automatically appear while the
item is under embargo, and automatically disappear once the embargo expires.
Here's an example of an Item with a locked file on our demo site (which
is running Mirage 2):
http://demo.dspace.org/xmlui/handle/10673/591
The lock icon appears next to the file name. However, if you login to
the system as someone who has access to the file (e.g. an
Administrator), then the lock icon will disappear.
As you noted, in the XMLUI, this logic is in the item-view.xsl.
For Mirage 2, it's in the 'getFileIcon' template:
https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui-mirage2/src/main/webapp/xsl/aspect/artifactbrowser/item-view.xsl#L693
For Mirage 1, the same check is performed as part of the "mets:file"
template:
https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L419
I don't recall off the top of my head when this was added into DSpace
(possibly 4.0?).
- Tim
On 6/6/2016 1:26 PM, Jose Blanco wrote:
I have a situation in which I display an icon indicating that the
bitstream is restricted on the item page. For example:
https://deepblue.lib.umich.edu/handle/2027.42/120430
The way the icon is place on the bitstream is done in item-view.xsl.
It checks if the bistream description contains "Access restricted" in it.
We have a scenario in which some of these bitstreams become available
to everyone after a period of time. So I keep track of this in a
spreadsheet and I remove the "Access restricted" message portion of
the file description, so the icon wont be displayed.
I noticed that the Ideals repository uses icons to indicate access
restrictions, and I'm wondering how the situation I just described is
handled there or in general. Is there some better way of doing this?
Thank you!
Jose
--
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 dspace-tech+unsubscr...@googlegroups.com
<mailto:dspace-tech+unsubscr...@googlegroups.com>.
To post to this group, send email to dspace-tech@googlegroups.com
<mailto:dspace-tech@googlegroups.com>.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org
--
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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.