|
@@ -156,7 +156,6 @@ function tripal_ws_load_remote_entity($site_id, $api_version, $ctype, $id) {
|
|
$url = $site->url . "/ws/v0.1/content/" . $ctype . "/" . $id;
|
|
$url = $site->url . "/ws/v0.1/content/" . $ctype . "/" . $id;
|
|
$json = file_get_contents($url);
|
|
$json = file_get_contents($url);
|
|
$response = json_decode($json, TRUE);
|
|
$response = json_decode($json, TRUE);
|
|
-dpm($response);
|
|
|
|
|
|
|
|
// Set the title for this page to match the title provided.
|
|
// Set the title for this page to match the title provided.
|
|
drupal_set_title($response['label']);
|
|
drupal_set_title($response['label']);
|
|
@@ -236,8 +235,6 @@ dpm($response);
|
|
}
|
|
}
|
|
// If the result is not a collection then just add it.
|
|
// If the result is not a collection then just add it.
|
|
else {
|
|
else {
|
|
- dpm($response[$term_name]);
|
|
|
|
- dpm($subquery);
|
|
|
|
unset($subquery['@context']);
|
|
unset($subquery['@context']);
|
|
unset($subquery['@id']);
|
|
unset($subquery['@id']);
|
|
$f = array();
|
|
$f = array();
|