修正google scholar搜索结果显示

This commit is contained in:
wlx 2011-12-03 05:50:10 +00:00
parent ca027fa17b
commit a40e920c91
1 changed files with 3 additions and 3 deletions

View File

@ -243,9 +243,9 @@ endforeach;
<div id="gsearch"> <div id="gsearch">
<ul id="searchctrl"> <ul id="searchctrl">
<li><a href="javascript:;" class="googlesearch">Google搜索</a></li> <li><a href="javascript:;" class="googlesearch">Google搜索</a></li>
<li><a href="javascript:;" class="scholar">Google学术搜索</a></li>
<li><a href="javascript:;" class="bingsearch">BING搜索</a></li> <li><a href="javascript:;" class="bingsearch">BING搜索</a></li>
<li><a href="javascript:;" class="cnkiSearch">CNKI搜索</a></li> <li><a href="javascript:;" class="scholar">Google学术搜索</a></li>
<li><a href="javascript:;" class="cnkiSearch">CNKI学术搜索</a></li>
</ul> </ul>
<ul id="searchlist"> <ul id="searchlist">
</ul> </ul>
@ -480,7 +480,7 @@ function scholarSearch(keyword){
items.push('<li>' + obj.error + '</li>'); items.push('<li>' + obj.error + '</li>');
}else{ }else{
$.each(obj.result, function(key, val) { $.each(obj.result, function(key, val) {
var html = '<p><a href="' +val['url']+'" target="_blank">'+val['title']+'</a></p>' var html = val['title']
+'<p>' +'<p>'
+val['content'] +val['content']
+'</p>'; +'</p>';