/** * using the collection policies pid namespace get a new pid by calling fedora' get next pid and appending it to the namespace * $pid is the $pid of the content model * $dsid is the datastream id of the content model. */ function getNextPid($pid, $dsid) { module_load_include('php', 'Fedora_Repository', 'ConnectionHelper'); $pidNameSpace = $this->getPidNameSpace($pid, $dsid); $pname = substr($pidNameSpace, 0, strpos($pidNameSpace, ":")); module_load_include('php', 'fedora_repository', 'api/fedora_item'); // $pid = Fedora_Item::get_next_pid_in_namespace($pname); // $pid = Fedora_Item::get_next_pid_in_namespace($pname); // $pid = strstr($pid, ":"); // $pid = $pidNameSpace . '-' . substr($pid, 1); // return $pid; return Fedora_Item::get_next_pid_in_namespace($pname); }