- bug release: oai-dc: doi identifier into dec:relations; oai-datacite: support translated abstract

- composer updates
This commit is contained in:
Arno Kaimbacher 2022-02-03 16:14:03 +01:00
parent 995967b734
commit 526b48b06e
4 changed files with 118 additions and 111 deletions

View file

@ -39,7 +39,7 @@ trait DatasetExtension
),
'TitleAbstractAdditional' => array(
'model' => Description::class,
'options' => array('type' => ['Methods', 'Technical_info', 'Series_information', 'Other']),
'options' => array('type' => ['Translated', 'Methods', 'Technical_info', 'Series_information', 'Other']),
'fetch' => 'eager'
),
'Licence' => array(
@ -298,7 +298,8 @@ trait DatasetExtension
//$through = $this->externalFields[$fieldname]['through'];
$rows = $this->{$relation}()->wherePivot('role', $pivotValue)->get();
//$rows = $this->{$relation}()->get();
//$rows = $this->belongsToMany($modelclass, $through, 'document_id')->wherePivot('role', $pivotValue)->get();
//$rows = $this->belongsToMany($modelclass, $through, 'document_id')
//->wherePivot('role', $pivotValue)->get();
}
} else {
$rows = $select->whereHas('dataset', function ($q) use ($datasetId) {