src/main/resources/aspects/CopyItem/copyitem.js
/**
 * Deposit copy of an item.
 */
Deposit copy of an item.
Deposit copy of an item .
function doDepositCopy()
{
    var identifier;
    var result;
    if (cocoon.request.get("itemID"))
    {
        identifier = cocoon.request.get("itemID");
        result = FlowItemUtils.resolveItemIdentifier(getDSContext(),identifier);
        if (result != null && result.getParameter("itemID"))
        {
            var itemID = result.getParameter("itemID");
            result = makeCopy(itemID);
        }
    } else {
        var contextPath = cocoon.request.getContextPath();
        cocoon.redirectTo(contextPath + "/submissions");
        coocon.exit();
    }
}
function doDepositCopy ( ) { var identifier ; var result ; if ( cocoon . request . get ( "itemID" ) ) { identifier = cocoon . request . get ( "itemID" ) ; result = FlowItemUtils . resolveItemIdentifier ( getDSContext ( ) , identifier ) ; if ( result != null && result . getParameter ( "itemID" ) ) { var itemID = result . getParameter ( "itemID" ) ; result = makeCopy ( itemID ) ; } } else { var contextPath = cocoon . request . getContextPath ( ) ; cocoon . redirectTo ( contextPath + "/submissions" ) ; coocon . exit ( ) ; } }
Deposit copy of an item.
Deposit copy of an item .
// Search for the identifier // If an item was found then allow the user to deposit a copy of the item.