Hi Hugh,

On 21/03/14 16:46, Barnes, Hugh wrote:
We are implementing the (legacy) embargo functionality in the above environment. Ideally, we think it’s better user interface to inform users that the item is embargoed, and even not taunt them with a link until that is lifted. Otherwise, users are denied access without obvious reason (and will probably contact us about it).

 

So we really want to edit the single item display page to mark embargoed items much more clearly for users.


My jspui experience is a few years old -- but might it work to change the logic in the displayItem method in HandleServlet, similar to what's done for withdrawn items? See here: https://github.com/DSpace/DSpace/blob/dspace-3_x/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/HandleServlet.java#L298 except you'd have another if clause to check whether the item is embargoed according to your legacy definition of embargoed, which may or may not involve
EmbargoManager.getEmbargoTermsAsDate(context,item) != null

If that condition is fulfilled, pass the user on to either the same tombstone page as for withdrawn items (or a different one if you prefer) like so:
JSPManager.showJSP(request, response, "/tombstone.jsp");
return;

This approach feels a little cleaner to me than messing with extra conditionals in display-item.jsp.

Does this help?

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
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