This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\oaks_fields\Plugin\search_api\processor; | |
use Drupal\search_api\Datasource\DatasourceInterface; | |
use Drupal\search_api\Item\ItemInterface; | |
use Drupal\search_api\Processor\ProcessorPluginBase; | |
use Drupal\search_api\Processor\ProcessorProperty; | |
use Drupal\node\Entity\Node; | |
use Drupal\controlled_access_terms\EDTFUtils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eou pipefail | |
BASE_CONFIG=configs/i7.yml | |
# Example BASE_CONFIG: | |
# task: add_media | |
# host: "https://example.com" | |
# username: admin | |
# password: password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eou pipefail | |
# how many items to fetch at once | |
PARALLEL_EXECUTIONS=10 | |
PIDS=($(cat ./pids.csv)) | |
while [ "${#PIDS[@]}" -gt 0 ]; do | |
for ((i = 0; i < PARALLEL_EXECUTIONS; i++)); do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eou pipefail | |
# the source and target directory we want to rsync to another server | |
# this script assumes its the same name on both servers | |
DIR=/opt/islandora/volumes | |
# where to send the files to | |
# replace USER and STAGING with your staging server domain |