- favicons for all platforms
- deleting message box in contact view - optional property for showing heading in PersonTable.vue - showing reference type and additional abstratcs in detail view of dataset - reduced relationTypes for references
This commit is contained in:
parent
ea6288fd0f
commit
0249bcc2c5
27 changed files with 172 additions and 72 deletions
|
@ -61,9 +61,9 @@ class IndexController extends Controller
|
|||
$projects = Project::pluck('label', 'id');
|
||||
$relatedIdentifierTypes = ["doi", "handle", "isbn", "issn", "url", "urn"];
|
||||
$relatedIdentifierTypes = array_combine($relatedIdentifierTypes, $relatedIdentifierTypes);
|
||||
|
||||
$relationTypes = ["IsSupplementTo", "IsSupplementedBy", "IsContinuedBy", "Continues",
|
||||
"IsNewVersionOf", "IsPartOf", "HasPart", "Compiles", "IsVariantFormOf"];
|
||||
|
||||
$relationTypes = ["IsSupplementTo", "IsSupplementedBy", "IsContinuedBy", "Continues",
|
||||
"IsNewVersionOf", "IsPartOf", "HasPart", "Compiles", "IsVariantFormOf"];
|
||||
$relationTypes = array_combine($relationTypes, $relationTypes);
|
||||
|
||||
$titleTypes = ['Sub' => 'Sub', 'Alternative' => 'Alternative', 'Translated' => 'Translated', 'Other' => 'Other'];
|
||||
|
@ -78,7 +78,18 @@ class IndexController extends Controller
|
|||
//$relationTypes = array('updates' => 'updates', 'updated-by' => 'updated-by', 'other' => 'other');
|
||||
return view(
|
||||
'publish.create-step1',
|
||||
compact('licenses', 'languages', 'messages', 'projects', 'relatedIdentifierTypes', 'relationTypes', 'titleTypes', 'keywordTypes', 'descriptionTypes', 'page')
|
||||
compact(
|
||||
'licenses',
|
||||
'languages',
|
||||
'messages',
|
||||
'projects',
|
||||
'relatedIdentifierTypes',
|
||||
'relationTypes',
|
||||
'titleTypes',
|
||||
'keywordTypes',
|
||||
'descriptionTypes',
|
||||
'page'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -213,7 +213,10 @@ class Dataset extends Model
|
|||
{
|
||||
return $this->hasMany(Description::class, 'document_id', 'id');
|
||||
}
|
||||
|
||||
public function additionalAbstracts()
|
||||
{
|
||||
return $this->hasMany(Description::class, 'document_id', 'id')->where('type', '!=', 'Abstract');
|
||||
}
|
||||
public function mainAbstract()
|
||||
{
|
||||
return $this->hasMany(Description::class, 'document_id', 'id')->where('type', 'Abstract')->first();
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue