diff 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
line wrap: on
line diff
--- a/controllers/extractapp.php	Wed Apr 08 16:17:50 2015 +0200
+++ b/controllers/extractapp.php	Thu Apr 09 10:59:31 2015 +0200
@@ -64,6 +64,7 @@
                     if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) {
                         // --- Existing branch case ---
                         $viewmodel->GetInfoFromPreviousPage($this->postdata);
+                        $viewmodel->SetBookMetaDataBySectionId();
                         // get text by fileId, from LGService
                         $viewmodel->GetTextFromFileId();
                     }
@@ -77,10 +78,12 @@
 
                 } else if ($this->postdata['sectionId'] != 0) { 
                     $viewmodel->GetTextFromLocal($this->postdata['sectionId']);
+                    $viewmodel->SetBookMetaDataBySectionId();
 
                 } else if (is_numeric($this->urlvalues['id'])) {
                     // get text from local file system (for development stage only)
                     $viewmodel->GetTextFromLocal($this->urlvalues['id']);
+                    $viewmodel->SetBookMetaDataBySectionId();
                     $this->ReturnView_localtest($viewmodel->StartTagging(), true); 
                     break;