From 0d6cf1158fce0565a3d518b81b2f559993e7a6f6 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Thu, 19 Sep 2019 12:00:30 +0200 Subject: [PATCH] - false abstract types (migration and frontend) --- app/Http/Controllers/Publish/IndexController.php | 4 ++-- .../2019_08_29_075029_create_dataset_titles_table.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Publish/IndexController.php b/app/Http/Controllers/Publish/IndexController.php index 566c58f..526e6db 100644 --- a/app/Http/Controllers/Publish/IndexController.php +++ b/app/Http/Controllers/Publish/IndexController.php @@ -62,11 +62,11 @@ class IndexController extends Controller $relationTypes = ["IsCitedBy", "Cites", "IsSupplementTo", "IsSupplementedBy", "IsContinuedBy", "Continues", "HasMetadata", "IsMetadataFor","IsNewVersionOf", "IsPreviousVersionOf", "IsPartOf", "HasPart", "IsReferencedBy", "References", "IsDocumentedBy", "Documents", "IsCompiledBy", "Compiles", "IsVariantFormOf", "IsOriginalFormOf", "IsIdenticalTo", "IsReviewedBy", "Reviews", "IsDerivedFrom", "IsSourceOf"]; $relationTypes = array_combine($relationTypes, $relationTypes); - $titleTypes = ['sub' => 'Sub', 'alternative' => 'Alternative', 'translated' => 'Translated', 'other' => 'Other']; + $titleTypes = ['Sub' => 'Sub', 'Alternative' => 'Alternative', 'Translated' => 'Translated', 'Other' => 'Other']; $keywordTypes = ['uncontrolled' => 'uncontrolled']; - $descriptionTypes = ['methods' => 'Methods', 'series_information' => 'Series_information', 'technical_info' => 'Technical_info', 'translated' => 'Translated', 'other' => 'Other']; + $descriptionTypes = ['Methods' => 'Methods', 'Series_information' => 'Series_information', 'Technical_info' => 'Technical_info', 'Translated' => 'Translated', 'Other' => 'Other']; $page = Page::query()->where('page_slug', 'terms-and-conditions')->firstOrFail(); diff --git a/database/migrations/2019_08_29_075029_create_dataset_titles_table.php b/database/migrations/2019_08_29_075029_create_dataset_titles_table.php index 676f977..e8d7c27 100644 --- a/database/migrations/2019_08_29_075029_create_dataset_titles_table.php +++ b/database/migrations/2019_08_29_075029_create_dataset_titles_table.php @@ -20,7 +20,7 @@ class CreateDatasetTitlesTable extends Migration $table->foreign('document_id')->references('id')->on('documents') ->onUpdate('cascade')->onDelete('cascade'); - $table->enum('type', ['main' => 'Main', 'sub' => 'sub', 'Alternative' => 'alternative', 'translated' => 'Translated', 'other' => 'Other']); + $table->enum('type', ['Main' => 'Main', 'Sub' => 'Sub', 'Alternative' => 'Alternative', 'Translated' => 'Translated', 'Other' => 'Other']); $table->string('value', 255); $table->string('language', 3); });