[
https://jira.duraspace.org/browse/DS-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=22595#comment-22595
]
Mark Diggory commented on DS-1004:
----------------------------------
Actually, we already have the following approach developed and attached as a
patch on the original task.
1.) Tombstone View: Both are approaches are similar in that we utilize a
TombstoneView when the user does not have rights to view a withdrawn item. This
view is customizable and may have some different approaches to defining the
text used for the reason
2.) WithdrawnSelector: The only place that an evaluation needs to occur prior
to generating a TombstoneView is when the item is !READ and it state is
"withdrawn", we did not write any overly generic HandleStateMatcher. Instead
we created a WithdrawnSelector that returns true/false if the Item is withdrawn
and then designate the TombstoneView be activated only when it is the case.
The Protocol for evaluation is simple and the WithdrawnSelector is added here:
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/ArtifactBrowser/sitemap.xmap#L247
a.) If it is the user is unauthorized and the item is withdrawn, they see the
Tombstone
b.) otherwise if they are authenticated, they see either a RestrictedView
c.) if they are not authenticated, they see a LoginScreen.
3.) Finally, a warning message is evaluated and added into the ItemView page to
assure that when Viewing the Item Administrators can clearly see that it is
withdrawn.
I will attach a final patch minus some of the Deep Blue specific changes that
Jose had accidentally included in his work.
> Add optional reason text to tombstone page (XMLUI)
> --------------------------------------------------
>
> Key: DS-1004
> URL: https://jira.duraspace.org/browse/DS-1004
> Project: DSpace
> Issue Type: Improvement
> Components: XMLUI
> Affects Versions: 1.8.0
> Reporter: Richard Rodgers
> Assignee: Richard Rodgers
> Fix For: 1.8.0
>
> Attachments: tombstone_dspace-xmlui-api.patch,
> tombstone_dspace-xmlui-webapp.patch
>
>
> Companion to DS-587 - that is, a configurable tombstone 'reason'. The primary
> difference is that XMLUI never displayed a tombstone page at all,
> just the (erroneous) RestrictedItem page. This restores the parity between
> JSPUI and XMLUI
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel