comparison controllers/extractapp.php @ 73:2daef8e36214 extractapp

minor modification
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 08 Apr 2015 16:17:50 +0200
parents 26d8c4c43d86
children 60b5a94163c3
comparison
equal deleted inserted replaced
72:6974309983d1 73:2daef8e36214
58 58
59 59
60 default: // first time visit extraction interface from LGService 60 default: // first time visit extraction interface from LGService
61 $viewmodel->messages['info'] .= "Welcome to Extraction Interface. "; 61 $viewmodel->messages['info'] .= "Welcome to Extraction Interface. ";
62 62
63 if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) { 63 if (isset($this->postdata['fileId'])) {
64 // --- Existing branch case --- 64 if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) {
65 $viewmodel->GetInfoFromPreviousPage($this->postdata); 65 // --- Existing branch case ---
66 // get text by fileId, from LGService 66 $viewmodel->GetInfoFromPreviousPage($this->postdata);
67 $viewmodel->GetTextFromFileId(); 67 // get text by fileId, from LGService
68 $viewmodel->GetTextFromFileId();
69 }
68 70
69 } else if ($this->postdata['sectionId'] != 0 && $this->postdata['userId'] != 0) { 71 } else if ($this->postdata['sectionId'] != 0 && $this->postdata['userId'] != 0) {
70 // --- New branch case --- 72 // --- New branch case ---
71 $viewmodel->GetInfoFromPreviousPage($this->postdata); 73 $viewmodel->GetInfoFromPreviousPage($this->postdata);
72 $viewmodel->SetBookMetaDataBySectionId(); 74 $viewmodel->SetBookMetaDataBySectionId();