remove remote indexing option in crawl start if not in p2p mode

pull/1/head
Michael Peter Christen 10 years ago
parent 6324db1213
commit 1309619a71

@ -515,7 +515,7 @@
<fieldset> <fieldset>
<legend>Index Administration</legend> <legend>Index Administration</legend>
<dl> <dl>
<dt>Do Local Indexing</dt> <dt>Indexing</dt>
<dd> <dd>
<span class="info" style="float:right"><img src="env/grafics/i16.gif" width="16" height="16" alt="info"/><span style="right:0px;"> <span class="info" style="float:right"><img src="env/grafics/i16.gif" width="16" height="16" alt="info"/><span style="right:0px;">
This enables indexing of the webpages the crawler will download. This should be switched on by default, unless you want to crawl only to fill the This enables indexing of the webpages the crawler will download. This should be switched on by default, unless you want to crawl only to fill the
@ -526,7 +526,7 @@
<label for="indexMedia">index media</label>: <label for="indexMedia">index media</label>:
<input type="checkbox" name="indexMedia" id="indexMedia" #(indexingMediaChecked)#::checked="checked"#(/indexingMediaChecked)# /> <input type="checkbox" name="indexMedia" id="indexMedia" #(indexingMediaChecked)#::checked="checked"#(/indexingMediaChecked)# />
</dd> </dd>
#(remoteindexing)#::
<dt><label for="crawlOrder">Do Remote Indexing</label></dt> <dt><label for="crawlOrder">Do Remote Indexing</label></dt>
<dd> <dd>
<span class="info" style="float:right"><img src="env/grafics/i16.gif" width="16" height="16" alt="info"/><span style="right:0px;"> <span class="info" style="float:right"><img src="env/grafics/i16.gif" width="16" height="16" alt="info"/><span style="right:0px;">
@ -549,6 +549,7 @@
</tr> </tr>
</table> </table>
</dd> </dd>
#(/remoteindexing)#
<dt><label for="collection">Add Crawl result to collection(s)</label></dt> <dt><label for="collection">Add Crawl result to collection(s)</label></dt>
<dd> <dd>

@ -554,18 +554,25 @@ public class CrawlStartExpert {
prop.put("indexingMediaChecked", prop.put("indexingMediaChecked",
env.getConfigBool("indexMedia", true) ? 1 : 0); env.getConfigBool("indexMedia", true) ? 1 : 0);
// Do Remote Indexing? // Do Remote Indexing?
prop.put("crawlOrderChecked", if (sb.isP2PMode()) {
env.getConfigBool("crawlOrder", true) ? 1 : 0); prop.put("remoteindexing", 1);
// Remote crawl intention prop.put("remoteindexing_crawlOrderChecked", env.getConfigBool("crawlOrder", true) ? 1 : 0);
prop.put("intention", ""); prop.put("remoteindexing_intention", "");
} else {
prop.put("remoteindexing", 0);
}
} else { } else {
prop.put("indexingTextChecked", prop.put("indexingTextChecked",
post.getBoolean("indexText") ? 1 : 0); post.getBoolean("indexText") ? 1 : 0);
prop.put("indexingMediaChecked", prop.put("indexingMediaChecked",
post.getBoolean("indexMedia") ? 1 : 0); post.getBoolean("indexMedia") ? 1 : 0);
prop.put("crawlOrderChecked", if (sb.isP2PMode()) {
post.getBoolean("crawlOrder") ? 1 : 0); prop.put("remoteindexing", 1);
prop.put("intention", post.get("intention", "")); prop.put("remoteindexing_crawlOrderChecked", post.getBoolean("crawlOrder") ? 1 : 0);
prop.put("remoteindexing_intention", post.get("intention", ""));
} else {
prop.put("remoteindexing", 0);
}
} }
// Target collection // Target collection

Loading…
Cancel
Save