@extends('settings.layouts.app') @section('title', 'Publish') @section('styles') @stop @section('content')

Publish New Dataset

{{-- v-on:time-expire="handleTimeExpire" --}} @if (Auth::check()) @endif {{--
--}}
{{ csrf_field() }}
Dataset Language
{!! Form::select('language', $languages, null, ['placeholder' => '[language]', 'v-model' => 'dataset.language', "v-validate" => "'required'", 'data-vv-scope' => 'step-0']) !!}
select dataset main language

Please correct the following error(s):
  • @{{ error.msg }}

Step One: Mandatory Elements

General

Bitte wählen Sie einen Datensatztyp aus der Liste aus.

{{--
{!! Form::select('Type', Lang::get('doctypes'), null, ['id' => 'type', 'placeholder' => '-- select type --', 'v-model' => 'dataset.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!}
--}}
{!! Form::select('Type', Lang::get('doctypes'), null, ['id' => 'type', 'placeholder' => '-- select type --', 'v-model' => 'dataset.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!}
Title(s) {{-- --}}
{!! Form::text('TitleMain[Value]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.title_main.value', "v-validate" => "'required|min:4|max:255'", "data-vv-as" => "Main Title", 'data-vv-scope' => 'step-1']) !!}
{!! Form::label('TitleLanguage', 'Title Language..') !!} {{--
{!! Form::select('TitleMain[Language]', $languages, null, ['placeholder' => '--no language--', 'v-model' => 'dataset.title_main.language', "v-validate" => "'required'", "data-vv-as" => "Title Language", 'data-vv-scope' => 'step-1']) !!}
--}} {!! Form::text('TitleMain[Language]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.title_main.language', 'readonly']) !!}
Title Type Language
{!! Form::select('Title[Type]', $titleTypes, null, ['placeholder' => '[titleType]', 'v-model' => 'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!} {!! Form::select('Title[Language]', $languages, null, ['placeholder' => '[language]', 'v-model' => 'item.language', "data-vv-as" => "Additional Title Language", "v-validate" => "{required: true, translatedLanguage: [dataset.language, item.type]}", 'data-vv-scope' => 'step-1']) !!}
Description
{{ Form::textarea('TitleAbstract[Value]', null, ['class' => 'pure-u-23-24', 'size' => '70x6', 'v-model' => 'dataset.abstract_main.value', "v-validate" => "'required|min:4|max:2500'", "data-vv-as" => "Main Abstract", 'data-vv-scope' => 'step-1']) }}
{!! Form::label('AbstractLanguage', 'Abstract Language..') !!} {{--
{!! Form::select('TitleAbstract[Language]', $languages, null, ['placeholder' => '--no language--', 'v-model' => 'dataset.abstract_main.language', "v-validate" => "'required'", "data-vv-as" => "Abstract Language", 'data-vv-scope' => 'step-1']) !!}
--}} {!! Form::text('TitleAbstract[Language]', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.abstract_main.language', 'readonly']) !!}
Description Type Language
{!! Form::select('Description[Type]', $descriptionTypes, null, ['placeholder' => '[descriptionType]', 'v-model' => 'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!} {!! Form::select('Description[Language]', $languages, null, ['placeholder' => '[language]', 'v-model' => 'item.language', "data-vv-as" => "Additional Description Language", "v-validate" => "{required: true, translatedLanguage: [dataset.language, item.type]}", 'data-vv-scope' => 'step-1']) !!}
Creator
{{-- --}}
{{--

--}}
{!! Form::label('additionalCreators', 'Add additional creator(s) if creator is not in database') !!}
Contributor
{{--

Checked Contributors: @{{ dataset.checkedContributors }}
--}}
{!! Form::label('additionalContributors', 'Add additional contributor(s) if contributor is not in database') !!}
{{--

contributor table

--}}
Creating Corporation
{!! Form::text('CreatingCorporation', null, ['readonly', 'class' => 'pure-u-23-24', 'v-model' => 'dataset.creating_corporation', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!}

@{{ errors.first('step-1.rights') }} You must agree to continue

Please correct the following error(s):
  • @{{ error.msg }}

Step Two: Recommended Elements

Project
{!! Form::select('project_id', $projects, null, ['id' => 'project_id', 'placeholder' => '--no project--', 'v-model' => 'dataset.project_id', 'data-vv-scope' => 'step-2']) !!}
project is optional
Date(s)
{!! Form::date('EmbargoDate', null, ['placeholder' => date('y-m-d'), 'class' => 'pure-u-23-24', 'v-model' => 'dataset.embargo_date', 'data-vv-scope' => 'step-2']) !!} EmbargoDate is optional
Geo Location
{{--
{!! Form::label('xmin', 'xmin: ') !!} {!! Form::text('xmin', null, [ 'class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.xmin', "v-validate" => "'decimal'", 'data-vv-scope' => 'step-2' ]) !!}
{!! Form::label('ymin', 'ymin: ') !!} {!! Form::text('ymin', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.ymin', 'data-vv-scope' => 'step-2']) !!}
{!! Form::label('xmax', 'xmax: ') !!} {!! Form::text('xmax', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.xmax', 'data-vv-scope' => 'step-2']) !!}
{!! Form::label('ymax', 'ymax: ') !!} {!! Form::text('ymax', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.ymax', 'data-vv-scope' => 'step-2']) !!}
--}}
Coverage
{!! Form::label('elevation_absolut', 'elevation absolut: ') !!} {!! Form::text('elevation_absolut', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_absolut', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationAbsolut ? 'required|integer' : '' " ]) !!}
{!! Form::label('elevation_min', 'elevation min: ') !!} {!! Form::text('elevation_min', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_min', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!}
{!! Form::label('elevation_max', 'elevation max: ') !!} {!! Form::text('elevation_max', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.elevation_max', 'data-vv-scope' => 'step-2', "v-validate" => "this.isElevationRange ? 'required|integer' : '' "]) !!}
{!! Form::label('depth_absolut', 'depth absolut: ') !!} {!! Form::text('depth_absolut', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.depth_absolut', 'data-vv-scope' => 'step-2', "v-validate" => "this.isDepthAbsolut ? 'required|integer' : '' " ]) !!}
{!! Form::label('depth_min', 'depth min: ') !!} {!! Form::text('depth_min', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.depth_min', 'data-vv-scope' => 'step-2', "v-validate" => "this.isDepthRange ? 'required|integer' : '' "]) !!}
{!! Form::label('depth_max', 'depth max: ') !!} {!! Form::text('depth_max', null, ['class' => 'pure-u-23-24', 'v-model' => 'dataset.coverage.depth_max', 'data-vv-scope' => 'step-2', "v-validate" => "this.isDepthRange ? 'required|integer' : '' "]) !!}
{!! Form::label('time_absolut', 'time absolut: ') !!} {{-- {!! Form::datetime('time_absolut', null, ['class' => 'pure-u-23-24', 'placeholder' => 'dd.MM.yyyy HH:mm', 'v-model' => 'dataset.coverage.time_absolut', 'data-vv-scope' => 'step-2', 'format' => 'yyyy-MM-dd HH:mm', "v-validate" => "this.isTimeAbsolut ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' " ]) !!} --}} {{-- --}}
{!! Form::label('time_min', 'time min: ') !!} {{-- {!! Form::datetimelocal('time_min', null, ['class' => 'pure-u-23-24', 'placeholder' => 'dd.MM.yyyy HH:mm:ss', 'v-model' => 'dataset.coverage.time_min', 'data-vv-scope' => 'step-2', 'step' => 1, "v-validate" => "this.isTimeRange ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' "]) !!} --}}
{!! Form::label('timemax', 'time max: ') !!} {{-- {!! Form::datetimelocal('time_max', null, ['class' => 'pure-u-23-24', 'placeholder' => 'dd.MM.yyyy HH:mm:ss', 'v-model' => 'dataset.coverage.time_max', 'data-vv-scope' => 'step-2', 'step' => 1, "v-validate" => "this.isTimeRange ? 'required|date_format:dd.MM.yyyy HH:mm:ss' : '' "]) !!} --}}
Dataset References
Value of the identifier Type Relation Label
{!! Form::select('Reference[Type]', $relatedIdentifierTypes, null, ['placeholder' => '[relatedIdentifierType]', 'v-model' => 'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-2']) !!} {!! Form::select('Reference[Relation]', $relationTypes, null, ['placeholder' => '[relationType]', 'v-model' => 'item.relation', 'data-vv-scope' => 'step-2']) !!}
Dataset Keywords Keyword Recommendation Schlüsselwörter Empfehlung
Keyword Value Keyword Type Language
{{-- {!! Form::select('Keyword[Type]', $keywordTypes, null, ['placeholder' => '[keyword type]', 'v-model' => 'item.type', "v-validate" => "'required'", 'data-vv-scope' => 'step-2']) !!} --}}

Please correct the following error(s):
  • @{{ error.msg }}

Step 3: Other Elements

Rights List
@foreach ($licenses as $indexKey => $license) @endforeach
{{-- Checked license: @{{ dataset.checkedLicenses }} --}}

Please correct the following error(s):
  • @{{ error.msg }}

File Upload

Drag your file(s) here to begin
or click to browse

Uploading @{{ fileCount }} files...

Sorting File Label
@{{ index +1 }}
Please correct the following error(s):
  • @{{ error.msg }}
{{-- --}}

Uploaded @{{ dataset.files.length }} file(s) successfully.

{{--

Upload new Dataset

--}}

{{-- @{{ redirectLink }} --}} Edit Release Delete

    {{--
  • --}}

Uploaded failed.

Retry: Edit inputs

Please correct the following server error(s):
  • @{{ error }}
{{--

Debug:@{{ dataset }} --}}
@stop @section('styles') @stop @section('after-scripts') @stop