diff --git a/app/Http/Controllers/Publish/IndexController.php b/app/Http/Controllers/Publish/IndexController.php index 4d692bc..60fa459 100644 --- a/app/Http/Controllers/Publish/IndexController.php +++ b/app/Http/Controllers/Publish/IndexController.php @@ -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); } diff --git a/database/migrations/2019_08_28_094055_create_persons_table.php b/database/migrations/2019_08_28_094055_create_persons_table.php index 0d79b5c..b4cd61c 100644 --- a/database/migrations/2019_08_28_094055_create_persons_table.php +++ b/database/migrations/2019_08_28_094055_create_persons_table.php @@ -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) { diff --git a/resources/views/settings/person/_form.blade.php b/resources/views/settings/person/_form.blade.php index b55e640..752b647 100644 --- a/resources/views/settings/person/_form.blade.php +++ b/resources/views/settings/person/_form.blade.php @@ -40,7 +40,7 @@
{!! Form::label('name_type', 'Name Type') !!}
- {!! 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 --']) !!}
name type is optional