Skip to content

Commit d0fc14b

Browse files
committed
Minor changes to pdf conv.
-Use different File Id Field, -Use path to file without ?q=
1 parent d583fa7 commit d0fc14b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

os2web_cp_service.module

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ function os2web_cp_service_handler() {
7373
*/
7474
function os2web_gf_service_handler($file_id) {
7575
if ($url = variable_get('os2web_cp_service_cp_document_fileurl')) {
76-
variable_set('os2web_cp_service_cp_document_fileurl', 'http://10.1.1.118/Traen%20Publishing%20File%20Service%20-%20Sydjurs.dk/Download.aspx');
7776

7877
$username = variable_get('os2web_cp_service_endpoint_user');
7978
$password = variable_get('os2web_cp_service_endpoint_password');
@@ -527,7 +526,7 @@ function os2web_cp_service_create_document(array $data) {
527526
if ($is_missing) {
528527
$cnode->field_os2web_cp_service_doc_ref[LANGUAGE_NONE][]['target_id'] = $node->nid;
529528
//adding for pdf 2 html conversion, [email protected]
530-
os2web_cp_service_schedule_document_pdf2html_conversion($data['fields']['FilID'], $cnode->nid);
529+
os2web_cp_service_schedule_document_pdf2html_conversion($data['fields']['Indhold - FileID'], $cnode->nid);
531530
node_save($cnode);
532531
}
533532
}
@@ -962,7 +961,7 @@ function os2web_cp_service_cron(){
962961
* @return none
963962
*/
964963
function _os2web_cp_service_document_download($file_id){
965-
$url = $GLOBALS['base_url'] . '/?q=os2web/service/gf/v1/' . $file_id;//address of remote file
964+
$url = $GLOBALS['base_url'] . '/os2web/service/gf/v1/' . $file_id;//address of remote file
966965
$tmpfname = tempnam(file_directory_temp(), "os2web_cp_document_");//path to where the file will be downloaded
967966

968967
$fp = fopen($tmpfname, 'w');

0 commit comments

Comments
 (0)