- name_types of persons

This commit is contained in:
Arno Kaimbacher 2019-09-16 14:07:10 +02:00
parent 69f6f250b9
commit 3a67bba19a
3 changed files with 4 additions and 4 deletions

View File

@ -383,7 +383,7 @@ class IndexController extends Controller
$title = new Title();
$title->value = $formTitle['value'];
$title->language = $formTitle['language'];
$title->type = 'main';
$title->type = 'Main';
//$dataset->addMainTitle($title);
$dataset->titles()->save($title);
}
@ -402,7 +402,7 @@ class IndexController extends Controller
$abstract = new Description();
$abstract->value = $formAbstract['value'];
$abstract->language = $formAbstract['language'];
$abstract->type = 'abstract';
$abstract->type = 'Abstract';
//$dataset->addMainAbstract($abstract);
$dataset->abstracts()->save($abstract);
}

View File

@ -27,7 +27,7 @@ class CreatePersonsTable extends Migration
$table->string('identifier_misc', 50)->nullable();
$table->boolean('status')->nullable()->default(1);
$table->integer('registered_at')->nullable();
$table->enum('name_type', ['author', 'contributor', 'other'])->nullable();
$table->enum('name_type', ['Organizational', 'Personal'])->nullable();
});
Schema::create('link_documents_persons', function (Blueprint $table) {

View File

@ -40,7 +40,7 @@
<div class="pure-control-group">
{!! Form::label('name_type', 'Name Type') !!}
<div class="select form-control">
{!! Form::select('name_type', ['personal' => 'Personal', 'organizational' => 'Organizational'], null, ['id' => 'name_type', 'placeholder' => '-- no name type --']) !!}
{!! Form::select('name_type', ['Personal' => 'Personal', 'Organizational' => 'Organizational'], null, ['id' => 'name_type', 'placeholder' => '-- no name type --']) !!}
</div>
<small id="nameTypeHelp" class="pure-form-message-inline">name type is optional</small>
</div>