Permalink
Browse files

COLORADO-1197 - fixed searching in RELS-INT based on non-existent PID

I am not sure if this code is ever called but as it is a copy of the
incorrect code in adr_basic_viewer I have changed it here as well.

The reference ot the PID of the object being searched for a thumbnail
was referenced by variable that was incorrect.  The variable used was
this->pid (did not exist) and should have been this->item.pid.
  • Loading branch information...
1 parent 0737f31 commit b2c5b9f6ce5f3b9fa5761c0cea19ac65549b3740 @discoverygnoye discoverygnoye committed Nov 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Thumbnail.inc
View
@@ -132,7 +132,7 @@ class Thumbnail {
private function getUrlFromRelsInt() {
$rels_int = $this->getRelsInt();
if (isset($rels_int)) {
- $path = "/rdf:RDF/rdf:Description[@rdf:about='info:fedora/{$this->pid}/{$this->dsid}']/coal:hasThumbnail"; // coal Namespace is worry some.
+ $path = "/rdf:RDF/rdf:Description[@rdf:about='info:fedora/{$this->item->pid}/{$this->dsid}']/coal:hasThumbnail"; // coal Namespace is worry some.
$results = $rels_int->xpath($path);
if (is_array($results) && count($results) > 0) {
$attributes = $results[0]->attributes('rdf', TRUE);

0 comments on commit b2c5b9f

Please sign in to comment.