From 96a4eb6279086ff7eb014fba4a4bc415588a26da Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Tue, 1 Jan 2013 20:06:00 +0000 Subject: [PATCH] Decode the pid when retrieved from the url as it may be encoded, which causes problems with tuque. --- islandora.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islandora.module b/islandora.module index f8673546..3bb2f92d 100644 --- a/islandora.module +++ b/islandora.module @@ -507,7 +507,7 @@ function islandora_object_load($object_id) { $tuque = islandora_get_tuque_connection(); if ($tuque) { try { - $object = $tuque->repository->getObject($object_id); + $object = $tuque->repository->getObject(urldecode($object_id)); drupal_alter('islandora_object', $object); return $object; } catch (Exception $e) {