Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/vfsb/linked' into vfsb/linked
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Kuntschik authored and Philipp Kuntschik committed Apr 15, 2016
2 parents 53c586b + ab05051 commit 3ccdb53
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ public function getFacetList($filter = null)
// TODO: Implement getFacetList() method.
}

public function getResults() {
return $this->results;
}

/**
* Abstract support method for performAndProcessSearch -- perform a search based
* on the parameters passed to the object. This method is responsible for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@
<h2>
<? echo $person_nameAsLabel ?>
</h2>
<div class="knowledgeCard">
<?=$this->render("elasticsearch/knowledgeCardAuthor.phtml")?>
</div>
</div>
<!-- occupation -->
<div class="meta">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?
$instances = array();

$results = $this->results->getResults();
foreach ($results as $singleResult):
if ($singleResult->isPerson()) {
$person_uniqueId = $singleResult->getUniqueID();
$person_alternativeNames = $singleResult->getAlternativeNames();
$person_biography = $singleResult->getBiography();
$person_birthDate = $singleResult->getBirthDate();
$person_birthPlace = $singleResult->getBirthPlace();
$person_deathDate = $singleResult->getDeathDate();
$person_deathPlace = $singleResult->getDeathPlace();
$person_genre = $singleResult->getGenre();
$person_influenced = $singleResult->getInfluenced();
$person_influencedBy = $singleResult->getInfluencedBy();
$person_movement = $singleResult->getMovement();
$person_nameAsLabel = $singleResult->getNameAsLabel();
$person_nationality = $singleResult->getNationality();
$person_notableWork = $singleResult->getNotableWork();
$person_occupation = $singleResult->getOccupation();
$person_partner = $singleResult->getPartner();
$person_pseudonym = $singleResult->getPseudonym();
$person_spouse = $singleResult->getSpouse();
$person_source = $singleResult->getSource();
$person_thumbnail = $singleResult->getThumbnail();
} else
$instances[] = $singleResult;
endforeach;
?>
<!-- Knowledge Card-->
<div class="knowledgeCard">
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script>
$(function() {
$( "#dialog" ).dialog({
autoOpen: false,
modal: true,
height: 500,
width: 700,
show: {
effect: "show",
duration: 1000
},
hide: {
effect: "hide",
duration: 1000
}
});

$( "#opener" ).click(function() {
$( "#dialog" ).dialog( "open" );
});
});
</script>

<div class= "knowledgeCard" id="dialog" title="<? echo $person_nameAsLabel ?>">
<div>
<div class="col-sm-2">
<h2></h2>
<img class="img-responsive" src="<? echo $person_thumbnail ?>"
alt="<? echo $person_thumbnail ?>">
</div>
<div class="col-sm-10">
<div class="meta">
<h2>
<? echo $person_nameAsLabel ?>
</h2>
</div>
<!-- occupation -->
<div class="meta">
<p><? echo $person_occupation ?></p>
</div>
<!-- birthdate, birthplace -->
<div class="meta">
<span><strong>Geboren: </strong></span><span><? echo $person_birthDate . " " . $person_birthPlace ?></span><br>
</div>
<!-- deathdate, deathplace -->
<div class="meta">
<span><strong>Gestorben: </strong></span><span><? echo $person_deathDate . " " . $person_deathPlace ?></span><br>
</div>
<!-- deathdate, deathplace -->
<div class="meta">
<span><strong>Nationalität: </strong></span><span><? echo $person_nationality ?></span><br><br>
</div>
</div>
</div>
</div>
<!-- end id dialog -->
</div>
<button id="opener"> Mehr Details</button>
<!-- end id knowledgeCard -->

0 comments on commit 3ccdb53

Please sign in to comment.