|
Hi Hugh, On 21/03/14 16:46, Barnes, Hugh wrote:
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

