Skip to content

Commit

Permalink
https://github.com/mjordan/islandora_riprap/issues/39.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjordan committed Apr 28, 2021
1 parent e788b01 commit d6b22ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sample_islandora_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ plugins.fetchresourcelist: ['PluginFetchResourceListFromDrupalView']
drupal_baseurl: 'http://localhost:8000'
drupal_user: admin
drupal_password: islandora
# This should use the same hostname/IP address as is used for FCREPO in Islandora's configuration.
# Otherwise, the file URIs may not match up.
fedora_baseurl: 'http://127.0.0.1:8080/fcrepo/rest'
# Absolute or relative to the Riprap application directory.
views_pager_data_file_path: 'var/fetchresourcelist.from.drupal.pager.txt'
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin/PluginFetchResourceListFromDrupalView.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ private function getFileUrlFromFedora($mid)
// Then convert the URL from the Media to the binary resource URL in Fedora.
$target_file_flysystem_url = stripslashes($target_file_flysystem_url);
$file_path = preg_replace('#^.*_flysystem/fedora/#', '', $target_file_flysystem_url);
$fedora_file_url = rtrim($this->fedora_base_url, '/') . '/' . $file_path;
return $fedora_file_url;
$fedora_file_url = rtrim($this->fedora_base_url, '/') . '/' . $file_path;
return $fedora_file_url;
}

/**
Expand Down

0 comments on commit d6b22ee

Please sign in to comment.