translation
This commit is contained in:
parent
d8a8ffa66f
commit
d0960adae9
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('高级搜索');
|
$this->headTitle('Advance Search');
|
||||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
$this->breadcrumb('高级搜索');
|
$this->breadcrumb('Advance Search');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
$this->theme->AppendPlus($this,'google_map_v3');
|
$this->theme->AppendPlus($this,'google_map_v3');
|
||||||
$this->theme->AppendPlus($this,'google_map_keydragzone');
|
$this->theme->AppendPlus($this,'google_map_keydragzone');
|
||||||
|
@ -37,29 +37,29 @@ foreach($this->metadata as $md) : ?>
|
||||||
<div class="span8" id="map_canvas" style="height:500px;"></div>
|
<div class="span8" id="map_canvas" style="height:500px;"></div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<form id="search" enctype="application/x-www-form-urlencoded" action="/search" method="get">
|
<form id="search" enctype="application/x-www-form-urlencoded" action="/search" method="get">
|
||||||
<fieldset><legend>时间范围</legend>
|
<fieldset><legend>Temporal Range</legend>
|
||||||
<label>
|
<label>
|
||||||
开始时间
|
Start:
|
||||||
<input name="begin" type="text" id="begin" value="<?php echo $this->begin; ?>"/>
|
<input name="begin" type="text" id="begin" value="<?php echo $this->begin; ?>"/>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
结束时间
|
End:
|
||||||
<input name="end" type="text" id="end" value="<?php echo $this->end; ?>" />
|
<input name="end" type="text" id="end" value="<?php echo $this->end; ?>" />
|
||||||
</label>
|
</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset><legend>空间范围(按住shift键,在地图上拉框)</legend>
|
<fieldset><legend>Spatial Range (Press shift key, drag a box in the map)</legend>
|
||||||
<label>东
|
<label>East
|
||||||
<input name="east" id="east" type="text" value="<?php echo $this->east; ?>"/></label>
|
<input name="east" id="east" type="text" value="<?php echo $this->east; ?>"/></label>
|
||||||
<label>南
|
<label>South
|
||||||
<input name="south" id="south" type="text" value="<?php echo $this->south; ?>" /></label>
|
<input name="south" id="south" type="text" value="<?php echo $this->south; ?>" /></label>
|
||||||
<label>西
|
<label>West
|
||||||
<input name="west" id="west" type="text" value="<?php echo $this->west; ?>" /></label>
|
<input name="west" id="west" type="text" value="<?php echo $this->west; ?>" /></label>
|
||||||
<label>北
|
<label>North
|
||||||
<input name="north" id="north" type="text" value="<?php echo $this->north; ?>" /></label>
|
<input name="north" id="north" type="text" value="<?php echo $this->north; ?>" /></label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<label>关键词
|
<label>Keyword
|
||||||
<input name="q" id="q" type="text" value="<?php echo $this->q; ?>"/></label>
|
<input name="q" id="q" type="text" value="<?php echo $this->q; ?>"/></label>
|
||||||
<button id="search" class="btn btn-large btn-block btn-primary" type="submit" value="" onclick="dosubmit()" ><i class="icon-search"></i>搜索</button>
|
<button id="search" class="btn btn-large btn-block btn-primary" type="submit" value="" onclick="dosubmit()" ><i class="icon-search"></i>Search</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -199,13 +199,6 @@ function dosubmit() {
|
||||||
theForm.action="/search";
|
theForm.action="/search";
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<div id="help">
|
|
||||||
<fieldset><legend>搜索说明</legend><ul><li>关键词:您可以使用一个关键词,比如“沙漠”,也可以使用多个关键词,中间用空格分开。</li>
|
|
||||||
<li>空间范围:这是以度为单位的十进制数字。比如,东经125度30分,可以输入为125.5。您也可以通过下面的在线地图工具直接在图上拉框选择一个范围,空间坐标会自动转换到文本框中。</li>
|
|
||||||
<li>时间范围:指数据的时间范围,从开始时间到结束时间。开始时间与结束时间可以为空,若仅填写开始时间,则含义为选择大于开始时间的数据。若仅填写结束时间,则含义为选择小于结束时间的数据。时间格式为YYYY-MM-DD。</li>
|
|
||||||
<li>还不清楚?您可以到<a href="http://forum.westgis.ac.cn/viewforum.php?f=30">论坛</a>提问。</li>
|
|
||||||
</ul></fieldset>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,11 +34,11 @@ ${'s_' . $s} = ' selected';
|
||||||
$search=$this->search;
|
$search=$this->search;
|
||||||
|
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('首页');
|
$this->headTitle('Home');
|
||||||
$this->headTitle('搜索');
|
$this->headTitle('Search');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/search.css');
|
$this->headLink()->appendStylesheet('/css/search.css');
|
||||||
$this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
|
$this->nav[] = array('link'=>"/search",'title'=>'Full Text Search');
|
||||||
?>
|
?>
|
||||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -46,19 +46,19 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
|
||||||
<!-- search form -->
|
<!-- search form -->
|
||||||
<form id="q-form" class="form-search form-inline" method="get">
|
<form id="q-form" class="form-search form-inline" method="get">
|
||||||
<div id="q-input" class="input-append">
|
<div id="q-input" class="input-append">
|
||||||
<input class="span4 search-query text" type="text" name="q" placeholder="输入任意关键词皆可搜索" value="<?php echo htmlspecialchars($q); ?>" />
|
<input class="span4 search-query text" type="text" name="q" placeholder="Input any words to search" value="<?php echo htmlspecialchars($q); ?>" />
|
||||||
<button type="submit" class="btn">Search</button>
|
<button type="submit" class="btn">Search</button>
|
||||||
</div>
|
</div>
|
||||||
<input type="radio" name="f" value="title" <?php if (!empty($f_title)) echo $f_title; ?> />标题
|
<input type="radio" name="f" value="title" <?php if (!empty($f_title)) echo $f_title; ?> />Title
|
||||||
<input type="radio" name="f" value="_all" <?php if (!empty($f__all)) echo $f__all; ?> />全文
|
<input type="radio" name="f" value="_all" <?php if (!empty($f__all)) echo $f__all; ?> />Fulltext
|
||||||
<input type="checkbox" name="m" value="yes" <?php echo $m_check; ?> />模糊搜索
|
<input type="checkbox" name="m" value="yes" <?php echo $m_check; ?> />fuzzy
|
||||||
<input type="hidden" name="east" value="<?php echo $east; ?>" />
|
<input type="hidden" name="east" value="<?php echo $east; ?>" />
|
||||||
<input type="hidden" name="west" value="<?php echo $west; ?>" />
|
<input type="hidden" name="west" value="<?php echo $west; ?>" />
|
||||||
<input type="hidden" name="south" value="<?php echo $south; ?>" />
|
<input type="hidden" name="south" value="<?php echo $south; ?>" />
|
||||||
<input type="hidden" name="north" value="<?php echo $north; ?>" />
|
<input type="hidden" name="north" value="<?php echo $north; ?>" />
|
||||||
<input type="hidden" name="begin" value="<?php echo $begin; ?>" />
|
<input type="hidden" name="begin" value="<?php echo $begin; ?>" />
|
||||||
<input type="hidden" name="end" value="<?php echo $end; ?>" />
|
<input type="hidden" name="end" value="<?php echo $end; ?>" />
|
||||||
<button type="button" class="btn" id="advance">高级搜索</button>
|
<button type="button" class="btn" id="advance">Advance</button>
|
||||||
<!-- <li><input type="checkbox" name="syn" value="yes" <?php echo $syn_check; ?> />同义词</li>
|
<!-- <li><input type="checkbox" name="syn" value="yes" <?php echo $syn_check; ?> />同义词</li>
|
||||||
<li>
|
<li>
|
||||||
按
|
按
|
||||||
|
@ -73,10 +73,10 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
|
||||||
if ($begin || $end || $east)
|
if ($begin || $end || $east)
|
||||||
{
|
{
|
||||||
echo '<div class="well well-small">';
|
echo '<div class="well well-small">';
|
||||||
if ($begin || $end) echo '<span class="text-success">时间范围</span>';
|
if ($begin || $end) echo '<span class="text-success">Temporal Range</span>';
|
||||||
if ($begin) echo '开始:'.$begin;
|
if ($begin) echo 'Start: '.$begin;
|
||||||
if ($end) echo '结束:'.$end;
|
if ($end) echo 'End: '.$end;
|
||||||
if ($east) echo '<span class="text-success">空间范围</span> 东:'.$east.' 西:'.$west.' 南:'.$south.' 北:'.$north;
|
if ($east) echo '<span class="text-success">Spatial Range</span> E:'.$east.' W:'.$west.' S:'.$south.' N:'.$north;
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -84,7 +84,7 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
|
||||||
<!-- hot search -->
|
<!-- hot search -->
|
||||||
<?php if (count($this->hot) > 0): ?>
|
<?php if (count($this->hot) > 0): ?>
|
||||||
<div id="hot-search" class="res_div2">
|
<div id="hot-search" class="res_div2">
|
||||||
<h4>热门搜索</h4>
|
<h4>Hot Search</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach($this->hot as $word => $freq): ?>
|
<?php foreach($this->hot as $word => $freq): ?>
|
||||||
<li><a href="/search?q=<?php echo urlencode($word); ?>"><?php echo $word; ?></a><small>(<?php echo $freq; ?>)</small></li>
|
<li><a href="/search?q=<?php echo urlencode($word); ?>"><?php echo $word; ?></a><small>(<?php echo $freq; ?>)</small></li>
|
||||||
|
@ -97,21 +97,21 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
|
||||||
|
|
||||||
<!-- neck bar -->
|
<!-- neck bar -->
|
||||||
<div id="res-neck">
|
<div id="res-neck">
|
||||||
大约有 <strong><?php echo number_format($this->count); ?></strong> 项符合查询结果,
|
Hitted <strong><?php echo number_format($this->count); ?></strong> items,
|
||||||
库内数据总量为 <strong><?php echo number_format($this->total); ?></strong> 项。
|
Total <strong><?php echo number_format($this->total); ?></strong> items.
|
||||||
(搜索耗时:<?php printf('%.4f', $this->search_cost); ?>秒 - 页面处理时间:<?php printf('%.4f', $this->total_cost); ?>秒)
|
(Search time: <?php printf('%.4f', $this->search_cost); ?> Seconds - Page generated time: <?php printf('%.4f', $this->total_cost); ?>Seconds)
|
||||||
[<a href="<?php echo "$this->base_url&xml=yes&p=$p" ;?> " target="_blank">XML</a>]
|
[<a href="<?php echo "$this->base_url&xml=yes&p=$p" ;?> " target="_blank">XML</a>]
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- error -->
|
<!-- error -->
|
||||||
<?php if (!empty($this->error)): ?>
|
<?php if (!empty($this->error)): ?>
|
||||||
<div id="res-error"><strong>错误:</strong><?php echo $this->error; ?></div>
|
<div id="res-error"><strong>Error: </strong><?php echo $this->error; ?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- fixed query -->
|
<!-- fixed query -->
|
||||||
<?php if (count($this->corrected) > 0): ?>
|
<?php if (count($this->corrected) > 0): ?>
|
||||||
<div id="res-fixed" class="res_div2">
|
<div id="res-fixed" class="res_div2">
|
||||||
<h4>您是不是要找:</h4>
|
<h4>Are you interested in :</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($this->corrected as $word): ?>
|
<?php foreach ($this->corrected as $word): ?>
|
||||||
<li><a href="<?php echo '/search?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>
|
<li><a href="<?php echo '/search?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>
|
||||||
|
@ -122,7 +122,7 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
|
||||||
|
|
||||||
<?php if (count($this->expanded) > 0): ?>
|
<?php if (count($this->expanded) > 0): ?>
|
||||||
<div id="res-fixed" class="res_div2">
|
<div id="res-fixed" class="res_div2">
|
||||||
<h4>您是不是要找:</h4>
|
<h4>Are you interested in : </h4>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($this->expanded as $word): ?>
|
<?php foreach ($this->expanded as $word): ?>
|
||||||
<li><a href="<?php echo '/search?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>
|
<li><a href="<?php echo '/search?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>
|
||||||
|
@ -135,11 +135,10 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
|
||||||
<!-- empty result -->
|
<!-- empty result -->
|
||||||
<?php if ($this->count === 0 && empty($this->error)): ?>
|
<?php if ($this->count === 0 && empty($this->error)): ?>
|
||||||
<div id="res-empty">
|
<div id="res-empty">
|
||||||
<p>找不到和 <strong><?php echo htmlspecialchars($q); ?></strong> 相符的内容或信息。建议您:</p>
|
<p>Could not find results related with <strong><?php echo htmlspecialchars($q); ?></strong>. Recommendation: </p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>请检查输入字词有无错误。</li>
|
<li>Are there some errors in your query string?</li>
|
||||||
<li>请换用另外的查询字词。</li>
|
<li>Change your query string.</li>
|
||||||
<li>请改用较短、较为常见的字词。</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -154,8 +153,8 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
|
||||||
</h2>
|
</h2>
|
||||||
<p><?php echo $search->highlight(htmlspecialchars($doc->description)); ?></p>
|
<p><?php echo $search->highlight(htmlspecialchars($doc->description)); ?></p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><span>关键词:</span> <?php echo $search->highlight(htmlspecialchars($doc->keyword)); ?></li>
|
<li><span>Keywords: </span> <?php echo $search->highlight(htmlspecialchars($doc->keyword)); ?></li>
|
||||||
<li><span>元数据:</span> <?php echo $search->highlight(htmlspecialchars($doc->data)); ?></li>
|
<li><span>Metadata: </span> <?php echo $search->highlight(htmlspecialchars($doc->data)); ?></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
@ -164,7 +163,7 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
|
||||||
<!-- pager -->
|
<!-- pager -->
|
||||||
<?php if (!empty($this->pager)): ?>
|
<?php if (!empty($this->pager)): ?>
|
||||||
<div id="res-pager" class="res_div2">
|
<div id="res-pager" class="res_div2">
|
||||||
<strong>分页:</strong>
|
<strong>Page: </strong>
|
||||||
<?php echo $this->pager; ?>
|
<?php echo $this->pager; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -172,7 +171,7 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
|
||||||
<!-- related query -->
|
<!-- related query -->
|
||||||
<?php if (count($this->related) > 0): ?>
|
<?php if (count($this->related) > 0): ?>
|
||||||
<div id="res-related" class="res_div2">
|
<div id="res-related" class="res_div2">
|
||||||
<h4>相关搜索</h4>
|
<h4>Related Search</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($this->related as $word): ?>
|
<?php foreach ($this->related as $word): ?>
|
||||||
<li><a href="<?php echo '/search?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>
|
<li><a href="<?php echo '/search?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>
|
||||||
|
|
Loading…
Reference in New Issue