- some HTML-stuff

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3153 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
karlchenofhell 2007-01-02 23:16:18 +00:00
parent c43aae2143
commit a27e884a8c
3 changed files with 22 additions and 8 deletions

View File

@ -119,12 +119,12 @@ public class DetailedSearch {
return prop; return prop;
} }
private static void putRanking(serverObjects prop, plasmaSearchRankingProfile rankingProfile, String prefix) { private static void putRanking(final serverObjects prop, final plasmaSearchRankingProfile rankingProfile, final String prefix) {
putRanking(prop, rankingProfile.preToExternalMap(prefix), prefix, "Pre"); putRanking(prop, rankingProfile.preToExternalMap(prefix), prefix, "Pre");
putRanking(prop, rankingProfile.postToExternalMap(prefix), prefix, "Post"); putRanking(prop, rankingProfile.postToExternalMap(prefix), prefix, "Post");
} }
private static void putRanking(serverObjects prop, Map ranking, String prefix, String attrExtension) { private static void putRanking(final serverObjects prop, final Map ranking, final String prefix, final String attrExtension) {
prop.put("attr" + attrExtension, ranking.size()); prop.put("attr" + attrExtension, ranking.size());
Iterator it = ranking.keySet().iterator(); Iterator it = ranking.keySet().iterator();
String key; String key;

View File

@ -138,9 +138,9 @@ public class Surftips {
e.printStackTrace(); e.printStackTrace();
} }
prop.put("surftips_results_" + i + "_recommend", (voted) ? 0 : 1); prop.put("surftips_results_" + i + "_recommend", (voted) ? 0 : 1);
prop.put("surftips_results_" + i + "_recommend_negativeVoteLink", "/Surftips.html?voteNegative=" + urlhash + "&refid=" + refid + "&display=" + display + ((showScore) ? "&score=" : "")); // for negaive votes, we don't send around the bad url again, the hash is enough prop.put("surftips_results_" + i + "_recommend_negativeVoteLink", "/Surftips.html?voteNegative=" + urlhash + "&refid=" + refid + "&amp,display=" + display + ((showScore) ? "&score=" : "")); // for negaive votes, we don't send around the bad url again, the hash is enough
prop.put("surftips_results_" + i + "_recommend_positiveVoteLink", "/Surftips.html?votePositive=" + urlhash + "&refid=" + refid + "&url=" + crypt.simpleEncode(url,null,'b') + "&title=" + crypt.simpleEncode(title,null,'b') + "&description=" + crypt.simpleEncode(description,null,'b') + "&display=" + display + ((showScore) ? "&score=" : "")); prop.put("surftips_results_" + i + "_recommend_positiveVoteLink", "/Surftips.html?votePositive=" + urlhash + "&refid=" + refid + "&url=" + crypt.simpleEncode(url,null,'b') + "&title=" + crypt.simpleEncode(title,null,'b') + "&description=" + crypt.simpleEncode(description,null,'b') + "&display=" + display + ((showScore) ? "&score=" : ""));
prop.put("surftips_results_" + i + "_url", url); prop.put("surftips_results_" + i + "_url", de.anomic.data.wikiCode.replaceHTMLonly(url));
prop.put("surftips_results_" + i + "_urlname", nxTools.shortenURLString(url, 60)); prop.put("surftips_results_" + i + "_urlname", nxTools.shortenURLString(url, 60));
prop.put("surftips_results_" + i + "_urlhash", urlhash); prop.put("surftips_results_" + i + "_urlhash", urlhash);
prop.put("surftips_results_" + i + "_title", (showScore) ? ("(" + ranking.getScore(urlhash) + ") " + title) : title); prop.put("surftips_results_" + i + "_title", (showScore) ? ("(" + ranking.getScore(urlhash) + ") " + title) : title);

View File

@ -67,11 +67,25 @@ done
java_args="" java_args=""
if [ -f DATA/SETTINGS/httpProxy.conf ] if [ -f DATA/SETTINGS/httpProxy.conf ]
then then
for i in `grep javastart DATA/SETTINGS/httpProxy.conf`;do # startup memory
i="${i#javastart_*=}"; for i in Xmx Xms; do
JAVA_ARGS="-$i $JAVA_ARGS"; j=`grep javastart_$i DATA/SETTINGS/httpProxy.conf`;
j="${j#javastart_$i=}";
if [ -n $j ]; then JAVA_ARGS="-$j $JAVA_ARGS"; fi;
done done
# Priority
j=`grep javastart_priority DATA/SETTINGS/httpProxy.conf`;
j="${j#javastart_priority=}"
if [ -n $j ]; then JAVA="nice -n $j $JAVA"; fi;
# for i in `grep javastart DATA/SETTINGS/httpProxy.conf`;do
# i="${i#javastart_*=}";
# JAVA_ARGS="-$i $JAVA_ARGS";
# done
fi fi
echo "JAVA_ARGS: $JAVA_ARGS"
echo "JAVA: $JAVA"
# generating the proper classpath # generating the proper classpath
CLASSPATH="" CLASSPATH=""