|
|
@ -7,6 +7,7 @@ use Drupal\Core\Entity\EntityTypeBundleInfoInterface; |
|
|
|
use Drupal\Core\Form\ConfigFormBase; |
|
|
|
use Drupal\Core\Form\ConfigFormBase; |
|
|
|
use Drupal\Core\Form\FormStateInterface; |
|
|
|
use Drupal\Core\Form\FormStateInterface; |
|
|
|
use Drupal\Core\Site\Settings; |
|
|
|
use Drupal\Core\Site\Settings; |
|
|
|
|
|
|
|
use Drupal\Core\Url; |
|
|
|
use GuzzleHttp\Exception\ConnectException; |
|
|
|
use GuzzleHttp\Exception\ConnectException; |
|
|
|
use Islandora\Crayfish\Commons\Client\GeminiClient; |
|
|
|
use Islandora\Crayfish\Commons\Client\GeminiClient; |
|
|
|
use Stomp\Client; |
|
|
|
use Stomp\Client; |
|
|
@ -271,6 +272,7 @@ class IslandoraSettingsForm extends ConfigFormBase { |
|
|
|
$geminiUrlValue = trim($form_state->getValue(self::GEMINI_URL)); |
|
|
|
$geminiUrlValue = trim($form_state->getValue(self::GEMINI_URL)); |
|
|
|
if (!empty($geminiUrlValue)) { |
|
|
|
if (!empty($geminiUrlValue)) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
$geminiUrl = Url::fromUri($geminiUrlValue); |
|
|
|
$client = GeminiClient::create($geminiUrlValue, $this->logger('islandora')); |
|
|
|
$client = GeminiClient::create($geminiUrlValue, $this->logger('islandora')); |
|
|
|
$client->findByUri('http://example.org'); |
|
|
|
$client->findByUri('http://example.org'); |
|
|
|
} |
|
|
|
} |
|
|
|