Browse Source

Added namespaces to relationship maninupulators for pagination

pull/82/head
Alan Stanley 13 years ago
parent
commit
e5027f60e3
  1. 6
      api/fedora_item.inc

6
api/fedora_item.inc

@ -6,6 +6,7 @@
*/ */
define('RELS_EXT_URI', 'info:fedora/fedora-system:def/relations-external#'); define('RELS_EXT_URI', 'info:fedora/fedora-system:def/relations-external#');
define("FEDORA_MODEL_URI", 'info:fedora/fedora-system:def/model#'); define("FEDORA_MODEL_URI", 'info:fedora/fedora-system:def/model#');
define("ISLANDORA_PAGE_URI", 'info:islandora/islandora-system:def/pageinfo#');
/** /**
* Fedora Item Class * Fedora Item Class
@ -164,7 +165,6 @@ class Fedora_Item {
return $returnvalue; return $returnvalue;
} }
/** /**
* Wrapper to add new or modify existing datastream * Wrapper to add new or modify existing datastream
* @global url $base_url * @global url $base_url
@ -270,6 +270,10 @@ class Fedora_Item {
$relationship = "hasModel"; $relationship = "hasModel";
$namespaceURI = FEDORA_MODEL_URI; $namespaceURI = FEDORA_MODEL_URI;
break; break;
case "isPageNumber":
$relationship = "isPageNumber";
$namespaceURI = ISLANDORA_PAGE_URI;
break;
} }
if (substr($object, 0, 12) != 'info:fedora/') { if (substr($object, 0, 12) != 'info:fedora/') {

Loading…
Cancel
Save