From bddac2839e4fc5567dba1d541f5af90a17b64172 Mon Sep 17 00:00:00 2001 From: cominch Date: Fri, 15 Jun 2012 10:46:19 +0200 Subject: [PATCH] add missing files for tag display --- .../env/templates/interactionheader.template | 3 + htroot/interaction_elements/Tag_part.html | 93 ++++++++++++++++++ htroot/interaction_elements/Tag_part.java | 39 ++++++++ htroot/interaction_elements/tag.png | Bin 0 -> 3762 bytes 4 files changed, 135 insertions(+) create mode 100644 htroot/env/templates/interactionheader.template create mode 100644 htroot/interaction_elements/Tag_part.html create mode 100644 htroot/interaction_elements/Tag_part.java create mode 100644 htroot/interaction_elements/tag.png diff --git a/htroot/env/templates/interactionheader.template b/htroot/env/templates/interactionheader.template new file mode 100644 index 000000000..dc1fd9b03 --- /dev/null +++ b/htroot/env/templates/interactionheader.template @@ -0,0 +1,3 @@ + + + diff --git a/htroot/interaction_elements/Tag_part.html b/htroot/interaction_elements/Tag_part.html new file mode 100644 index 000000000..8b970035e --- /dev/null +++ b/htroot/interaction_elements/Tag_part.html @@ -0,0 +1,93 @@ + + + + + diff --git a/htroot/interaction_elements/Tag_part.java b/htroot/interaction_elements/Tag_part.java new file mode 100644 index 000000000..fd4154eb5 --- /dev/null +++ b/htroot/interaction_elements/Tag_part.java @@ -0,0 +1,39 @@ +package interaction_elements; + + +import java.util.Collection; + +import net.yacy.cora.lod.vocabulary.Tagging; +import net.yacy.cora.protocol.HeaderFramework; +import net.yacy.cora.protocol.RequestHeader; +import net.yacy.document.LibraryProvider; +import net.yacy.search.Switchboard; +import de.anomic.data.UserDB; +import de.anomic.server.serverObjects; +import de.anomic.server.serverSwitch; + +public class Tag_part { + + public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { + + final Switchboard sb = (Switchboard) env; + + final serverObjects prop = new serverObjects(); + + prop.put("hash", post.get("hash", "")); + + String vocabularies = ""; + + Collection vocs = LibraryProvider.autotagging.getVocabularies(); + + for (Tagging v: vocs) { + vocabularies += v.getName()+","; + } + + vocabularies += "manual"; + + prop.put("vocabularies", vocabularies); + + return prop; + } +} diff --git a/htroot/interaction_elements/tag.png b/htroot/interaction_elements/tag.png new file mode 100644 index 0000000000000000000000000000000000000000..1ff3a8013526fbbe51a152fbd187eb39bb8d61ab GIT binary patch literal 3762 zcmV;j4o&fiP)Px#1ZP1_K>z@;j|==^1pojJTuDShRA@uBTKR7sR~0_@&dhtyez6_Lj-A9!+N5!z zMIb2rQ1M$UDv+9rmQ5^T`3Lw{_zRGbC_+?-A|XmyBtR8aDH70@Len-~lE#hgc=uap zxtH%dcjo2UwT-iI-N`KP&YiQL@0?rXF{B*4G6pw!SA2h2e7Y*8SgU>(U-SppCaQ~< z5iwDOb4{c+CK5OGcOy+PNgY?QcoX3si*nun!!X_j2E63@F(HxNw?%pzA|o?52quvg zqmqUzk8{=sZ8#S#WzZIQ?7I-cnz(30Y;#`x=oxYKS&2N>Coc})!nKKvIDFaRFBbfE z3qu*md?v9;AnmSXt&0-3!NBNUN|fte15w>Tj2Q`Z$CNxIoR8od1VIauB_c_-g9Kj` zV$%&N+?trlhr~3_V;w9@op~$xwvZ=#8|pF6r9Ok?Yk4Mq`=26PuR{HEL5lq=Vtg)X zUY9Jz2W|Es<-jFwLI0AadjZoeksEe{W@2W47U_i>hX8yO5xjEH`R429blrUcGV^b9!=o_L!WU zo7V4KTlhfF&0}-2&^jsYj1ugX2Q^Ux(G48XNY3zE5f5hIS8nk+G3_g=h1(fmJ3(|w zBuCsY`df(SE$L^Yve`|fK5AsEy&fN2bCsQ7$%z(-)YV^~7EKjkwK=2pA^##Eq0Rc!yzjkf`?H z)D}oSTo`dh!=#7aGsN@MHKp5W!Hf$TpBf9H&O!g>YU9VIr2&8FcDmBXv$QBB$+${q z&3JO=?Vr)rRh+>kn2HHabu-CXKJR!|XIl+qlm>!1-bhfy#@<2tcTWg=gOCbr&G zM=s#hlzQOS!Q2jxQfh)enZQ3xFU+VNNsy$DFgNub;{T>>ufQY-Gh#c)m}?tr(%KF% zqi}txMd72Au)~K<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