- DatasetExtension.php save also Reference for datacite and dublin_core transformations

- oai:datacite.xslt für relatedIdentifiers
- oai: dc: datasetxml2oai-pmh.xslt für dc:relation
- dataset.php correct hasEmbargoPassed() method
This commit is contained in:
Arno Kaimbacher 2020-03-05 13:40:09 +01:00
parent fd98c6c09d
commit c0022e3c1c
4 changed files with 36 additions and 2 deletions

View file

@ -6,9 +6,9 @@ use App\Models\Description;
use App\Models\License;
use App\Models\Person;
use App\Models\File;
use App\Models\GeolocationBox;
use App\Models\Coverage;
use App\Models\Subject;
use App\Models\DatasetReference;
/**
* DatasetExtension short summary.
@ -65,6 +65,11 @@ trait DatasetExtension
'relation' => 'persons',
'fetch' => 'eager'
),
'Reference' => array(
'model' => DatasetReference::class,
'relation' => 'references',
'fetch' => 'eager'
),
'Subject' => array(
'model' => Subject::class,
'relation' => 'subjects',