pushing recipe processing code, a=priya
Priya [2011-05-31 02:May:st]
pushing recipe processing code, a=priya
diff --git a/bin/fetcher.php b/bin/fetcher.php
index 6ee6cd967..710fcc745 100755
--- a/bin/fetcher.php
+++ b/bin/fetcher.php
@@ -865,7 +865,8 @@ class Fetcher implements CrawlConstants
foreach($summary_fields as $field) {
if(isset($site[$field])) {
$stored_site_pages[$i][$field] = $site[$field];
- $summarized_site_pages[$i][$field] = $site[$field];
+ $summarized_site_pages[$i][$field] =
+ $site[$field];
}
}
foreach($stored_fields as $field) {
diff --git a/bin/queue_server.php b/bin/queue_server.php
index 63c534c42..eb5d7e761 100755
--- a/bin/queue_server.php
+++ b/bin/queue_server.php
@@ -281,9 +281,9 @@ class QueueServer implements CrawlConstants
//check for orphaned queue bundles
$this->deleteOrphanedBundles();
-
- //check for toolbardata
- $this->processToolbarData();
+
+ //check for toolbardata
+ $this->processToolbarData();
$this->processIndexData();
if(time() - $this->last_index_save_time > FORCE_SAVE_TIME){
@@ -728,15 +728,15 @@ class QueueServer implements CrawlConstants
"ToolbarData";
$this->processDataFile($index_dir, "processToolbarDataInvertedIndex");
crawlLog("done.");
- echo " End of the function processToolbarData";
+ echo " End of the function processToolbarData";
}
/**
* Builds the MiniInvertedIndex for the files recived from
* extension toolbar then adds it to the INVERTED INDEX.
- *
- * @param string $file gets the toolbar file contents to process
- * toolbarshard.
+ *
+ * @param string $file gets the toolbar file contents to process
+ * toolbarshard.
*/
function processToolbarDataInvertedIndex($file)
{
@@ -778,7 +778,7 @@ class QueueServer implements CrawlConstants
crawlHash("info:".$url, "true");
$summary[self::HASH_URL] = $link_keys;
- $summary[self::URL] = $link_id;
+ $summary[self::URL] = $link_id;
$summary[self::TITLE] = $url;
// stripping html to be on the safe side
$summary[self::DESCRIPTION] = $link_text;
@@ -822,7 +822,7 @@ class QueueServer implements CrawlConstants
$toolbar_shard->changeDocumentOffsets($summary_offsets);
$this->index_archive->addIndexData($toolbar_shard);
$this->index_dirty = true;
- unlink($file);
+ unlink($file);
}
diff --git a/configs/config.php b/configs/config.php
index d039463db..22ec92256 100755
--- a/configs/config.php
+++ b/configs/config.php
@@ -50,7 +50,7 @@ if(file_exists(BASE_DIR."/configs/local_config.php")) {
if(!defined('WORK_DIRECTORY')) {
/*+++ The next block of code is machine edited, change at
your own risk, please use configure web page instead +++*/
-define('WORK_DIRECTORY', '');
+define('WORK_DIRECTORY', 'c:/xampp/htdocs/yioop_data_v0.68');
/*++++++*/
}
diff --git a/models/phrase_model.php b/models/phrase_model.php
index 5cf39aa30..0b0fe6766 100755
--- a/models/phrase_model.php
+++ b/models/phrase_model.php
@@ -425,7 +425,8 @@ class PhraseModel extends Model
*/
$query_words = explode(" ", $phrase_string); //not stemmed
- // modified from getLocaletag ()to $this->getLocaleTag() by Priya Gangaraju
+ // modified from getLocaletag ()to $this->getLocaleTag()
+ // by Priya Gangaraju
$base_words =
array_keys(PhraseParser::extractPhrasesAndCount($phrase_string,
MAX_PHRASE_LEN, $this->getLocaleTag())); //stemmed
diff --git a/views/elements/crawloptions_element.php b/views/elements/crawloptions_element.php
index c9813b52d..c047d37e4 100644
--- a/views/elements/crawloptions_element.php
+++ b/views/elements/crawloptions_element.php
@@ -167,23 +167,25 @@ class CrawloptionsElement extends Element
<?php if(isset($data['POST_PROCESSORS'])) {
?>
<table border = "1">
- <tr><th><?php e(tl('crawloptions_element_processor'));?></th>
+ <tr><th><?php e(tl('crawloptions_element_processor'));
+ ?></th>
<th><?php
- e(tl('crawloptions_element_url_include')); ?></th></tr>
+ e(tl('crawloptions_element_post_processors_include'));
+ ?></th></tr>
<div class="topmargin"><b>
<?php e(tl("crawloptions_element_post_processors"));?>
</b></div>
<?php
$k = 0;
foreach($data['POST_PROCESSORS'] as
- $processor => $checkedValue) {
+ $processor => $toggleState) {
?>
<tr><td><?php e($processor. "Processor"); ?></td>
<td align = "center"><input type="checkbox"
name="POST_PROCESSORS[<?php e($k); ?>]"
- value = "<?php e($processor) ?>"
- <?php e($checkedValue); ?>
- </td></tr>
+ value = "<?php e($processor) ?>"
+ <?php e($toggleState); ?>
+ </td></tr>
<?php
$k++;
}