dspace/modules/versioning/versioning-webapp/src/main/resources/aspects/Versioning/versioning.js
/**
 * Send the given page and DO NOT wait for the flow to be continued. Excution will
 * proccede as normal. This method will preform two usefull actions: set the flow
 * parameter & add result information.
 *
 * The flow parameter is used by the sitemap to seperate requests comming from a
 * flow script from just normal urls.
 *
 * The result object could potentialy contain a notice message and a list of
 * errors. If either of these are present then they are added to the sitemap's
 * parameters.
 */
Send the given page and DO NOT wait for the flow to be continued. Excution will
proccede as normal. This method will preform two usefull actions: set the flow
parameter & add result information.

The flow parameter is used by the sitemap to seperate requests comming from a
flow script from just normal urls.

The result object could potentialy contain a notice message and a list of
errors. If either of these are present then they are added to the sitemap's
parameters.
Send the given page and DO NOT wait for the flow to be continued . Excution will proccede as normal . This method will preform two usefull actions : set the flow parameter & add result information . The flow parameter is used by the sitemap to seperate requests comming from a flow script from just normal urls . The result object could potentialy contain a notice message and a list of errors . If either of these are present then they are added to the sitemap ' s parameters .
function sendPage(uri,bizData,result)
{
    if (bizData == null)
        bizData = {};
    if (result != null)
    {
        var outcome = result.getOutcome();
        var header = result.getHeader();
        var message = result.getMessage();
        var characters = result.getCharacters();
        if (message != null || characters != null)
        {
            bizData["notice"]     = "true";
            bizData["outcome"]    = outcome;
            bizData["header"]     = header;
            bizData["message"]    = message;
            bizData["characters"] = characters;
        }
        var errors = result.getErrorString();
        if (errors != null)
        {
            bizData["errors"] = errors;
        }
    }
    bizData["flow"] = "true";
    cocoon.sendPage(uri,bizData);
}
function sendPage ( uri , bizData , result ) { if ( bizData == null ) bizData = { } ; if ( result != null ) { var outcome = result . getOutcome ( ) ; var header = result . getHeader ( ) ; var message = result . getMessage ( ) ; var characters = result . getCharacters ( ) ; if ( message != null || characters != null ) { bizData [ "notice" ] = "true" ; bizData [ "outcome" ] = outcome ; bizData [ "header" ] = header ; bizData [ "message" ] = message ; bizData [ "characters" ] = characters ; } var errors = result . getErrorString ( ) ; if ( errors != null ) { bizData [ "errors" ] = errors ; } } bizData [ "flow" ] = "true" ; cocoon . sendPage ( uri , bizData ) ; }
Send the given page and DO NOT wait for the flow to be continued.
Send the given page and DO NOT wait for the flow to be continued .
// just to remember where we came from.