diff 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
line wrap: on
line diff
--- a/controllers/extractapp.php	Tue Mar 31 14:55:58 2015 +0200
+++ b/controllers/extractapp.php	Wed Apr 01 15:10:35 2015 +0200
@@ -59,13 +59,16 @@
                 $viewmodel->messages['info'] .= "Welcome to Extraction Interface. ";
 
                 if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) {
+                    // --- Existing branch case ---
                     // get text from fileId, from LGService
                     $viewmodel->GetInfoFromPreviousPage($this->postdata);
                     $viewmodel->GetTextFromFileId();
 
                 } else if ($this->postdata['sectionId'] != 0 && $this->postdata['userId'] != 0) {
+                    // --- New branch case ---
                     // get text from sectionId from LGService
                     $viewmodel->GetInfoFromPreviousPage($this->postdata);
+                    $viewmodel->GetBookMetaData($this->postdata);
                     $viewmodel->GetTextFromSectionId();  
 
                 } else if ($this->postdata['sectionId'] != 0) {