|
|
@ -124,12 +124,15 @@ function islandora_collection_node_postinsert($node) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$node = array_pop($nodes); |
|
|
|
$node = array_pop($nodes); |
|
|
|
$url = "http://127.0.0.1:8181/islandora/rest/collection/$parent_collection"; |
|
|
|
$url = "http://127.0.0.1:8181/cxf/islandora/collection/$parent_collection"; |
|
|
|
|
|
|
|
|
|
|
|
// Don't forget the trailing slash. |
|
|
|
// Don't forget the trailing slash. |
|
|
|
httprl_request($url, |
|
|
|
httprl_request($url, |
|
|
|
array( |
|
|
|
array( |
|
|
|
'method' => 'POST', |
|
|
|
'method' => 'POST', |
|
|
|
|
|
|
|
'headers' => array( |
|
|
|
|
|
|
|
'Content-Type' => 'application/json', |
|
|
|
|
|
|
|
), |
|
|
|
'data' => json_encode($node), |
|
|
|
'data' => json_encode($node), |
|
|
|
)); |
|
|
|
)); |
|
|
|
$response = httprl_send_request(); |
|
|
|
$response = httprl_send_request(); |
|
|
@ -161,9 +164,12 @@ function islandora_collection_node_postupdate($node) { |
|
|
|
|
|
|
|
|
|
|
|
$node = array_pop($nodes); |
|
|
|
$node = array_pop($nodes); |
|
|
|
$uuid = $node->uuid; |
|
|
|
$uuid = $node->uuid; |
|
|
|
httprl_request("http://127.0.0.1:8181/islandora/rest/collection/$uuid", |
|
|
|
httprl_request("http://127.0.0.1:8181/cxf/islandora/collection/$uuid", |
|
|
|
array( |
|
|
|
array( |
|
|
|
'method' => 'PUT', |
|
|
|
'method' => 'PUT', |
|
|
|
|
|
|
|
'headers' => array( |
|
|
|
|
|
|
|
'Content-Type' => 'application/json', |
|
|
|
|
|
|
|
), |
|
|
|
'data' => json_encode($node), |
|
|
|
'data' => json_encode($node), |
|
|
|
)); |
|
|
|
)); |
|
|
|
$response = httprl_send_request(); |
|
|
|
$response = httprl_send_request(); |
|
|
@ -183,7 +189,7 @@ function islandora_collection_node_postdelete($node) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$uuid = $node->uuid; |
|
|
|
$uuid = $node->uuid; |
|
|
|
httprl_request("http://127.0.0.1:8181/islandora/rest/collection/$uuid", |
|
|
|
httprl_request("http://127.0.0.1:8181/cxf/islandora/collection/$uuid", |
|
|
|
array( |
|
|
|
array( |
|
|
|
'method' => 'DELETE', |
|
|
|
'method' => 'DELETE', |
|
|
|
)); |
|
|
|
)); |
|
|
|