{capture assign=sLocation}action=checkout_final&fDocumentId={$context->oDocument->getId()}&reason={$reason|escape:'url'}{/capture} {capture assign=sJavascript} function doCheckout () {ldelim} document.location.href = "{$sLocation|addQSSelf}"; {rdelim} function scheduleCheckout () {ldelim} callLater(2, doCheckout); {rdelim} addLoadEvent(scheduleCheckout); {/capture} {$context->oPage->requireJSStandalone($sJavascript)}

get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Checkout Document{/i18n}:
{$context->oDocument->getName()|sanitize}

{capture assign=link}{$sLocation|addQSSelf}{/capture}

{i18n arg_link=$link}The document you wish to check out will begin to download soon. If it does not automatically start to download, you can use this link to start it yourself.{/i18n}

{assign var=iDocumentId value=$context->oDocument->getId()} {capture assign=link} {"viewDocument"|generateControllerUrl:"fDocumentId=$iDocumentId"} {/capture}

{i18n arg_link=$link}Once the document has been downloaded, you should return to the document view.{/i18n}