diff views/Extractapp/TaggingText.php @ 97:c1bb174a22f3 extractapp

Topic synchronization with LGServices. Adaption for moving table from Gazetteer to LGService.
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 16 Feb 2016 15:07:43 +0100
parents 9a29e9d28ece
children 5bea390e7ca9
line wrap: on
line diff
--- a/views/Extractapp/TaggingText.php	Mon Nov 23 16:24:57 2015 +0100
+++ b/views/Extractapp/TaggingText.php	Tue Feb 16 15:07:43 2016 +0100
@@ -383,8 +383,10 @@
 
                 newdiv.appendChild(tagging_tags);
 
+                
                 // add selected words to generator regex
-                genRegexBySelection(newdiv, selection); // append button to newdiv and handle the selection words
+                // remove this feature...
+                // genRegexBySelection(newdiv, selection); // append button to newdiv and handle the selection words
 
             }
 
@@ -1108,27 +1110,37 @@
             <div id="follow-scroll">
                 <form action="javascript:void(0);">   
                     <fieldset class="tool-frame">
-                        <legend><h5 class="tool-topic" data-toggle="collapse" data-target="#tool_topic"> Topic: <span class="caret"></span></h5></legend>
+                        <legend><h5 class="tool-topic" data-toggle="collapse" data-target="#tool_topic"> Topic and Tags: <span class="caret"></span></h5></legend>
                         <div id="tool_topic" class="collapse in">
                             <div> Current topic is:
                                     <?php echo $topic_name['name_en']; ?> (<?php echo $topic_name['name_ch']; ?>, <?php echo $topic_name['name_pinyin']; ?>)
                                 <button onclick="chooseTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Change Topic</button>
+                                <!-- 
                                 <button onclick="createTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Create a New Topic</button>
-                            </div>
+                                -->
                             </div>
-                    </fieldset>
-                    <fieldset class="tool-frame">
-                        <legend><h5 class="tool-topic" data-toggle="collapse" data-target="#tool_tag"> Tag: <span class="caret"></span></h5></legend>
-                        <div id="tool_tag" class="collapse in">
-                            <div>The topic tag is: <?php echo $topic_tag_ch;?>
+                        
+                            <div>Main tag: <?php echo $topic_tag_ch;?>
                                 <p class="text-muted">(Only the lines with the tag will be in the exported table.)</p>
-                                <!-- (<?php echo $topic_tag;?>) -->
                             </div>
                             <button onclick="editTaglist(<?php echo $default_topic_id; ?>)" class="btn btn-default btn-block">Edit Tag List</button>
                             <button onclick="configTagsInTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Select Existing Tags</button>
                         
                         </div>
                     </fieldset>
+                    <!--
+                    <fieldset class="tool-frame">
+                        <legend><h5 class="tool-topic" data-toggle="collapse" data-target="#tool_tag"> Tag: <span class="caret"></span></h5></legend>
+                        <div id="tool_tag" class="collapse in">
+                            <div>The topic tag is: <?php echo $topic_tag_ch;?>
+                                <p class="text-muted">(Only the lines with the tag will be in the exported table.)</p>
+                            </div>
+                            <button onclick="editTaglist(<?php echo $default_topic_id; ?>)" class="btn btn-default btn-block">Edit Tag List</button>
+                            <button onclick="configTagsInTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Select Existing Tags</button>
+                        
+                        </div>
+                    </fieldset>
+                    -->
 
                     <fieldset class="tool-frame">
                         <legend><h5 class="tool-topic" data-toggle="collapse" data-target="#tool_regex"> Replace By <i><b>Smart Regex</b></i>©: <span class="caret"></span></h5></legend>
@@ -1154,7 +1166,9 @@
                             <button onclick="window.open('./EditWordlist')" class="btn btn-default btn-block">Edit WordList</button></br>
 
                             <!-- developing...-->
+                            <!-- 
                             <button onclick="genRegexWindowOpen()" id="gen_regex_window_open_id" class="btn btn-default btn-block btn-xs">Open GenRegex (developing...)</button></br>
+                            -->
                         </div>
                     </fieldset>