diff --git a/ktwebservice/KTDownloadManager.inc.php b/ktwebservice/KTDownloadManager.inc.php index 1779615..97f69cb 100644 --- a/ktwebservice/KTDownloadManager.inc.php +++ b/ktwebservice/KTDownloadManager.inc.php @@ -105,6 +105,8 @@ class KTDownloadManager 'document_id'=>$doc_id, 'session'=>$this->session, 'download_date'=>date('Y-m-d H:i:s'), + 'content_version'=>$document->document->getContentVersionId(), + 'filesize'=>$document->document->getFileSize(), 'hash'=>$hash ), array('noid'=>true) diff --git a/lib/documentmanagement/Document.inc b/lib/documentmanagement/Document.inc index 7b37ede..a65d61b 100644 --- a/lib/documentmanagement/Document.inc +++ b/lib/documentmanagement/Document.inc @@ -169,6 +169,8 @@ class Document { function getStoragePath() { return $this->_oDocumentContentVersion->getStoragePath(); } function setStoragePath($sNewValue) { $this->_oDocumentContentVersion->setStoragePath($sNewValue); } + + function getContentVersion(){return $this->_oDocumentContentVersion->getVersion();} diff --git a/webservice/clienttools/services/3.6.1/kt.php b/webservice/clienttools/services/3.6.1/kt.php index e4106fc..b93f28b 100644 --- a/webservice/clienttools/services/3.6.1/kt.php +++ b/webservice/clienttools/services/3.6.1/kt.php @@ -482,7 +482,7 @@ class kt extends client_service { */ $response['status_code']=0; - $response['message']=$url; + $response['message']=$url.'&apptype='.$params['app_type']; $response['filename']=$docname; $this->addDebug('effective params',$params); $this->setResponse($response); @@ -651,8 +651,7 @@ class kt extends client_service { $this->response= array('status_code'=>0, 'document_id'=>$document_id, 'content_id'=>$content_id); } - - function get_all_client_policies(){ + function get_all_client_policies(){ $config=KTConfig::getSingleton(); $this->addDebug('KTConfig Singleton',$config);