Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move id into biblio display

  • Loading branch information...
commit 78641fd4b68ecbcafc7aca35d11c456015ce2aec 1 parent 060b4d1
@hpiwowar hpiwowar authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 api/v1/v1HtmlFormat.php
View
4 api/v1/v1HtmlFormat.php
@@ -37,8 +37,8 @@ public function encode($data, $human_readable=TRUE){
$html .= '<div id="report"><ul>';
foreach ($data->items as $item) {
$html .= "<li class='artifact'>";
- $html .= "<h4>$item->id</h4>";
if (isset($item->biblio)) {
+ $html .= "<h4>$item->id</h4>";
$biblioString = "";
foreach ($item->biblio as $biblio) {
$title = "<span class='title'>$biblio->title</span>";
@@ -49,7 +49,7 @@ public function encode($data, $human_readable=TRUE){
$biblioString .= "<li class='biblio'>" . "$authors $year <a class='meta-url' target='_blank' href='$url'> $title</a> $repo <br/>" . "</li>";
}
$html .= "<ul class='biblio'>" . $biblioString . "</ul>";
- }
+ }
if (isset($item->metrics)) {
$metricString = "";
foreach ($item->metrics as $metric) {
Please sign in to comment.
Something went wrong with that request. Please try again.