Skip to content

Commit

Permalink
fixes #335
Browse files Browse the repository at this point in the history
  • Loading branch information
henriyli committed Nov 11, 2015
1 parent 02cdb44 commit 643fafd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions model/sparql/GenericSparql.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,9 @@ public function queryConcepts($term, $vocabs, $lang, $search_lang, $limit, $offs
$extratypes = ($arrayClass && $types === array('skos:Concept'))? "UNION { ?s a <$arrayClass> }" : "";

if (sizeof($unprefixed_types) === 1) // if only one type limitation set no UNION needed
$type = $unprefixed_types[0];
$type = '<' . $unprefixed_types[0] . '>';
else { // multiple type limitations require setting a UNION for each of those
$type = '[]';
foreach($unprefixed_types as $utype)
$extratypes .= "\nUNION { ?s a <$utype> }";
}
Expand Down Expand Up @@ -584,7 +585,7 @@ public function queryConcepts($term, $vocabs, $lang, $search_lang, $limit, $offs
$extravars
WHERE {
$graph_text
{ ?s rdf:type <$type> } UNION { ?s a isothes:ConceptGroup } $extratypes
{ ?s rdf:type $type } UNION { ?s a isothes:ConceptGroup } $extratypes
{ $pgcond
?s rdf:type ?type .
?s ?prop ?match .
Expand Down
2 changes: 1 addition & 1 deletion resource/js/docready.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ $(function() { // DOCUMENT READY
}
$('.search-result-listing').append($(data).find('.search-result'));
number_of_hits = $('.uri-input-box').length;
$ready = $("<p class='search-count'>" + results + " " + $(".search-result").length + " " + results_disp +"</p>");
$ready = $("<p class='search-count'>" + results_disp.replace('%d',$(".search-result").length) +"</p>");
offcount++;
shortenProperties();
$('.search-result:nth-last-of-type(4)').waypoint(function() { waypointCallback(); }, options );
Expand Down

0 comments on commit 643fafd

Please sign in to comment.