移除相关文献和相关搜索功能,移除文献共享方式文字显示

This commit is contained in:
wlx 2016-04-07 16:09:05 +08:00
parent c2d4b32cf8
commit e456b57b0c
2 changed files with 0 additions and 86 deletions

View File

@ -191,20 +191,11 @@ h3.gs_rt{font-size:110%;}
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs">
<li><a href="#related" data-toggle="tab" id="related_t">Related Dataset</a></li>
<li><a href="#literature" data-toggle="tab" id="literature_t">Related Literatures</a></li>
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">Searching</a></li>
<li><a href="#recommend" data-toggle="tab" id="recommend_t">Recommendation</a></li>
</ul>
<div class="tab-content">
<div id="related" class="tab-pane">
</div>
<div id="literature" class="tab-pane">
<div id="literature-list">
</div>
</div>
<div id="gsearch" class="tab-pane">
<ul id="searchlist" class="unstyled well well-small"></ul>
</div>
<div id="recommend" class="tab-pane">
</div>
@ -320,22 +311,6 @@ endforeach;
<li><strong>Downloaded: </strong><?php echo $this->downloaded; ?></li>
<?php endif; ?>
<li><strong>Viewed: </strong><?php echo $this->viewed; ?></li>
<!--
<?php if ($md->projection) : ?>
<li id="projection" title="<?= $this->projection; ?>">数据投影:
<?php
$p=explode(" ",$this->projection);
$p=explode("=",$p[0]);
if (!empty($p[1]))
echo $p[1];
else
{
if (is_numeric($md->projection)) echo 'EPSG_CODE_';
echo $md->projection;
}
?></li>
<?php endif; ?>
-->
<?php if (!empty($md->timebegin)) : ?>
<li id="datatimes"><strong>Temporal Range: </strong><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " to ".date('Y-m-d',strtotime($md->timeend)); ?></li>
<?php endif; ?>
@ -347,7 +322,6 @@ endforeach;
<a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="Download in Zip File"/></a>
</li>
<?php endif; ?>
<li id="datatype"><strong>Sharing: </strong><?php if ($md->datatype) print "Offline"; else print "Online";?> </li>
</ul>
<div id="linkurl">
<?php if ($md->status>0 and $md->status<5) : ?>
@ -430,14 +404,8 @@ endforeach;
<script type="text/javascript" charset="utf-8">
$(function() {
$(".colorbox").colorbox({photo:"true"});
$('.googlesearch').click(function(){googleSearch('<?php echo $ev;?>');});
$('.bingsearch').click(function(){bingSearch('<?php echo $ev;?>');});
$('.cnkiSearch').click(function(){cnkiSearch('<?php echo $ev;?>');});
$('.scholar').click(function(){scholarSearch('<?php echo $ev;?>');});
$('#related_t').click(function(){related(1);});
$('#recommend_t').click(function(){recommend(0);});
$('#literature_t').click(function(){scholarSearch('<?php echo $ev;?>');$('.literatures').parent('li').addClass('active')});
$('.literatures').click(function(){literature(1);});
ajaxpage(0);
related(1);
$('.lit-nav-btn').each(function(index, element) {
@ -448,21 +416,10 @@ $(function() {
$(this).parent('li').addClass('active');
});
});
$('#gsearch_t').click(function(){
if($('#searchlist').children('li').length<1)
{
googleSearch('<?php echo $ev;?>');
}
});
$('#show-list').click(function(e) {
method.filelist.get($(this).attr('rel'));
});
});
//ajax literature
function literature(page){
literature_get(page,'<?= $md->uuid; ?>');
}
//ajax related
function related(page){
related_get(page,'<?= $md->uuid; ?>');

View File

@ -190,20 +190,11 @@ h3.gs_rt{font-size:110%;}
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs">
<li><a href="#related" data-toggle="tab" id="related_t">Related Dataset</a></li>
<li><a href="#literature" data-toggle="tab" id="literature_t">Related Literatures</a></li>
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">Searching</a></li>
<li><a href="#recommend" data-toggle="tab" id="recommend_t">Recommendation</a></li>
</ul>
<div class="tab-content">
<div id="related" class="tab-pane">
</div>
<div id="literature" class="tab-pane">
<div id="literature-list">
</div>
</div>
<div id="gsearch" class="tab-pane">
<ul id="searchlist" class="unstyled well well-small"></ul>
</div>
<div id="recommend" class="tab-pane">
</div>
@ -319,22 +310,6 @@ endforeach;
<li><strong>Downloaded: </strong><?php echo $this->downloaded; ?></li>
<?php endif; ?>
<li><strong>Viewed: </strong><?php echo $this->viewed; ?></li>
<!--
<?php if ($md->projection) : ?>
<li id="projection" title="<?= $this->projection; ?>">数据投影:
<?php
$p=explode(" ",$this->projection);
$p=explode("=",$p[0]);
if (!empty($p[1]))
echo $p[1];
else
{
if (is_numeric($md->projection)) echo 'EPSG_CODE_';
echo $md->projection;
}
?></li>
<?php endif; ?>
-->
<?php if (!empty($md->timebegin)) : ?>
<li id="datatimes"><strong>Temporal Range: </strong><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " to ".date('Y-m-d',strtotime($md->timeend)); ?></li>
<?php endif; ?>
@ -346,7 +321,6 @@ endforeach;
<a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="Download in Zip File"/></a>
</li>
<?php endif; ?>
<li id="datatype"><strong>Sharing: </strong><?php if ($md->datatype) print "Offline"; else print "Online";?> </li>
</ul>
<div id="linkurl">
<?php if ($md->status>0 and $md->status<5) : ?>
@ -430,14 +404,8 @@ endforeach;
$(function() {
google.maps.event.addDomListener(window, 'load', initialize);
$(".colorbox").colorbox({photo:"true"});
$('.googlesearch').click(function(){googleSearch('<?php echo $ev;?>');});
$('.bingsearch').click(function(){bingSearch('<?php echo $ev;?>');});
$('.cnkiSearch').click(function(){cnkiSearch('<?php echo $ev;?>');});
$('.scholar').click(function(){scholarSearch('<?php echo $ev;?>');});
$('#related_t').click(function(){related(1);});
$('#recommend_t').click(function(){recommend(0);});
$('#literature_t').click(function(){scholarSearch('<?php echo $ev;?>');$('.literatures').parent('li').addClass('active')});
$('.literatures').click(function(){literature(1);});
ajaxpage(0);
related(1);
$('.lit-nav-btn').each(function(index, element) {
@ -448,21 +416,10 @@ $(function() {
$(this).parent('li').addClass('active');
});
});
$('#gsearch_t').click(function(){
if($('#searchlist').children('li').length<1)
{
googleSearch('<?php echo $ev;?>');
}
});
$('#show-list').click(function(e) {
method.filelist.get($(this).attr('rel'));
});
});
//ajax literature
function literature(page){
literature_get(page,'<?= $md->uuid; ?>');
}
//ajax related
function related(page){
related_get(page,'<?= $md->uuid; ?>');