From 33733f19c9a74d1bd8c42974fe928526326d031d Mon Sep 17 00:00:00 2001 From: Daniel Lamb Date: Thu, 30 Jul 2015 11:30:49 -0300 Subject: [PATCH] Patching up vagrant build. --- islandora_basic_image/islandora_basic_image.module | 10 +++++----- islandora_collection/islandora_collection.module | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/islandora_basic_image/islandora_basic_image.module b/islandora_basic_image/islandora_basic_image.module index 7ab79bfa..1b9f2534 100644 --- a/islandora_basic_image/islandora_basic_image.module +++ b/islandora_basic_image/islandora_basic_image.module @@ -50,15 +50,15 @@ function islandora_basic_image_form_islandora_basic_image_node_form_alter(&$form ->condition('n.type', ISLANDORA_COLLECTION_CONTENT_TYPE) ->execute() ->fetchAllKeyed(); - $options = $default + $from_db; - + $options = $default + $from_db; + // Add the select to the form. $form['parent_collection'] = array( '#type' => 'select', '#title' => t('Parent Collection'), '#description' => t('Select the parent collection to add this to. Select "Fedora Root" if you want it to be a top-level collection'), '#options' => $options, - '#default_value' => '', + '#default_value' => '', '#weight' => -4, ); @@ -131,7 +131,7 @@ function islandora_basic_image_node_postinsert($node) { ); } - httprl_request("http://10.0.2.15:8888/islandora/rest/basic-image/?uuid=$parent_collection", + httprl_request("http://127.0.0.1:8888/islandora/rest/basic-image/?uuid=$parent_collection", $options); $response = httprl_send_request(); } @@ -171,7 +171,7 @@ function islandora_basic_image_node_postupdate($node) { ); } - httprl_request("http://10.0.2.15:8888/islandora/rest/basic-image/?uuid={$node->uuid}", + httprl_request("http://127.0.0.1:8888/islandora/rest/basic-image/?uuid={$node->uuid}", $options); $response = httprl_send_request(); } diff --git a/islandora_collection/islandora_collection.module b/islandora_collection/islandora_collection.module index 2a47d0b9..f77fa7b1 100644 --- a/islandora_collection/islandora_collection.module +++ b/islandora_collection/islandora_collection.module @@ -53,15 +53,15 @@ function islandora_collection_form_islandora_collection_node_form_alter(&$form, ->condition('n.type', ISLANDORA_COLLECTION_CONTENT_TYPE) ->execute() ->fetchAllKeyed(); - $options = $default + $from_db; - + $options = $default + $from_db; + // Add the select to the form. $form['parent_collection'] = array( '#type' => 'select', '#title' => t('Parent Collection'), '#description' => t('Select the parent collection to add this to. Select "Fedora Root" if you want it to be a top-level collection'), '#options' => $options, - '#default_value' => '', + '#default_value' => '', '#weight' => -4, ); @@ -117,7 +117,7 @@ function islandora_collection_node_postinsert($node) { } $node = array_pop($nodes); - $url = "http://localhost:8181/islandora/rest/collection/$parent_collection"; + $url = "http://127.0.0.1:8181/islandora/rest/collection/$parent_collection"; dd("REQUEST URL: $url"); // Don't forget the trailing slash. @@ -155,7 +155,7 @@ function islandora_collection_node_postupdate($node) { $node = array_pop($nodes); $uuid = $node->uuid; - httprl_request("http://localhost:8181/islandora/rest/collection/$uuid", + httprl_request("http://127.0.0.1:8181/islandora/rest/collection/$uuid", array( 'method' => 'PUT', 'data' => json_encode($node), @@ -177,7 +177,7 @@ function islandora_collection_node_postdelete($node) { } $uuid = $node->uuid; - httprl_request("http://localhost:8181/islandora/rest/collection/$uuid", + httprl_request("http://127.0.0.1:8181/islandora/rest/collection/$uuid", array( 'method' => 'DELETE', ));