Mercurial > hg > extraction-interface
comparison controllers/extractapp.php @ 63:3395385476d1 extractapp
bug fixed: popup tag window is closed automatically when saving text file
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 01 Apr 2015 15:10:35 +0200 |
parents | 6e44605eb4f6 |
children | 3ada9334ebfc |
comparison
equal
deleted
inserted
replaced
62:3fb9e3884401 | 63:3395385476d1 |
---|---|
57 | 57 |
58 default: // first time visit extraction interface from LGService | 58 default: // first time visit extraction interface from LGService |
59 $viewmodel->messages['info'] .= "Welcome to Extraction Interface. "; | 59 $viewmodel->messages['info'] .= "Welcome to Extraction Interface. "; |
60 | 60 |
61 if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) { | 61 if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) { |
62 // --- Existing branch case --- | |
62 // get text from fileId, from LGService | 63 // get text from fileId, from LGService |
63 $viewmodel->GetInfoFromPreviousPage($this->postdata); | 64 $viewmodel->GetInfoFromPreviousPage($this->postdata); |
64 $viewmodel->GetTextFromFileId(); | 65 $viewmodel->GetTextFromFileId(); |
65 | 66 |
66 } else if ($this->postdata['sectionId'] != 0 && $this->postdata['userId'] != 0) { | 67 } else if ($this->postdata['sectionId'] != 0 && $this->postdata['userId'] != 0) { |
68 // --- New branch case --- | |
67 // get text from sectionId from LGService | 69 // get text from sectionId from LGService |
68 $viewmodel->GetInfoFromPreviousPage($this->postdata); | 70 $viewmodel->GetInfoFromPreviousPage($this->postdata); |
71 $viewmodel->GetBookMetaData($this->postdata); | |
69 $viewmodel->GetTextFromSectionId(); | 72 $viewmodel->GetTextFromSectionId(); |
70 | 73 |
71 } else if ($this->postdata['sectionId'] != 0) { | 74 } else if ($this->postdata['sectionId'] != 0) { |
72 $viewmodel->GetTextFromLocal($this->postdata['sectionId']); | 75 $viewmodel->GetTextFromLocal($this->postdata['sectionId']); |
73 | 76 |