- 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:
parent
fd98c6c09d
commit
c0022e3c1c
4 changed files with 36 additions and 2 deletions
|
@ -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',
|
||||
|
|
|
@ -306,7 +306,8 @@ class Dataset extends Model
|
|||
$embargoDate->minute = 59;
|
||||
$embargoDate->second = 59;
|
||||
|
||||
return ($embargoDate->gt($now) == true);
|
||||
return ($embargoDate->lessThan($now));
|
||||
//return ($embargoDate->gt($now) == true);
|
||||
}
|
||||
|
||||
public function getRemainingTimeAttribute()
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue