Browse Source

fedora url

pull/742/head
Natkeeran 6 years ago
parent
commit
b9c0235fae
  1. 1
      config/install/islandora.settings.yml
  2. 5
      src/EventGenerator/EventGenerator.php
  3. 7
      src/Form/IslandoraSettingsForm.php

1
config/install/islandora.settings.yml

@ -2,3 +2,4 @@ broker_url: 'tcp://localhost:61613'
jwt_expiry: '+2 hour'
gemini_url: ''
gemini_pseudo_bundles: []
fedora_url: 'http://localhost:8080/fcrepo/rest'

5
src/EventGenerator/EventGenerator.php

@ -6,6 +6,7 @@ use Drupal\Core\Entity\EntityInterface;
use Drupal\islandora\IslandoraUtils;
use Drupal\islandora\MediaSource\MediaSourceService;
use Drupal\user\UserInterface;
use Drupal\islandora\Form\IslandoraSettingsForm;
/**
* The default EventGenerator implementation.
@ -87,6 +88,10 @@ class EventGenerator implements EventGeneratorInterface {
],
],
];
$fedora_url = \Drupal::config(IslandoraSettingsForm::CONFIG_NAME)
->get(IslandoraSettingsForm::FEDORA_URL);
$event["target"] = $fedora_url;
$entity_type = $entity->getEntityTypeId();
$event_type = $data["event"];

7
src/Form/IslandoraSettingsForm.php

@ -24,6 +24,7 @@ class IslandoraSettingsForm extends ConfigFormBase {
const JWT_EXPIRY = 'jwt_expiry';
const GEMINI_URL = 'gemini_url';
const GEMINI_PSEUDO = 'gemini_pseudo_bundles';
const FEDORA_URL = 'fedora_url';
/**
* To list the available bundle types.
@ -95,6 +96,12 @@ class IslandoraSettingsForm extends ConfigFormBase {
'#default_value' => $config->get(self::GEMINI_URL),
];
$form[self::FEDORA_URL] = [
'#type' => 'textfield',
'#title' => $this->t('Fedora URL'),
'#default_value' => $config->get(self::FEDORA_URL),
];
$selected_bundles = $config->get(self::GEMINI_PSEUDO);
$options = [];

Loading…
Cancel
Save