From 97af81022d845f2bac13cb45cf660d40e738ea14 Mon Sep 17 00:00:00 2001 From: Mitchell MacKenzie Date: Wed, 30 May 2012 10:59:14 -0300 Subject: [PATCH] Fix RELS_EXT --- includes/islandora.ingest.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/islandora.ingest.inc b/includes/islandora.ingest.inc index 0aa310a6..b4c44720 100644 --- a/includes/islandora.ingest.inc +++ b/includes/islandora.ingest.inc @@ -13,9 +13,9 @@ function islandora_ingest_get_object($content_models, $collection_pid, $relation $connection = new RestConnection($user); $object = $connection->repository->constructObject($namespace); foreach($content_models as $content_model) { - $object->relationships->add(FEDORA_MODEL_URI, 'hasModel', $content_model); + $object->relationships->add(FEDORA_MODEL_URI, 'hasModel', $content_model['pid']); } - $object->relationships->add($relationship['uri'], $relationship['value'], $collection_pid); + $object->relationships->add(FEDORA_RELS_EXT_URI, $relationship, $collection_pid); module_invoke_all('islandora_ingest_pre_ingest', $object, $content_models, $collection_pid); return $object; }