* @author Gabriele Droege, Patricia Kelbert (BGBM, GGBN/DNA Bank Network) * @version yii 2.0.3 * @package View * @copyright Copyright © 2011 DNA Bank Network http://www.dnabank-network.org *
The contents of this file are subject to the Mozilla Public License Version 1.1 * @filesource * @license http://www.mozilla.org/MPL/ MPL */ use yii\helpers\Html; use yii\widgets\LinkPager; use app\controllers\SearchController; use yii\helpers\Url; use yii\web\View; use yii\widgets\Pjax; $this->title = 'GGBN Portal'; if(isset($fq)){ $fq=$fq."&"; } else $fq=""; echo ''; echo '
'; foreach ($facets as $fn=>$f ){ echo $fn."
"; echo $f."
"; } echo "
Showing records ".$recordsFrom." to ".$recordsTo." (total ".$recordsTotal.")
"; echo "Jump to page GO!"; ?>

Browse data

echo''; //++++++++++++++ //Added: 27.07.15 by Anne Hartebrodt: Save Search button and Subscribe button for logged-in Users if(!\Yii::$app->user->isGuest){ echo '
'; //Note: Pjax timeout was set to 10000 because of localhost's slow response: Might be reduced when migration to actual webserver. Pjax::begin([ 'enablePushState'=>false]); Yii::$app->session['search']=Yii::$app->request->url; Yii::$app->session['records']=$pages->totalCount; ?>

Subscribe to this search and get notified by email if new records are added to the database

'btn btn-primary','data-pjax'=>'w0','timeout'=>'100000']) ?>

Save our search parameters without subscription

'btn btn-primary','data-pjax'=>'w0','timeout'=>'100000']) ?>
'; } else{ echo '
Log in to save your search parameters!
'; } //+++++++++++++++ echo '

Browse data

';
Click on the grey butterfly to load the details for a specific record. Scientificname"; // echo" "; ?> "; $tid=$lowestDoc[$elt->tripleidstoreid]; $title="Get the details for this unit"; if($tid[0]!=$elt->unitID){ $title="Get the details for the corresponding DNA or tissue if available"; } $url=Url::to ( array_merge ( [ 'search/record'], ["unitID"=>$tid[0],"collectioncode"=>$tid[1],"institutioncode"=>$tid[2]] ) ); echo ""; echo ""; // echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo"
UnitID Recordbasis Institution Collection
see detailsfullScientificName)."\">".$elt->fullScientificName."".$elt->familyName."unitID)."\">".$elt->unitID."recordbasis)."\">".$elt->recordbasis."institutioncode)."\">".$elt->institutioncode."collectioncode)."\">".$elt->collectioncode."
"; echo "
"; echo "
"; echo "
"; echo LinkPager::widget([ 'pagination' => $pages, ]); echo"
"; ?>