Permalink
Browse files

altered search display, removed documents for which there are no tags

  • Loading branch information...
1 parent 40637a2 commit ddf46e541e03232f1ad131cdfe40704e2ddedd69 @corajr corajr committed Nov 23, 2012
@@ -211,7 +211,8 @@ def process(self):
"TOPIC_COHERENCE": json.dumps(coherence, separators=(',',':')),
"TOPIC_PROPORTIONS": json.dumps(self.proportions, separators=(',',':')),
"TOPIC_STDEVS": json.dumps(self.stdevs, separators=(',',':')),
- "TOPIC_CORRELATIONS": json.dumps(self.correlations, separators=(',',':'))
+ "TOPIC_CORRELATIONS": json.dumps(self.correlations, separators=(',',':')),
+ "TAGS": json.dumps(getattr(self, "tags", {}), separators=(',',':'))
}
index = getattr(self, "index", {})
@@ -24,6 +24,9 @@ def post_setup(self):
my_tags = [x for x, y in self.tags.iteritems() if int(self.metadata[filename]["itemID"]) in y]
if len(my_tags) > 0:
self.metadata[filename]["label"] = my_tags[0]
+ else:
+ del self.metadata[filename]
+ self.files.remove(filename)
if __name__ == "__main__":
try:
@@ -25,16 +25,40 @@ svg {
fill: #000;
}
button {
- position: inline;
+ display: inline-block;
}
+
+
+
#controls {
position: fixed;
}
input {
display: block;
}
+.search {
+ display: block;
+ clear: both;
+ padding: 5px 0px;
+}
+.searchLabel {
+ display: block;
+ float:left;
+ width: 100%;
+}
+.searchText {
+ float:left;
+ display:inline-block;
+}
+
+.searchAddRemove {
+ height: 20px;
+ width: 20px;
+ padding: 0px;
+ float: left;
+}
.popupHolder {
display: none;
position: fixed;
Oops, something went wrong.

0 comments on commit ddf46e5

Please sign in to comment.