Downloads
Stars
Version
The LaravelYoutube service provider can be installed via composer by requiring the jorarmarfin/laravel_youtube
package in your project's composer.json.
Laravel 5.5+ will use the auto-discovery function.
{
"require": {
"jorarmarfin/laravel-dspace": "0.0.1"
}
}
If you don't use auto-discovery you will need to include the service provider / facade in config/app.php
.
'providers' => [
//...
JorarMarfin\LaravelDspace\LaravelDspaceServiceProvider::class,
]
By default, LaravelDspace will connect to https://mydspace.com, you can change this and the other settings in the configuration file. You can add the elasticquent.php config file at /app/config/dspace.php, this package has a table (resource) where to harvest the information from the dspace that is why you must run the migration before using the method
php artisan vendor:publish --provider="JorarMarfin\LaravelDspace\LaravelDspaceServiceProvider"
<?php
return[
/*
|--------------------------------------------------------------------------
| url enlace del repositorio
|--------------------------------------------------------------------------
|
| Enlace de conexion al repositorio Dspace que desea cosechar
|
*/
'url' => env('DSPACE_URL', 'https://infohub.practicalaction.org/'),
];
php artisan migrate
To gather information from dspace we must know the nomenclature of oai-pmh
dspace:harvest --set=com_11283_320273 --form=2020-02-02 --until=2020-02-02
use LaravelDspace;
public function index()
{
$data = LaravelDspace::getData(['verb'=>'ListRecords','set'=>'com_11283_320273','metadataPrefix'=>'etdms'])
$data1 = LaravelDspace::Harvest(['set'=>'com_11283_320273']);
return $data;
}