Mercurial > hg > extraction-interface
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 96:ce7e933b18b0 | 97:c1bb174a22f3 |
|---|---|
| 381 } | 381 } |
| 382 ?> | 382 ?> |
| 383 | 383 |
| 384 newdiv.appendChild(tagging_tags); | 384 newdiv.appendChild(tagging_tags); |
| 385 | 385 |
| 386 | |
| 386 // add selected words to generator regex | 387 // add selected words to generator regex |
| 387 genRegexBySelection(newdiv, selection); // append button to newdiv and handle the selection words | 388 // remove this feature... |
| 389 // genRegexBySelection(newdiv, selection); // append button to newdiv and handle the selection words | |
| 388 | 390 |
| 389 } | 391 } |
| 390 | 392 |
| 391 //$('#tagItemDivId').addClass(); // tagItemDivId is newdiv's id | 393 //$('#tagItemDivId').addClass(); // tagItemDivId is newdiv's id |
| 392 $('body').append(newdiv); | 394 $('body').append(newdiv); |
| 1106 </div> | 1108 </div> |
| 1107 | 1109 |
| 1108 <div id="follow-scroll"> | 1110 <div id="follow-scroll"> |
| 1109 <form action="javascript:void(0);"> | 1111 <form action="javascript:void(0);"> |
| 1110 <fieldset class="tool-frame"> | 1112 <fieldset class="tool-frame"> |
| 1111 <legend><h5 class="tool-topic" data-toggle="collapse" data-target="#tool_topic"> Topic: <span class="caret"></span></h5></legend> | 1113 <legend><h5 class="tool-topic" data-toggle="collapse" data-target="#tool_topic"> Topic and Tags: <span class="caret"></span></h5></legend> |
| 1112 <div id="tool_topic" class="collapse in"> | 1114 <div id="tool_topic" class="collapse in"> |
| 1113 <div> Current topic is: | 1115 <div> Current topic is: |
| 1114 <?php echo $topic_name['name_en']; ?> (<?php echo $topic_name['name_ch']; ?>, <?php echo $topic_name['name_pinyin']; ?>) | 1116 <?php echo $topic_name['name_en']; ?> (<?php echo $topic_name['name_ch']; ?>, <?php echo $topic_name['name_pinyin']; ?>) |
| 1115 <button onclick="chooseTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Change Topic</button> | 1117 <button onclick="chooseTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Change Topic</button> |
| 1118 <!-- | |
| 1116 <button onclick="createTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Create a New Topic</button> | 1119 <button onclick="createTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Create a New Topic</button> |
| 1120 --> | |
| 1117 </div> | 1121 </div> |
| 1118 </div> | 1122 |
| 1119 </fieldset> | 1123 <div>Main tag: <?php echo $topic_tag_ch;?> |
| 1120 <fieldset class="tool-frame"> | |
| 1121 <legend><h5 class="tool-topic" data-toggle="collapse" data-target="#tool_tag"> Tag: <span class="caret"></span></h5></legend> | |
| 1122 <div id="tool_tag" class="collapse in"> | |
| 1123 <div>The topic tag is: <?php echo $topic_tag_ch;?> | |
| 1124 <p class="text-muted">(Only the lines with the tag will be in the exported table.)</p> | 1124 <p class="text-muted">(Only the lines with the tag will be in the exported table.)</p> |
| 1125 <!-- (<?php echo $topic_tag;?>) --> | |
| 1126 </div> | 1125 </div> |
| 1127 <button onclick="editTaglist(<?php echo $default_topic_id; ?>)" class="btn btn-default btn-block">Edit Tag List</button> | 1126 <button onclick="editTaglist(<?php echo $default_topic_id; ?>)" class="btn btn-default btn-block">Edit Tag List</button> |
| 1128 <button onclick="configTagsInTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Select Existing Tags</button> | 1127 <button onclick="configTagsInTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Select Existing Tags</button> |
| 1129 | 1128 |
| 1130 </div> | 1129 </div> |
| 1131 </fieldset> | 1130 </fieldset> |
| 1131 <!-- | |
| 1132 <fieldset class="tool-frame"> | |
| 1133 <legend><h5 class="tool-topic" data-toggle="collapse" data-target="#tool_tag"> Tag: <span class="caret"></span></h5></legend> | |
| 1134 <div id="tool_tag" class="collapse in"> | |
| 1135 <div>The topic tag is: <?php echo $topic_tag_ch;?> | |
| 1136 <p class="text-muted">(Only the lines with the tag will be in the exported table.)</p> | |
| 1137 </div> | |
| 1138 <button onclick="editTaglist(<?php echo $default_topic_id; ?>)" class="btn btn-default btn-block">Edit Tag List</button> | |
| 1139 <button onclick="configTagsInTopic(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Select Existing Tags</button> | |
| 1140 | |
| 1141 </div> | |
| 1142 </fieldset> | |
| 1143 --> | |
| 1132 | 1144 |
| 1133 <fieldset class="tool-frame"> | 1145 <fieldset class="tool-frame"> |
| 1134 <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> | 1146 <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> |
| 1135 | 1147 |
| 1136 <div id="tool_regex" class="collapse in"> | 1148 <div id="tool_regex" class="collapse in"> |
| 1152 <button onclick="replaceSmartRunSpace()" class="btn btn-default btn-block">Run(Allow space between block)</button></br> | 1164 <button onclick="replaceSmartRunSpace()" class="btn btn-default btn-block">Run(Allow space between block)</button></br> |
| 1153 | 1165 |
| 1154 <button onclick="window.open('./EditWordlist')" class="btn btn-default btn-block">Edit WordList</button></br> | 1166 <button onclick="window.open('./EditWordlist')" class="btn btn-default btn-block">Edit WordList</button></br> |
| 1155 | 1167 |
| 1156 <!-- developing...--> | 1168 <!-- developing...--> |
| 1169 <!-- | |
| 1157 <button onclick="genRegexWindowOpen()" id="gen_regex_window_open_id" class="btn btn-default btn-block btn-xs">Open GenRegex (developing...)</button></br> | 1170 <button onclick="genRegexWindowOpen()" id="gen_regex_window_open_id" class="btn btn-default btn-block btn-xs">Open GenRegex (developing...)</button></br> |
| 1171 --> | |
| 1158 </div> | 1172 </div> |
| 1159 </fieldset> | 1173 </fieldset> |
| 1160 | 1174 |
| 1161 | 1175 |
| 1162 <?php | 1176 <?php |
