Conflicts: source/net/yacy/document/TextParser.javapull/1/head
parent
b5a8fb5fd8
commit
90512640bf
@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>YaCy '#[clientname]#': Augmented Parsing</title>
|
||||
#%env/templates/metas.template%#
|
||||
</head>
|
||||
<body id="Settings">
|
||||
#%env/templates/header.template%#
|
||||
#%env/templates/submenuAugmentedParsing.template%#
|
||||
<h2>Augmented Parsing</h2>
|
||||
|
||||
<form id="parsersettings" action="AugmentedParsing_p.html" method="post" enctype="multipart/form-data">
|
||||
<fieldset><legend id="urlproxy">Global Status</legend>
|
||||
<p>
|
||||
With this settings you can activate or deactivate augmented parsing which combines the documents with information from external sources (tags etc.).
|
||||
</p>
|
||||
|
||||
<dl>
|
||||
|
||||
<dt><label for="content">Augmented Parser:</label></dt>
|
||||
<dd>
|
||||
<input type="checkbox" name="augmentedparserenabled" id="augmentedparserenabled" #(augmentedparserenabled_checked)#:: checked="checked"#(/augmentedparserenabled_checked)# />Enabled<br/>
|
||||
<p class="help">
|
||||
Globally enables or disables the augmented parser. This setting requires a restart.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
<dt><label for="content">Augmented Parser - RDFa:</label></dt>
|
||||
<dd>
|
||||
<input type="checkbox" name="augmentedparserRDFenabled" id="augmentedparserRDFenabled" #(augmentedparserRDFenabled_checked)#:: checked="checked"#(/augmentedparserRDFenabled_checked)# />Enabled<br/>
|
||||
<p class="help">
|
||||
Globally enables or disables the RDFa parser. This setting requires a restart.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
<input type="submit" name="augmentedparserSettings" value="Submit"/>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
#%env/templates/footer.template%#
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,39 @@
|
||||
import net.yacy.cora.protocol.RequestHeader;
|
||||
import de.anomic.server.serverObjects;
|
||||
import de.anomic.server.serverSwitch;
|
||||
|
||||
public final class AugmentedParsing_p {
|
||||
|
||||
public static serverObjects respond(final RequestHeader header,
|
||||
final serverObjects post, final serverSwitch env) {
|
||||
// return variable that accumulates replacements
|
||||
final serverObjects prop = new serverObjects();
|
||||
|
||||
if (post != null) {
|
||||
|
||||
if (post.containsKey("augmentedparserSettings")) {
|
||||
|
||||
|
||||
env.setConfig("parserAugmentation",
|
||||
"on".equals(post.get("augmentedparserenabled")) ? true : false);
|
||||
|
||||
env.setConfig("parserAugmentation.RDFa",
|
||||
"on".equals(post.get("augmentedparserRDFenabled")) ? true : false);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
prop.put("augmentedparserenabled_checked",
|
||||
env.getConfigBool("parserAugmentation", false) ? "1" : "0");
|
||||
|
||||
prop.put("augmentedparserRDFenabled_checked",
|
||||
env.getConfigBool("parserAugmentation.RDFa", false) ? "1" : "0");
|
||||
|
||||
// return rewrite properties
|
||||
return prop;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
<div class="SubMenu">
|
||||
<h3>Augmented Parsing</h3>
|
||||
<ul class="SubMenu">
|
||||
<li><a href="/AugmentedParsing_p.html" class="MenuItemLink lock">Augmented Parsing</a></li>
|
||||
</ul>
|
||||
</div>
|
Loading…
Reference in new issue