From e5027f60e3080e86915bc3d12521f44043a07860 Mon Sep 17 00:00:00 2001 From: Alan Stanley Date: Mon, 27 Feb 2012 16:07:53 -0400 Subject: [PATCH] Added namespaces to relationship maninupulators for pagination --- api/fedora_item.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/fedora_item.inc b/api/fedora_item.inc index d315f904..0a345723 100644 --- a/api/fedora_item.inc +++ b/api/fedora_item.inc @@ -6,6 +6,7 @@ */ define('RELS_EXT_URI', 'info:fedora/fedora-system:def/relations-external#'); define("FEDORA_MODEL_URI", 'info:fedora/fedora-system:def/model#'); +define("ISLANDORA_PAGE_URI", 'info:islandora/islandora-system:def/pageinfo#'); /** * Fedora Item Class @@ -164,7 +165,6 @@ class Fedora_Item { return $returnvalue; } - /** * Wrapper to add new or modify existing datastream * @global url $base_url @@ -270,6 +270,10 @@ class Fedora_Item { $relationship = "hasModel"; $namespaceURI = FEDORA_MODEL_URI; break; + case "isPageNumber": + $relationship = "isPageNumber"; + $namespaceURI = ISLANDORA_PAGE_URI; + break; } if (substr($object, 0, 12) != 'info:fedora/') {