|
|
@ -264,9 +264,10 @@ function islandora_view_object($object_id) { |
|
|
|
$page_number = (empty($_GET['page'])) ? '1' : $_GET['page']; |
|
|
|
$page_number = (empty($_GET['page'])) ? '1' : $_GET['page']; |
|
|
|
$page_size = (empty($_GET['pagesize'])) ? '10' : $_GET['pagesize']; |
|
|
|
$page_size = (empty($_GET['pagesize'])) ? '10' : $_GET['pagesize']; |
|
|
|
module_load_include('inc', 'islandora', 'RestConnection'); |
|
|
|
module_load_include('inc', 'islandora', 'RestConnection'); |
|
|
|
$user = new stdClass(); |
|
|
|
//$user = new stdClass(); |
|
|
|
$user->name = 'fedoraAdmin'; |
|
|
|
//$user->name = 'fedoraAdmin'; |
|
|
|
$user->password = 'islandora'; |
|
|
|
//$user->password = 'islandora'; |
|
|
|
|
|
|
|
global $user; |
|
|
|
try { |
|
|
|
try { |
|
|
|
$restConnection = new RestConnection($user); |
|
|
|
$restConnection = new RestConnection($user); |
|
|
|
$fedora_object = new FedoraObject($object_id, $restConnection->repository); |
|
|
|
$fedora_object = new FedoraObject($object_id, $restConnection->repository); |
|
|
@ -315,9 +316,10 @@ function islandora_theme() { |
|
|
|
|
|
|
|
|
|
|
|
function islandora_datastream_as_attachment($object_id, $dsid){ |
|
|
|
function islandora_datastream_as_attachment($object_id, $dsid){ |
|
|
|
module_load_include('inc', 'islandora', 'RestConnection'); |
|
|
|
module_load_include('inc', 'islandora', 'RestConnection'); |
|
|
|
$user = new stdClass(); |
|
|
|
//$user = new stdClass(); |
|
|
|
$user->name = 'fedoraAdmin'; |
|
|
|
//$user->name = 'fedoraAdmin'; |
|
|
|
$user->password = 'islandora'; |
|
|
|
//$user->password = 'islandora'; |
|
|
|
|
|
|
|
global $user; |
|
|
|
try { |
|
|
|
try { |
|
|
|
$restConnection = new RestConnection($user); |
|
|
|
$restConnection = new RestConnection($user); |
|
|
|
$fedora_object = new FedoraObject($object_id, $restConnection->repository); |
|
|
|
$fedora_object = new FedoraObject($object_id, $restConnection->repository); |
|
|
|