- add ui for editor for publishing dois
- composer updates - unit test with test credentials
This commit is contained in:
parent
367dd328ef
commit
b5abcef327
14 changed files with 422 additions and 102 deletions
|
@ -13,6 +13,7 @@ use App\Models\Project;
|
|||
use App\Models\Title;
|
||||
use App\Models\User;
|
||||
use App\Models\XmlCache;
|
||||
use App\Models\DatasetIdentifier;
|
||||
use Carbon\Carbon;
|
||||
// use App\Models\GeolocationBox;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
@ -96,6 +97,14 @@ class Dataset extends Model
|
|||
return $this->belongsTo(Project::class, 'project_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the doi indentifier that owns the dataset.
|
||||
*/
|
||||
public function identifier()
|
||||
{
|
||||
return $this->hasOne(DatasetIdentifier::class, 'dataset_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the account that the dataset belongs to
|
||||
*/
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue