2020-03-10 17:58:46 +00:00
|
|
|
@extends('layouts.app')
|
2018-08-06 12:30:51 +00:00
|
|
|
@section('content')
|
|
|
|
|
2020-03-06 14:39:05 +00:00
|
|
|
|
2019-09-13 09:53:33 +00:00
|
|
|
<section class="normal dataset u-full-width">
|
2020-03-10 17:58:46 +00:00
|
|
|
<div id="app">
|
|
|
|
<main>
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
|
|
|
<div class="box" v-if="dataset">
|
2020-03-26 08:11:12 +00:00
|
|
|
<div class="dataset_header">
|
2020-03-10 17:58:46 +00:00
|
|
|
<div class="dataset__blog-meta">published: {{ $dataset->server_date_published->toDayDateTimeString() }}
|
|
|
|
</div>
|
|
|
|
<h1 class="dataset__title">{{ $dataset->mainTitle()->value }}</h1>
|
|
|
|
|
2020-05-25 11:36:13 +00:00
|
|
|
<p class="dataset__id">{{ $dataset->publish_id }}</p>
|
2020-03-10 17:58:46 +00:00
|
|
|
</div>
|
|
|
|
<div class="dataset">
|
2020-03-11 10:48:09 +00:00
|
|
|
|
|
|
|
<!-- Nav tabs -->
|
|
|
|
{{-- <input type="radio" id="metadata-option" name="nav-tab" type="hidden">
|
|
|
|
<input type="radio" id="file-option" name="nav-tab" type="hidden"> --}}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- HTML markup for the tab navigation: -->
|
|
|
|
<div class="twelve columns">
|
|
|
|
<ul class="tab-nav">
|
2020-03-11 16:21:27 +00:00
|
|
|
<li class="metadata-link">
|
|
|
|
<span class="remove-check button active" name="#one">Metadaten</span>
|
2020-03-11 10:48:09 +00:00
|
|
|
</li>
|
2020-03-11 16:21:27 +00:00
|
|
|
<li class="file-link">
|
|
|
|
<span class="remove-check button" name="#two">Inhalt</span>
|
|
|
|
</li>
|
|
|
|
<li class="file-link">
|
|
|
|
<span class="remove-check button" name="#three">Technische Metadaten</span>
|
2020-03-11 10:48:09 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- HTML markup for tab content: Tab panes -->
|
|
|
|
<div class="tab-content">
|
|
|
|
|
|
|
|
<div class="tab-pane content-metadata active" id="one">
|
|
|
|
|
2020-03-11 16:21:27 +00:00
|
|
|
@if($dataset->additionalTitles()->exists())
|
|
|
|
<p class="dataset__abstract">
|
|
|
|
Zusätzliche Titel:
|
|
|
|
<ul>
|
|
|
|
@foreach ($dataset->additionalTitles as $title)
|
2020-04-09 15:48:55 +00:00
|
|
|
<li>{{ $title->type }}: {{ $title->value }}</li>
|
2020-03-11 16:21:27 +00:00
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
|
2020-03-11 10:48:09 +00:00
|
|
|
<p class="dataset__abstract">{{ $dataset->mainAbstract()->value }}</p>
|
|
|
|
|
2020-04-09 15:48:55 +00:00
|
|
|
@if($dataset->additionalAbstracts()->exists())
|
|
|
|
<p class="dataset__abstract">
|
|
|
|
Zusätzliche Beschreibungen:
|
|
|
|
<ul>
|
|
|
|
@foreach ($dataset->additionalAbstracts as $abstract)
|
|
|
|
<li>{{ $abstract->type }}: {{ $abstract->value }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
|
2020-03-11 10:48:09 +00:00
|
|
|
@if($dataset->authors()->exists())
|
|
|
|
<p class="dataset__abstract" v-if="dataset.subject && dataset.subject.length > 0">
|
|
|
|
Ersteller/Autor: {{ $dataset->authors->implode('full_name', ', ') }}
|
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if($dataset->contributors()->exists())
|
|
|
|
<p class="dataset__abstract" v-if="dataset.subject && dataset.subject.length > 0">
|
|
|
|
Beitragende: {{ $dataset->contributors->implode('full_name', ', ') }}
|
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if($dataset->subjects()->exists())
|
|
|
|
<p class="dataset__abstract" v-if="dataset.subject && dataset.subject.length > 0">
|
|
|
|
Schlüsselwörter: {{ $dataset->subjects->implode('value', ', ') }}
|
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
|
2020-03-11 16:21:27 +00:00
|
|
|
@if($dataset->references()->exists())
|
|
|
|
<p class="dataset__abstract">
|
|
|
|
Referenzen:
|
|
|
|
<ul>
|
|
|
|
@foreach ($dataset->references as $reference)
|
2020-04-09 15:48:55 +00:00
|
|
|
<li>{{ $reference->type . ': ' . $reference->value . ' (' . $reference->relation . ')' }}</li>
|
2020-03-11 16:21:27 +00:00
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</p>
|
2020-05-14 18:09:21 +00:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@if($dataset->project()->exists())
|
|
|
|
<p class="dataset__abstract">
|
|
|
|
Projekt: {{ $dataset->project->name }}
|
|
|
|
</p>
|
2020-03-11 16:21:27 +00:00
|
|
|
@endif
|
|
|
|
|
2020-03-11 10:48:09 +00:00
|
|
|
<p class="dataset__abstract">Erstellungsjahr: {{ $dataset->server_date_published->year }}</p>
|
|
|
|
<p class="dataset__abstract">Sprache: {{ $dataset->language }}</p>
|
|
|
|
<p class="dataset__abstract">Objekttyp: {{ $dataset->type }}</p>
|
|
|
|
<p class="dataset__abstract">Lizenz: {{ $dataset->license()->name_long }}</p>
|
|
|
|
<p class="dataset__abstract">Coverage: {{ $dataset->geoLocation() }}</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane content-file" id="two">
|
2020-03-26 08:11:12 +00:00
|
|
|
<p class="dataset__abstract">Size: {{ $dataset->files()->count() }} </p>
|
|
|
|
|
2020-03-11 16:21:27 +00:00
|
|
|
@if($dataset->embargo_date != null)
|
2020-05-18 17:36:31 +00:00
|
|
|
<p class="dataset__abstract">Embargo-Ende:
|
2020-03-11 16:21:27 +00:00
|
|
|
{{ $dataset->embargo_date->toDateString() }}</p>
|
2020-04-02 05:50:08 +00:00
|
|
|
{{-- @else
|
2020-05-18 17:36:31 +00:00
|
|
|
<p class="dataset__abstract">Embargo-Ende: - </p> --}}
|
2020-03-11 16:21:27 +00:00
|
|
|
@endif
|
|
|
|
|
2020-03-11 10:48:09 +00:00
|
|
|
@if($dataset->hasEmbargoPassed() == true)
|
|
|
|
<table id="items" class="pure-table pure-table-horizontal">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Path Name</th>
|
2020-03-11 16:21:27 +00:00
|
|
|
<th>File Size</th>
|
2020-03-11 10:48:09 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($dataset->files as $key => $file)
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
@if($file->exists() === true)
|
2020-04-16 20:29:26 +00:00
|
|
|
<a target="_blank" href="{{ route('file.download', ['id' => $file->id]) }}"> {{ $file->label }} </a>
|
2020-03-11 10:48:09 +00:00
|
|
|
@else
|
|
|
|
<span class="alert">missing file: {{ $file->path_name }}</span>
|
|
|
|
@endif
|
|
|
|
</td>
|
2020-03-11 16:21:27 +00:00
|
|
|
<td>
|
|
|
|
<span>{{ $file->formatSize(2) }}</span>
|
|
|
|
</td>
|
2020-03-11 10:48:09 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-03-10 17:58:46 +00:00
|
|
|
@else
|
2020-03-11 10:48:09 +00:00
|
|
|
<span>Datensatz hat noch ein gültiges Embargo-Datum.</span>
|
2020-03-10 17:58:46 +00:00
|
|
|
@endif
|
2020-03-11 10:48:09 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane content-technical-metadata" id="three">
|
2020-03-11 16:21:27 +00:00
|
|
|
<p class="dataset__abstract">Persistenter Identifikator:
|
2020-05-25 14:56:20 +00:00
|
|
|
{{ "https://www.tethys.at/dataset/" . $dataset->publish_id }}</p>
|
2020-03-11 10:48:09 +00:00
|
|
|
<p class="dataset__abstract">Status: {{ $dataset->server_state }}</p>
|
2020-03-11 11:48:06 +00:00
|
|
|
<p class="dataset__abstract">Eingestellt von: {{ $dataset->user->login }}</p>
|
|
|
|
<p class="dataset__abstract">Erstellt am: {{ $dataset->created_at->toDateString() }}</p>
|
2020-03-11 16:21:27 +00:00
|
|
|
<p class="dataset__abstract">Herausgeber: {{ $dataset->creating_corporation }}</p>
|
|
|
|
<p class="dataset__abstract">Publisher: {{ $dataset->publisher_name }}</p>
|
|
|
|
|
2020-03-11 10:48:09 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> <!-- end row -->
|
2020-03-10 17:58:46 +00:00
|
|
|
|
|
|
|
</div>
|
2020-03-11 10:48:09 +00:00
|
|
|
|
2020-03-10 17:58:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</main>
|
|
|
|
</div>
|
2020-03-06 14:39:05 +00:00
|
|
|
</section>
|
2019-09-13 09:53:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-06 14:39:05 +00:00
|
|
|
@stop
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2020-03-10 17:58:46 +00:00
|
|
|
@section('head')
|
2020-03-11 10:48:09 +00:00
|
|
|
|
2020-03-10 17:58:46 +00:00
|
|
|
<style>
|
2020-03-11 10:48:09 +00:00
|
|
|
ul.tab-nav {
|
|
|
|
list-style: none;
|
|
|
|
border-bottom: 1px solid #bbb;
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.tab-nav li {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
2020-03-11 11:48:06 +00:00
|
|
|
ul.tab-nav li span.button {
|
2020-03-11 10:48:09 +00:00
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
margin-bottom: -1px;
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2020-03-11 11:48:06 +00:00
|
|
|
ul.tab-nav li span.active.button {
|
2020-03-11 10:48:09 +00:00
|
|
|
border-bottom: 0.175em solid #fff;
|
2020-03-11 16:21:27 +00:00
|
|
|
border-bottom-color: #00bfffcc;
|
|
|
|
color: #00bfffcc;
|
|
|
|
/* background-color: #6c6e6b; */
|
2020-03-11 10:48:09 +00:00
|
|
|
}
|
|
|
|
|
2020-03-26 08:11:12 +00:00
|
|
|
.tab-nav {
|
|
|
|
z-index: 2;
|
|
|
|
}
|
2020-04-09 15:48:55 +00:00
|
|
|
|
2020-03-11 10:48:09 +00:00
|
|
|
.tab-content .tab-pane {
|
|
|
|
display: none;
|
|
|
|
/* visibility: hidden; */
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content .tab-pane.active {
|
|
|
|
display: block;
|
|
|
|
/* visibility: visible; */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-10 17:58:46 +00:00
|
|
|
/* body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
} */
|
|
|
|
|
|
|
|
#app {
|
2020-03-11 10:48:09 +00:00
|
|
|
/* font-family: "Avenir", Helvetica, Arial, sans-serif; */
|
2020-03-10 17:58:46 +00:00
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
color: #2c3e50;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2 {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
display: flex;
|
|
|
|
/* height: calc(100vh - 90px); */
|
|
|
|
max-width: 1200px;
|
|
|
|
margin-top: 90px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
aside {
|
|
|
|
flex: 1 0 30%;
|
|
|
|
height: 100%;
|
|
|
|
overflow-y: auto;
|
|
|
|
width: 30%;
|
|
|
|
padding: 50px 30px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-right: 1px solid #42b983;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
2020-03-11 10:48:09 +00:00
|
|
|
/* // flex: 1 1 80%;
|
|
|
|
// display: flex; */
|
2020-03-10 17:58:46 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.box {
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 100px 20px 70px;
|
2020-03-11 10:48:09 +00:00
|
|
|
/* // background-color: salmon; */
|
2020-03-10 17:58:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-03-26 08:11:12 +00:00
|
|
|
.dataset_header {
|
2020-03-11 10:48:09 +00:00
|
|
|
/* // background-color: lightgray; */
|
2020-03-10 17:58:46 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dataset__title {
|
|
|
|
position: relative;
|
|
|
|
text-transform: uppercase;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dataset__abstract {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dataset__id {
|
|
|
|
position: absolute;
|
|
|
|
font-size: 250px;
|
|
|
|
bottom: -40px;
|
|
|
|
margin: 0;
|
|
|
|
color: #eeeeee;
|
|
|
|
right: -20px;
|
|
|
|
line-height: 1;
|
|
|
|
font-weight: 900;
|
2020-04-09 15:48:55 +00:00
|
|
|
z-index: -1;
|
2020-03-10 17:58:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.dataset__blog-meta {
|
|
|
|
padding: 10px 0 20px;
|
|
|
|
color: #c2c2c2;
|
2020-03-26 08:11:12 +00:00
|
|
|
/* font-size: 0.8em; */
|
2020-03-10 17:58:46 +00:00
|
|
|
margin-top: -1.7em;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
|
2020-03-06 14:39:05 +00:00
|
|
|
@section('after-scripts')
|
2020-03-11 16:21:27 +00:00
|
|
|
<script type="text/javascript">
|
2020-04-09 15:48:55 +00:00
|
|
|
(function () {
|
2020-03-11 10:48:09 +00:00
|
|
|
function main() {
|
2020-04-09 15:48:55 +00:00
|
|
|
var tabButtons = [].slice.call(document.querySelectorAll('ul.tab-nav li span.button'));
|
2020-03-11 10:48:09 +00:00
|
|
|
|
2020-04-09 15:48:55 +00:00
|
|
|
tabButtons.map(function (button) {
|
|
|
|
button.addEventListener('click', function () {
|
|
|
|
document.querySelector('li span.active.button').classList.remove('active');
|
|
|
|
button.classList.add('active');
|
2020-03-11 10:48:09 +00:00
|
|
|
|
2020-04-09 15:48:55 +00:00
|
|
|
document.querySelector('.tab-pane.active').classList.remove('active');
|
|
|
|
document.querySelector(button.getAttribute('name')).classList.add('active');
|
2020-03-11 10:48:09 +00:00
|
|
|
})
|
2020-04-09 15:48:55 +00:00
|
|
|
})
|
2020-03-11 10:48:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (document.readyState !== 'loading') {
|
2020-04-09 15:48:55 +00:00
|
|
|
main();
|
2020-03-11 10:48:09 +00:00
|
|
|
} else {
|
2020-04-09 15:48:55 +00:00
|
|
|
document.addEventListener('DOMContentLoaded', main);
|
2020-03-11 10:48:09 +00:00
|
|
|
}
|
2020-04-09 15:48:55 +00:00
|
|
|
})();
|
2020-03-11 10:48:09 +00:00
|
|
|
</script>
|
2018-08-06 12:30:51 +00:00
|
|
|
@stop
|