Mercurial > hg > extraction-interface
comparison controllers/extractapp.php @ 74:60b5a94163c3 extractapp
New: retrieve book meta data from LGService
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 09 Apr 2015 10:59:31 +0200 |
parents | 2daef8e36214 |
children | 97c1e5102a22 |
comparison
equal
deleted
inserted
replaced
73:2daef8e36214 | 74:60b5a94163c3 |
---|---|
62 | 62 |
63 if (isset($this->postdata['fileId'])) { | 63 if (isset($this->postdata['fileId'])) { |
64 if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) { | 64 if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) { |
65 // --- Existing branch case --- | 65 // --- Existing branch case --- |
66 $viewmodel->GetInfoFromPreviousPage($this->postdata); | 66 $viewmodel->GetInfoFromPreviousPage($this->postdata); |
67 $viewmodel->SetBookMetaDataBySectionId(); | |
67 // get text by fileId, from LGService | 68 // get text by fileId, from LGService |
68 $viewmodel->GetTextFromFileId(); | 69 $viewmodel->GetTextFromFileId(); |
69 } | 70 } |
70 | 71 |
71 } else if ($this->postdata['sectionId'] != 0 && $this->postdata['userId'] != 0) { | 72 } else if ($this->postdata['sectionId'] != 0 && $this->postdata['userId'] != 0) { |
75 // get text by sectionId from LGService | 76 // get text by sectionId from LGService |
76 $viewmodel->GetTextFromSectionId(); | 77 $viewmodel->GetTextFromSectionId(); |
77 | 78 |
78 } else if ($this->postdata['sectionId'] != 0) { | 79 } else if ($this->postdata['sectionId'] != 0) { |
79 $viewmodel->GetTextFromLocal($this->postdata['sectionId']); | 80 $viewmodel->GetTextFromLocal($this->postdata['sectionId']); |
81 $viewmodel->SetBookMetaDataBySectionId(); | |
80 | 82 |
81 } else if (is_numeric($this->urlvalues['id'])) { | 83 } else if (is_numeric($this->urlvalues['id'])) { |
82 // get text from local file system (for development stage only) | 84 // get text from local file system (for development stage only) |
83 $viewmodel->GetTextFromLocal($this->urlvalues['id']); | 85 $viewmodel->GetTextFromLocal($this->urlvalues['id']); |
86 $viewmodel->SetBookMetaDataBySectionId(); | |
84 $this->ReturnView_localtest($viewmodel->StartTagging(), true); | 87 $this->ReturnView_localtest($viewmodel->StartTagging(), true); |
85 break; | 88 break; |
86 | 89 |
87 } else { | 90 } else { |
88 $viewmodel->messages['error'] .= "wrong url!!"; | 91 $viewmodel->messages['error'] .= "wrong url!!"; |